I got
three setpoints
a switch slider
Temperature and
valve mode device
The valve mode contains:
off = valve closed
heat = uses setpoint heat
heat eco= uses setpoint heat eco
Full power = for a couple of minutes maximum valve
and manufacturer specific.
some dzvents actions i tried and they work:
dz.devices('Slaapkamer Thermostat Mode').updateMode('Heat Eco')
dz.devices('slaapkamer_heat_temp').updateSetPoint(21)
dz.devices('Slaapkamer Thermostat Mode').updateMode('Manufacturer Specific')
Some questions
1. i am looking how to read the value from 'Heat Eco' in dzvents
2. i have a third setpoint, when is this setpoint used?
3. when i select manufacturer specific,from the drop down bar it returns "heat"
4. What does "manufacturer specific" do ?
5. When i operate the valve manually it also changes the actual setpoint, that looks strange!
I expected that when you manually change the valve, a manual mode is selected and and a setpoint that belogs to manually changes...
script (first attempt) and not working
Code: Select all
-- i set the valve always to heat as a sort of default/actual thermo setting
-- at nighttime i change the current heat setpoint to the value from heat eco setpoint
-- i disable the slider switch
-- i disable the setpoint (one i dont know what it does)
-- i am looking how to read the value from 'Heat Eco' in dzvents and how to set heat sp with value from eco sp
return {
on = {devices = {'testverwarming'}},
logging = { level = domoticz.LOG_DEBUG ,
marker = "Security"},
execute = function(dz, device, info)
local currenttempset = dz.devices('slaapkamer_heat_temp')
local currenttempseteco = dz.devices('slaapkamer_heat_eco_temp')
if currenttempset.temperature <> currenttempseteco.temperature
currenttempset.updateSetPoint(currenttempseteco.temperature)
end
end
}