How to setup a heating plan with dzVents?
Posted: Friday 15 November 2019 10:38
In the past week, I have had setup a heating plan for my new radiator thermostats with the Blockly event engine.
However, I quickly discovered that Blockly with its limitation (or better simplifications) cannot handle a more complex heating plan. Further more, it is not possible to change the thermostat mode in Blockly at all.
A quick search turned out that I should use the dzVents event engine. But with the various snippts available, I could not get me familar with dzVents.
Could someone help me translate the below described logic into a dzVents script? I saw many dzVents snippets with generalization, meaning I understand the scripts in that way that "all devices of a certain type" will be updated instead of a single specific device. However, I need to select the thermostats individually. There are thermostats, that are not part of this heating plan, so they must not be affected by this heating plan.
I have the following hardware with their "devices":
The virtual switch is "On", when I am at home; otherwise, it is "Off". The virtual switch is controlled by an event that is working as intended.
I would like to setup the following logic as an dzVents event script:
Further more, I would like to have a simple On/Off (virtual) switch that when in "On" state sets the thermostat mode to "Heat", and in "Off" state sets the thermostat mode to "Heat Eco".
However, I quickly discovered that Blockly with its limitation (or better simplifications) cannot handle a more complex heating plan. Further more, it is not possible to change the thermostat mode in Blockly at all.
A quick search turned out that I should use the dzVents event engine. But with the various snippts available, I could not get me familar with dzVents.
Could someone help me translate the below described logic into a dzVents script? I saw many dzVents snippets with generalization, meaning I understand the scripts in that way that "all devices of a certain type" will be updated instead of a single specific device. However, I need to select the thermostats individually. There are thermostats, that are not part of this heating plan, so they must not be affected by this heating plan.
I have the following hardware with their "devices":
- Radiator thermostat (Eurotronic Spirit Z-Wave Plus) "Wohnzimmer Heizung" (NodeID 12 0x0c)
- Thermostat Mode "Wohnzimmer Heizung Modus" (Idx 79 ID 00000C01 Unit 1): "Off", "Heat", "Heat Eco", "Full Power", "Manufacturer Specific"
- SetPoint for Heat "Wohnzimmer Heizung Modus Heat" (Idx 80 ID 0000C01 Unit 1)
- SetPoint for Heat Eco "Wohnzimmer Heizung Modus Heat Eco" (Idx 81 ID 0000C0B Unit 1)
- Radiator thermostat (Eurotronic Spirit Z-Wave Plus) "Badezimmer Heizung" (NodeID 13 0x0d)
- Thermostat Mode "Badezimmer Heizung Modus" (Idx 91 ID 00000D01 Unit 1): "Off", "Heat", "Heat Eco", "Full Power", "Manufacturer Specific"
- SetPoint for Heat "Badezimmer Heizung Modus Heat" (Idx 92 ID 0000D01 Unit 1)
- SetPoint for Heat Eco "Badezimmer Heizung Modus Heat Eco" (Idx 93 ID 0000D0B Unit 1)
- Virtual switch "At Home" (Idx 105 ID 000140B9 Unit 1)
The virtual switch is "On", when I am at home; otherwise, it is "Off". The virtual switch is controlled by an event that is working as intended.
I would like to setup the following logic as an dzVents event script:
- On workdays at 05:00 (24h), "Wohnzimmer Heizung" and "Badezimmer Heizung" shall preheat their rooms to 22°C and 24°C.
- On workdays at 08:30 (24h), both "Wohnzimmer Heizung" and "Badezimmer Heizung" shall chill their rooms to 19°C.
- On workdays at 15:00 (24h), "Wohnzimmer Heizung" and "Badezimmer Heizung" shall preheat their rooms to 22°C and 20°C.
- On workdays at 22:00 (24h), both "Wohnzimmer Heizung" and "Badezimmer Heizung" shall chill their rooms to 18°C.
- On weekends at 07:30 (24h), "Wohnzimmer Heizung" and "Badezimmer Heizung" shall preheat their rooms to 22°C and 24°C.
- On weekends at 10:30 (24h), "Badezimmer Heizung" shall chill their room to 20°C.
- On weekends at 22:00 (24h), both "Wohnzimmer Heizung" and "Badezimmer Heizung" shall chill their rooms to 18°C.
- Despite nighttime chilling (22:00), all other chilling events shall be deferred until I leave home. But they shall be discarded when a later time-event have triggered. There shall be only one deferred time-event (the most recent).
Further more, I would like to have a simple On/Off (virtual) switch that when in "On" state sets the thermostat mode to "Heat", and in "Off" state sets the thermostat mode to "Heat Eco".