Homey Community Forum

[Simple] Lights turning on/off based on motion

Can you help me how to make the logica card where the helderheid is in.

1 Like

Sure, in the “En” part tap on add card. The select “Logica”:
Screenshot_20190910-153125__01

Then select card you want, in my case “is kleiner dan” :
Screenshot_20190910-153133__01

Then at 1 you look up your tag from the sensor you want to use and at 2 the value.
Screenshot_20190910-153141__01

Yes. Double switch its parameter 3 and 4
https://manuals.fibaro.com/double-relay-switch/
Newer fibaro app you can set it in the advance settings tab.

@Rocodamelshekima Is there a specific reason you’re using the timer? I would just end with a “Turn off card” with 180 seconds delay in the 1st flow. Or am I missing something? :thinking:

A timer can be stopped and start over again after no movement. The turn off card with a delay WILL turn off the lamp, no matter what.

3 Likes

I really like the flow and use them for the bathroom and the toilet.

However the motion sensor does not catch motion in the shower (because there is a door from glass in front of the shower), so I want the countdown timer to be longer in the morning (e.g. between 7-10) than in the afternoon.

Anyone a suggestion how to set this up? Thanks!

This will be the 2nd flow then:

Thanks, however I have already “no one is sleeping” as an “And” card as I don’t want the lights to go on when you go to the bathroom during the night.

So if I add this “And” and after that the “Else” it will mean that the lights will go on during the night. How can I avoid this or am I mistaken?

So during the night u have to sit in the dark?

Make an extra flow to disable this flow.
Or find the flow where u set peeps to sleep and disable the bathroom flow. Enable the flow when first person is awake or at a set time like 6am.
All is possible!

Ps. Plz don’t confuse “enable a flow” with “starting a flow”!

Hi, how do you mean, “Just use variables (logic)”?

Hello Rocodamelsheki,

Thank you for this tutorial!

I tried to apply your tutorial to my specific situation, but it won’t work.

At sunset, on the ground floor of my hous, a number of lights automatically turn on. Sometimes I also switch on a few extra lamps manually. All the lights on the ground floor automatically turns off at 00.15 hour.

Now I have purchased a motion sensor (Fibaro Motion Sensor Z-wave Plus) and mounted it in the living room. I would like to integrate this sensor in the flow in which the lights go out at 00.15 hour. With this I want to achieve that all the lights turn off at 00.15 hour, when there is no movement in the living room, but stay switched on, when there is motion detected in the living room.

Below the flow that I use now, without motion sensor.

Can you give me a hint how to get it operational?

With kind regards,

Michael

I’d say it is better to achieve this with a timer of somekind. Chrono app is very good for this. So create a flow which sets a timer based on movement. And add the timer in the ‘and’ colum of this flow. So if the timer is not running then turn off lights.

Please take into account that if there is movement and the timer is running it won’t turn off the light at all. The trigger is on 00.15 and won’t trigger again. You should then create another flow which turns off the lights when the timer has finished.

Another thing you could do is to turn off the trigger on 00.15 and just let the movement timer handle turning on and off the lights. This would mean that by day time the lights will be turned off too, saves energy :wink:

Martijn_Hoogenbosch

Thanks for your reply.
I am not very experienced and I do not know how to make timer based on movement. Do you have an example flow of this?

Whats wrong with the search function on the forum?? Is it not working or… :joy: :joy:

edit. Just tested the search function… and believe me or not it worked. i found this for example

Is this how it should work?

@Rocodamelshekima - I want to understand this rigth:
Will there have to be 3 flows in order to just have a lightbulb turning off 10 minuttes after being turned on because of activating af sensor? That seems very complex? (compared to other system - like Hue etc…?

It all depends on what u wanna do with it. This is a simple version to help peeps understand the working of it. When u want the lights to go off after 10 minutes, no matter what, u can also do:
WHEN motion detected THEN turn lights on AND turn lights off (with a delay of 10 minutes).
I even have a lot more flows for bathroom lights. Like turning on the Sonos speakers and play 538 (het foute uur) UNLESS there is an mp3 playing in the attic. Then they have to join the attic speakers ofc. When walking into the bedroom AND Sonos is playing in the bathroom THEN join them, ELSE play 538.
And walking into the bathroom while it’s still before 6am THEN the lights have to be low and Sonos needs to be off.
But that’s not what this topic is about actually. It is more to help peeps a bit in the right direction to understand flows.

1 Like

Hi again - okay, thank you very much for fast answer👍 I will explore the different solutions. Keep safe and sound👍

Like os på Facebook og LinkedIn – vi spotter trends, deler viden og inspirerende artikler.

De bedste hilsner

[mod break, removed all personal data]

Maybe better to remove the phonenumber

Ahh - I guess you mean I did not need to provide the phone number :wink: I am sorry - that was my autosignature from my phone :joy: