Hi everyone,
I'm trying to make predictive the ignition time of my heaters according to the temperature in the room (i.e. : I want a temperature at a time in a room, start of the heater ignition is automated).
My idea was to use a dummy timed switch and then modify the ignition time with lua, would it be possible ? I didn't find anything about modifying the "Timers" table in database with lua.
Thanks for reading and sorry for my english !
Change planning for timed switch with lua
Moderator: leecollings
- emme
- Posts: 909
- Joined: Monday 27 June 2016 11:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest
- Location: Milano, Italy
- Contact:
Re: Change planning for timed switch with lua
to run an event (or a script) on a certain time I use a global variable with the right time I want to run
than a Time Event will check if the current time is the same as the one in the timer and then execute the script
maybe you can use the same way... have something store the time in a variable and then check the time and execute
ciao
M
than a Time Event will check if the current time is the same as the one in the timer and then execute the script
maybe you can use the same way... have something store the time in a variable and then check the time and execute
ciao
M
The most dangerous phrase in any language is:
"We always done this way"
"We always done this way"
-
- Posts: 4
- Joined: Thursday 24 November 2016 13:35
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Paris, France
- Contact:
Re: Change planning for timed switch with lua
Thank you emme for your answer. In fact I already use time and device scripts.
My question was more : is it possible to change the time set in the planning of the switch with lua ?
My question was more : is it possible to change the time set in the planning of the switch with lua ?
Who is online
Users browsing this forum: No registered users and 0 guests