Page 1 of 1
Sunset light switch does not work
Posted: Friday 28 June 2019 11:33
by jellex87
Hi,
I’m very new to Domoticz and Blockly, so can anyone tell me why this script isn’t working?
Re: Sunset light switch does not work
Posted: Friday 28 June 2019 11:36
by jellex87
‘Sunset actief’ is a dummy switch that turns on at sunset.
Re: Sunset light switch does not work
Posted: Friday 28 June 2019 13:23
by Treve
Try, if time = sunset then .......
Re: Sunset light switch does not work
Posted: Friday 28 June 2019 13:43
by jellex87
allready tried this one, but does not work as well.
Re: Sunset light switch does not work
Posted: Friday 28 June 2019 14:15
by waaren
jellex87 wrote: Friday 28 June 2019 13:43
allready tried this one, but does not work as well.
is only valid one minute a day. So if you want this to be true after sunset then try this.

- impuls
- Impuls.png (55.76 KiB) Viewed 1773 times
Re: Sunset light switch does not work
Posted: Friday 28 June 2019 14:23
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.
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?
Re: Sunset light switch does not work
Posted: Friday 28 June 2019 14:58
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
Re: Sunset light switch does not work
Posted: Friday 28 June 2019 15:46
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.
Re: Sunset light switch does not work
Posted: Friday 28 June 2019 15:53
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.png (58.84 KiB) Viewed 1760 times
Re: Sunset light switch does not work
Posted: Friday 28 June 2019 16:04
by jellex87
Don't have that menu on Synology. I will look for an update first.
Re: Sunset light switch does not work
Posted: Friday 28 June 2019 16:46
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.