Heating plan in dzVents

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

Moderator: leecollings

Post Reply
philips
Posts: 12
Joined: Friday 07 February 2020 15:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Poland
Contact:

Heating plan in dzVents

Post 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 ?
Raspberry Pi 4 2GB
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Heating plan in dzVents

Post 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>
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
philips
Posts: 12
Joined: Friday 07 February 2020 15:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Poland
Contact:

Re: Heating plan in dzVents

Post 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 :)
Raspberry Pi 4 2GB
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest