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