Controlling daikin airco with DzVentz, not consistent
Posted: Wednesday 22 April 2020 23:03
Hi all,
I try to make a script in dzVentz to control my Daikin airco, which I have as a Daikin Airconditioning with LAN (HTTP) interface hardware in Domoticz 4.10717.
For now I have been using the following test script:
I'm able to adjust single parameters via the script, like change in setpoint or turn on/off. However, when I try to change other parameters (mode, vent), or give multiple instructions at once the airco doesnt always take over the settings, sometimes it does when the instructions are repeated but also sometimes it doesn't . I havent been able to figure out what the problem is. Can the airco not handle multiple instructions directly after each other, or is the communication not so reliable at all? Is there any solution for this?
Thanks
I try to make a script in dzVentz to control my Daikin airco, which I have as a Daikin Airconditioning with LAN (HTTP) interface hardware in Domoticz 4.10717.
For now I have been using the following test script:
Code: Select all
return {
active = true,
on = {
timer = {'every minute'}
},
execute = function(domoticz, device)
local AircoSP = domoticz.devices(1087) --Temp Setpoint (airco) Thermostat SetPoint
local AircoPower = domoticz.devices(1085) --Power (airco) Light/Switch Switch
local AircoMode = domoticz.devices(1086) --Mode (airco) Light/Switch Selector: 0 Off, 10 AUTO, 20 DEHUMDIFICATOR, 40 HOT, 50 FAN
local AircoVent = domoticz.devices(1088) --Ventillation (airco) Light/Switch Selector: 0 Off, 10 AUTO, 20 Silence, 30 Lev 1, 40 Lev 2, 50 Lev 3, 60 Lev 4, 70 Lev 5
local AircoWind = domoticz.devices(1089) --Winds (airco) Light/Switch Selector: 0 Off, 10 Stopped, 20 Vert, 30 Horiz, 40 Both
-- AircoPower.switchOn()
AircoMode.switchSelector(10) -- Selector: 0 Off, 10 AUTO, 20 DEHUMDIFICATOR, 40 HOT, 50 FAN
AircoSP.updateSetPoint(19)
AircoVent.switchSelector(10) --Selector: 0 Off, 10 AUTO, 20 Silence, 30 Lev 1, 40 Lev 2, 50 Lev 3, 60 Lev 4, 70 Lev 5
domoticz.notify('Mode:'..AircoMode.state..' Vent:'..AircoVent.state..' Temp:'..AircoSP.state)
end
}
Thanks