Page 1 of 1

Heating plan in dzVents

Posted: Friday 07 February 2020 15:57
by philips
Hi,

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
or

Code: Select all

local get_setpoint_plan = domoticz.devices(SETPOINT_DEVICE).pull_all_plan_from_device
The idea behind is to start heating in advance.
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 ?

Re: Heating plan in dzVents

Posted: Saturday 08 February 2020 21:02
by waaren
philips wrote: Friday 07 February 2020 15:57 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 ?
There are no native commands in dzVents to get these values. Closest you could do is to collect this information per thermostat with the json call
<domoticz ip:domoticz port>/json.htm?type=setpointtimers&idx=<idx>

Re: Heating plan in dzVents

Posted: Sunday 09 February 2020 17:32
by philips
waaren wrote: Saturday 08 February 2020 21:02 There are no native commands in dzVents to get these values. Closest you could do is to collect this information per thermostat with the json call
<domoticz ip:domoticz port>/json.htm?type=setpointtimers&idx=<idx>
What a pitty there's no native command ...
But the json option works. Now I need to figure out how to get the printed stuff be recognized bu dzVents.
Looks like 3 days of reading wiki :)