Announcing Pre-Release Daikin Wifi Controller Plugin

Posted on
Wed Jul 06, 2022 7:52 am
neilk offline
Posts: 729
Joined: Jul 13, 2015
Location: Reading, UK

Re: Announcing Pre-Release Daikin Wifi Controller Plugin

OK - thanks both

@agame - I am going to have to do some more digging as the method I use is now identical to your script that works, I will look to add more debug logging and could look to doing this with a curl as a test version (it would be relatively easy to modify) but this is now a head scratcher. Is your script running with Python 3 ?

@Marcus - I will take a look at the weekend, it may be I fork a version of the plugin specific for your device(and then fold back in once we have it working), and that could support the specific features you need, it is going to be a little experimental but I think we can get something useful for you. Also do you have specific actions that are most important to you ?

Posted on
Wed Jul 06, 2022 6:32 pm
Bleasel offline
Posts: 88
Joined: Mar 05, 2014
Location: Sydney, AUSTRALIA

Re: Announcing Pre-Release Daikin Wifi Controller Plugin

Thanks Neil

The only specific actions are
On/off (this works)
Set Mode (Cool, Heat)
The set temperature is not important as we don't change that much.
Turning Zones on or off would be nice, but not essential.

Posted on
Wed Jul 06, 2022 6:37 pm
agame offline
Posts: 514
Joined: Jul 13, 2017
Location: Melbourne, Australia

Re: Announcing Pre-Release Daikin Wifi Controller Plugin

thanks Neil

no stress, obviously i do have the script so the plugin would be nice to use for HomeKit integration but not mission critical.

yes, i adjusted the script for Python 3 successfully.

Posted on
Tue Jul 19, 2022 9:58 pm
Bleasel offline
Posts: 88
Joined: Mar 05, 2014
Location: Sydney, AUSTRALIA

Re: Announcing Pre-Release Daikin Wifi Controller Plugin

Hi Neil


I deleted the code lines that refer to dt3, dt4, shum

No errors then, but noticed the modes were different. So I changed the mode lines to


if ac_data['mode']=='7':
#7 IS De Humidify
state_updates.append({'key': "hvacOperationMode", 'value': 0})
state_updates.append({'key': "operationMode", 'value': 'De-Humidify'})
dev.updateStateImageOnServer(indigo.kStateImageSel.DehumidifierOn)

elif ac_data['mode']=='2':
#2 is Cool
state_updates.append({'key': "hvacOperationMode", 'value': 2})
state_updates.append({'key': "hvacHeaterIsOn", 'value': False})
state_updates.append({'key': "hvacCoolerIsOn", 'value': True})
state_updates.append({'key': "operationMode", 'value': 'Cooling'})
if dev.pluginProps['sync_setpoints']:
state_updates.append({'key': "setpointCool", 'value': float(ac_data['stemp']), 'uiValue' : ac_data['stemp'] + stateSuffix})
dev.updateStateImageOnServer(indigo.kStateImageSel.HvacCoolMode)


elif ac_data['mode']=='1':
#1 is heat
state_updates.append({'key': "hvacOperationMode", 'value': 1})
state_updates.append({'key': "hvacHeaterIsOn", 'value': True})
state_updates.append({'key': "hvacCoolerIsOn", 'value': False})
state_updates.append({'key': "operationMode", 'value': 'Heating'})
if dev.pluginProps['sync_setpoints']:
state_updates.append({'key': "setpointHeat", 'value': float(ac_data['stemp']), 'uiValue' : ac_data['stemp'] + stateSuffix})
dev.updateStateImageOnServer(indigo.kStateImageSel.HvacHeatMode)


elif ac_data['mode']=='0':
#fan mode 0
state_updates.append({'key': "hvacOperationMode", 'value': 0})
state_updates.append({'key': "operationMode", 'value': 'Fan'})
dev.updateStateImageOnServer(indigo.kStateImageSel.FanHigh)


else:
# Then the unit must be in auto mode
state_updates.append({'key': "hvacOperationMode", 'value': 3})
state_updates.append({'key': "operationMode", 'value': 'Auto'})
dev.updateStateImageOnServer(indigo.kStateImageSel.HvacAutoMode)
if dev.pluginProps['sync_setpoints']:
state_updates.append({'key': "auto_setpoint", 'value': float(ac_data['stemp']), 'uiValue' : ac_data['stemp'] + stateSuffix})



Seems to work. Thanks

Posted on
Wed Jul 20, 2022 3:50 pm
neilk offline
Posts: 729
Joined: Jul 13, 2015
Location: Reading, UK

Re: Announcing Pre-Release Daikin Wifi Controller Plugin

Great - I have been maxxed out work wise and ironically the hot weather has stopped me spending time coding. I will fork a version for your controller when I get a chance.

Neil

Who is online

Users browsing this forum: No registered users and 3 guests