Sunset light switch does not work

Moderator: leecollings

Post Reply
jellex87
Posts: 30
Joined: Tuesday 25 June 2019 13:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Sunset light switch does not work

Post by jellex87 »

Hi,

I’m very new to Domoticz and Blockly, so can anyone tell me why this script isn’t working?
Attachments
D2600EC6-B03B-40F2-90F5-597FF66984C9.jpeg
D2600EC6-B03B-40F2-90F5-597FF66984C9.jpeg (80.16 KiB) Viewed 1785 times
jellex87
Posts: 30
Joined: Tuesday 25 June 2019 13:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Sunset light switch does not work

Post by jellex87 »

‘Sunset actief’ is a dummy switch that turns on at sunset.
User avatar
Treve
Posts: 107
Joined: Thursday 05 November 2015 10:37
Target OS: Raspberry Pi / ODroid
Domoticz version: v4.11474
Location: Rotterdam, NL
Contact:

Re: Sunset light switch does not work

Post by Treve »

Try, if time = sunset then .......
- RFXtrx433E,
- AEON Labs ZW090 Z-Stick Gen5 EU
- Hue v2.1
- Raspberry Pi 3 Model B, Raspbian Stretch Full on USB-Stick.
- Domoticz 4.11474
Devices: KaKu, Z-Wave, Hue.

for testing:
Raspberry 4, 2GB, SSD
Domoticz 2022.1
Ikea Hub, Fyrtur curtain
jellex87
Posts: 30
Joined: Tuesday 25 June 2019 13:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Sunset light switch does not work

Post by jellex87 »

allready tried this one, but does not work as well.
Attachments
Naamloos.jpg
Naamloos.jpg (25.34 KiB) Viewed 1773 times
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Sunset light switch does not work

Post by waaren »

jellex87 wrote: Friday 28 June 2019 13:43 allready tried this one, but does not work as well.
  • Time = sunset
is only valid one minute a day. So if you want this to be true after sunset then try this.
impuls
impuls
Impuls.png (55.76 KiB) Viewed 1770 times
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
jellex87
Posts: 30
Joined: Tuesday 25 June 2019 13:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Sunset light switch does not work

Post by jellex87 »

waaren wrote: Friday 28 June 2019 14:15
jellex87 wrote: Friday 28 June 2019 13:43 allready tried this one, but does not work as well.
  • Time = sunset
is only valid one minute a day. So if you want this to be true after sunset then try this.

Impuls.png
Allready tried it... does not work. Is the script good?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Sunset light switch does not work

Post by waaren »

jellex87 wrote: Friday 28 June 2019 14:23 [Already tried it... does not work. Is the script good?
You should also look where the AND is placed. In your first post it is in the wrong place.
If you can share the exported blockly I can test
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
jellex87
Posts: 30
Joined: Tuesday 25 June 2019 13:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Sunset light switch does not work

Post by jellex87 »

waaren wrote: Friday 28 June 2019 14:58
jellex87 wrote: Friday 28 June 2019 14:23 [Already tried it... does not work. Is the script good?
You should also look where the AND is placed. In your first post it is in the wrong place.
If you can share the exported blockly I can test
Googled for it, but can't find the way to export the Blocky. Please let me know.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Sunset light switch does not work

Post by waaren »

jellex87 wrote: Friday 28 June 2019 15:46 can't find the way to export the Blocky. Please let me know.
Press the export button, [ctrl]a, [ctrl]c, goto forum, [ctrl] v, strip garbage before <xml, strip out last line (Ok)
Impuls export
Impuls export
Impuls.png (58.84 KiB) Viewed 1757 times
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
jellex87
Posts: 30
Joined: Tuesday 25 June 2019 13:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Sunset light switch does not work

Post by jellex87 »

Don't have that menu on Synology. I will look for an update first.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Sunset light switch does not work

Post by waaren »

jellex87 wrote: Friday 28 June 2019 16:04 Don't have that menu on Synology. I will look for an update first.
You could use the time in between to split-up the Blockly.

So create a small Blockly where you only check if time > sunset and write something to the log and a second small blockly where you check the other condition and write something to the log. If they both work you can try with an AND between the two conditions.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest