I have created the script below:
It has been working fine for quite some time.
Since start of this week my PI had ethernet issues so I had to setup the PI again with clean install.
Did this and put my backup back. All seems to work fine except that this script only works for the "ON" part.
It does not switches the lights off anymore.
Anyone an idea what is wrong or what went wrong?
Thanks for the support!
Bernard
Last edited by Benneton on Sunday 29 July 2018 11:43, edited 1 time in total.
Thanks for looking into.
Thought about that. Did change it to an 'OR' statement. Will see tonight if this does the trick.
Also did change the 'AND' to 'OR' in the IF statement.
WHat I do not understand is that this script has worked for many month.
Light on between 07:15 and 23:08 when the "Schemerschakelaar HAL" went on.
Lights off after 23:08 or when the "Schemerschakelaar HAL"went off
But that must then be BLOCKY have more qurious things with it.
Thanks for looking into.
Thought about that. Did change it to an 'OR' statement. Will see tonight if this does the trick.
Also did change the 'AND' to 'OR' in the IF statement.
WHat I do not understand is that this script has worked for many month.
Light on between 07:15 and 23:08 when the "Schemerschakelaar HAL" went on.
Lights off after 23:08 or when the "Schemerschakelaar HAL"went off
But that must then be BLOCKY have more qurious things with it.
Bernard
The 'and' in the first if statement is ok because the time range does not cross 00:00 (midnight).
As @jvdz says, in the 'else if' statement the time does cross 00:00 therefore it must be 'or'.
In Domoticz time conditions reset at midnight 00:00.