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

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
Freemann
Posts: 94
Joined: Thursday 24 November 2016 14:55
Target OS: Linux
Domoticz version: >=Béta
Location: Netherlands
Contact:

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

Post 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?
Domotica/graphs "freak" :)
NUC8i3BEH(8gb/250gb),
Lubuntu 19.04,
Aeotec Z-Stick S2(Gen5)
HarmonyElite
HUE(5 bulbs, 2 blooms)
NetAtmo(complete setup)
MiLight iboxV6(2 MiLightBulbs)
IP-Cam

https://www.frijduurzaam.nl
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

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

Post 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.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Freemann
Posts: 94
Joined: Thursday 24 November 2016 14:55
Target OS: Linux
Domoticz version: >=Béta
Location: Netherlands
Contact:

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

Post 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
Domotica/graphs "freak" :)
NUC8i3BEH(8gb/250gb),
Lubuntu 19.04,
Aeotec Z-Stick S2(Gen5)
HarmonyElite
HUE(5 bulbs, 2 blooms)
NetAtmo(complete setup)
MiLight iboxV6(2 MiLightBulbs)
IP-Cam

https://www.frijduurzaam.nl
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest