turn off lights together with tv

Post Reply
jessy1984
Posts: 51
Joined: Tuesday 11 August 2015 14:58
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

turn off lights together with tv

Post by jessy1984 » Thursday 09 August 2018 18:54

hi i want to trie to set off some lights together with my tv
this between times

i tried a couple of ways i tought this could work but nothing seems to
anyone know how to do this?
verlichting.png
verlichting.png (15.07 KiB) Viewed 521 times

User avatar
Egregius
Posts: 2738
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: Beta
Location: Beitem, BE
Contact:

Re: turn off lights together with tv

Post by Egregius » Thursday 09 August 2018 19:30

How can it be before 18 and after 19 at the same time?

jessy1984
Posts: 51
Joined: Tuesday 11 August 2015 14:58
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: turn off lights together with tv

Post by jessy1984 » Thursday 09 August 2018 19:59

Thats cous i was messing around with it . Tried it the other way around also

User avatar
CyberE
Posts: 7
Joined: Monday 25 June 2018 17:46
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: NL
Contact:

Re: turn off lights together with tv

Post by CyberE » Thursday 09 August 2018 20:39

I'm just guessing here, as I'm no expert but you might want to try the following:

Code: Select all

if TV kijken = off and time > 1800 and time < 19:00
Do
	set Staande lamp = off
	set kast living color = off
To clarify, use seperate sets for every different lamp.

Also make sure to set the blocky to "devices".

jessy1984
Posts: 51
Joined: Tuesday 11 August 2015 14:58
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: turn off lights together with tv

Post by jessy1984 » Thursday 09 August 2018 21:40

just tried it again like you said but lights do not react
when turning off the tv
status of tv dous change to off and time is set correct

User avatar
Egregius
Posts: 2738
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: Beta
Location: Beitem, BE
Contact:

Re: turn off lights together with tv

Post by Egregius » Thursday 09 August 2018 22:30

Begin small, if tv is off switch light off. Then add one time condition and then add the second.

That way you'll learn better what happens.

jessy1984
Posts: 51
Joined: Tuesday 11 August 2015 14:58
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: turn off lights together with tv

Post by jessy1984 » Friday 10 August 2018 10:47

thank you it workes i had the wrong control block

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest