turn off lights together with tv

Moderator: leecollings

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

turn off lights together with tv

Post by jessy1984 »

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 1143 times
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: turn off lights together with tv

Post by Egregius »

How can it be before 18 and after 19 at the same time?
jessy1984
Posts: 26
Joined: Tuesday 11 August 2015 14:58
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: turn off lights together with tv

Post by jessy1984 »

Thats cous i was messing around with it . Tried it the other way around also
CyberE
Posts: 9
Joined: Monday 25 June 2018 17:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: turn off lights together with tv

Post by CyberE »

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: 26
Joined: Tuesday 11 August 2015 14:58
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: turn off lights together with tv

Post by jessy1984 »

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: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: turn off lights together with tv

Post by Egregius »

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: 26
Joined: Tuesday 11 August 2015 14:58
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: turn off lights together with tv

Post by jessy1984 »

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