Page 1 of 1

Would like "domoticz.time.matchesRule('at thu')"

Posted: Thursday 16 November 2017 23:07
by Freemann
I was looking for an possibility to make an if statement which only is true on one weekday;

Code: Select all

domoticz.time.matchesRule('at thu')
Unfortunatly this isn't working and I don't know if this should/could work.

For now I made an simple workaround;

Code: Select all

domoticz.time.matchesRule('at 00:00-23:59 on thu')
but it would be great if its possible to do this time independent :)

Maybe something for an next release?

Re: Would like "domoticz.time.matchesRule('at thu')"

Posted: Friday 17 November 2017 8:15
by dannybloe
This should work:

Code: Select all

domoticz.time.matchesRule('on thu')
I updated the docs for the next version to make this more clear.

Re: Would like "domoticz.time.matchesRule('at thu')"

Posted: Friday 17 November 2017 9:08
by Freemann
dannybloe wrote: Friday 17 November 2017 8:15 This should work:

Code: Select all

domoticz.time.matchesRule('on thu')
I updated the docs for the next version to make this more clear.
nice and great to see its already possible :D