Это видео недоступно.
Сожалеем об этом.
IKEA TRADFRI motion sensor is much smarter in NodeRED
HTML-код
- Опубликовано: 13 июн 2019
- INFO:
On its own IKEA TRADFRI motion sensor is very simple and not exactly smart. Thanks to NodeRED I'm able to add more features and turn this motion sensor in a truly connected thing!
Showcase: 1:21
Tutorial: 2:20
Get CC2531 USB sniffer:
Banggood: www.banggood.c...
Aliexpress: s.click.aliexpr...
Gearbest: www.gearbest.c...
AmazonUK: amzn.to/2W02tvt
AmazonUS: amzn.to/2WcUX57
More on: notenoughtech....
Supported by Patreon:
William D, Mark, Xavier P, Ivar G, David M, Nodle, Marta H, Michal T, Natasha W, Marc W, Elle S, oolara
SUPPORT ME:
www.notenoughte...
/ notenoughtech
www.paypal.me/...
Social media:
/ notenoughtech
plus.google.co...
/ notenoughtech
/ notenoughtech
BUSINESS ENQUIRIES:
www.notenoughte...
Music from filmmusic.io:
"Retro Future Clean", "Andreas Theme", "CarpeDiem" "Furious Freak" by Kevin MacLeod (incompetech.com)
Licence: CC BY (creativecommons...)
Whoa! Now, THAT'S making some smart sensor REALLY smart!
In all honesty I thought I could do this in 1h. I spent most of yesterday trying to get all of this to work! But it's done 🤭
Hi Mat, it would be great if you could provide some more detail regarding the basic setup in node-red.
My pleasure:
notenoughtech.com/home-automation/nodered-home-automation/why-nodered-server/
7 part guide to nodeRED :)
Hi Mat. Thanks for making the video, Really enjoyed and learnt a lot about the Node Red, I am sure that I am going to use some of your flow and nodes on my projects. Thanks also for explaining it all as my programming is rather crappy (No problem with building hardware and Tasmota etc.) Keep up the good work
With time it will get better. All I do I've learned from scratch so we all have been there
@@notenoughtech Thanks for the encouragement, lots of good stuff on your web site and I see I got your name wrong, sorry about that. Although my programming skills are low, I think that Node Red if absolutely fantastic, I can actually make things work with it that I could never do with Home Assistant and yaml. Looking forward to next video. I am just playing with a PZEM-004 connected to Tasmota and monitoring house power consumption. I think that your Sunrise Sunset flow is going to help a lot. Maybe you will do a video at some time about PZEM-004. Thanks again
Good luck Ben ;) more stuff to come soon I'm rendering a video as we speak
hi, great video, is it possible to have a different color for day and for night? this feature I miss a lot
Im sorry what would you like to change the colour of?
Mat, are you able to use this information to get a message from let's say mqtt, that motion has been detected? Can you then use this to trigger other devices for automation? I have a Gateway and a few sensors but it looks like getting the motion information without a "hack" is impossible.
To make it clear, you can use the motion sensor information to trigger anything that is connected to NodeRED
This this motion censor be hooked up to a Samsung SmartThings hub to turn my Kasa smart switches on and off?
I never used it with smart things but if you want to mix and match consider cc2531 or zzh check my videos about itb
I guess as a beginner I need some basic info, is it a Zigbee or ZWave device? so I can use the dongle on my Home Assistant to connect it on first step...
It's ZigBee and you can use the dongle with NodeRed and HA
Can you make a video from scratch how to get a message on your phone when motion is triggered? I want to use it as a mailbox sensor
Check out Tasker and NodeRED integration on my page
Do I need ikea getaway for this? BTW I have an updated sensor that have bigness and day/night buttons. Does that mean I can't change the delay... Now it's set to 3 min. by default.
No you don't ;) just nodeRed server and cc2531
I i have new version without the timer on back, how can I easly check the status after 1 minute? The basic is 3 minutes, but i cant change it on the motion sensor device.
O! I didn't know that's the thing. Can you actually set any options via IKEA hub at all? The lowest timeout setting is the lowest resolution in NodeRED so if you can change that via hub, then you would be able to drop the min value
@@notenoughtech I dont have ikea hub, I have only the zigbee2mqtt on CP ;)
Does it work with the new motion sensors as well? I just got one and you cannot manually adjust the timer anymore, the light always stays on 3minutes by default. I have a room where I only want it to be on for lets say 30 seconds
Yes it would. Only retrigger would be affected. As Nodered only needs to know when the sensor is tripped
@@notenoughtech
The new ones miss the switch to adjust the timeout.
After they trigger once the will not send a new signal for 3 minutes.
In Jonas's case, the motion sensor triggers, lights go on, after 30seconds he switches them of. But after that 30seconds, (no mather if someone moves or not) they will stay turned of for another 2,5minutes.
Hello Mat, fantastic and brilliant ideas. Can you help to modify the flow on how to continuous overwrite the timer whenever there is motion detected? and how to change to seconds instead of minutes? I am trying hard to work around but failed to do it... :_(
to create the timestamp use
var timeNow= Date.now(); // value in ms
and to save the timestamp create an array:
var log = [];
create the timestamp
var timeNow = Date.now();
push to the array
log.push(timeNow);
and save it
flow.set("log", log);
Hope this will help you
@@notenoughtech Thanks a lot for your prompt and kindness... u r my genius...
I'm hardly smart... You did not see all the mistakes I made during this projects 🤗
@@notenoughtech Hi Mat, I found a very strange things about the it's night or it's day error on my site. Whenever I accidentally press the button timestamp to check whether it's night even in day time, I got an immediate feedback "it's night" in which it is day time and I tried many attempts reboot raspi, stop start node red, inject all necessary timestamp BUT NO LUCK, what happen ya... am I leaving in an Alien place? :_( Here is my lat long. {"lat":3.136130,"long":101.624069} (UTC+8) , my pleasure if u have time to test it out, very strange...
I tested now = it looks ok - I need to test it in the evening again - ping me in case I forget :)
Can you do a mi band 4 review and tasker functionality with it?
I have asked for it. I want the NFC model so I will have to wait a little longer once the NFC one is available
Hello, Can you please explain how you was able to get information from PIR?
Thanks.
Jan
Paired with cc2531 zigbee2mqtt I have a separate tutorial linked in the article
@@notenoughtech possible to control those without the usb extra hardware if one had the Ikea gateway? I can't find a way
You can link it to lights or sockets by holding it close in pairing mode but other than this you need something like cc2531 to do it
@@notenoughtech eah I got to pair and home assistant sees the remote, just that the only thing I can do is check their battery levels. So you're saying that if I want to use ikea lights/remotes, Ikea own gateway is useless, I'd be better off using 3rd party like that USB Zigbee.
You can bind a remote device to up to 10 lights from IKEA. If you want more specific automation or triggering by other stuff you'll need the coordinator
Thanks MAt this worked perfectly! I have a question however. How am I suppose to put 2 sensor for 1 light? I tryed to put 2 mqtt node at the beginning, but it seams like sometimes it's ok and sometimes the light goes off after like 10 sec (I put it at 3 min timeout). Thanks for the help!
You should put 2 MQTT nodes, but you should not pass "false" message. Lights goes off as sometimes ON is issued by one sensor and OFF is sent by another. To fix this split the true and false with switch node and add delay/limit rating for false (so it passes lets say one false every 1 min) this will prevent lights from shutting off too quick while still responding to both sensors
@@notenoughtech thanks I will try that!
Thanks for sharing your video.
Is it possible to set the parameters without having the Ikea gateway?
I'm using the Conbee stick with Deconz and Phoscon.
Yes the IKEA hub isn't needed
@@notenoughtech Are you using another zigbee hub of some sort then?
Personally yes cc2531 but you can use it as is as remote devices can control up to 10 bulbs
Does this work on the new Tradfri motion sensor to?
Should do.
@@notenoughtech can you explain how to get the information from the sensor into node-red first? I have the sensor paired to the original bridge and therefor it could only talk to one LED directly :/ My aim is to turn a light on for 30 sec instead of 180 sec (default for new model).
You will need a cc2531 device notenoughtech.com/home-automation/flashing-cc2531-without-cc-debugger/
The loud "music" drowned out your voice so I stopped watching.
There is a written version of this in the description so you can pick your own soundtrack while you read