I have a Setpoint device in Utilities with a heating plan.
I also have a thermostat scipt in dzVents wich works and regulates temperature according to actual setpoint temperature from Setpoint Device.
How to make the script know all setpoints changes in the heating plan with tempeartures and their change times ?
Or at least the next change that is supposed to happen in the upcoming future ?
Propably it should look something like this:
Code: Select all
local SETPOINT_DEVICE = 62 -- Idx of the setppoint device from Utilities
local setpoint = domoticz.devices(SETPOINT_DEVICE) -- actual setpoint temperature set in Setpoint Device
local upcoming_setpoint_temperature = domoticz.devices(SETPOINT_DEVICE).upcoming_change_temperature
local upcoming_setpoint_time = domoticz.devices(SETPOINT_DEVICE).upcoming_change_time
Code: Select all
local get_setpoint_plan = domoticz.devices(SETPOINT_DEVICE).pull_all_plan_from_device
I know I can make a selector device with such a plan written by hand but I prefer to use the Setpoint Device so lets stick to it.
Any ideas ?