Daikin Wifi controller released for 2022.1/Python 3

Posted on
Sat May 14, 2022 4:03 am
neilk offline
Posts: 715
Joined: Jul 13, 2015
Location: Reading, UK

Daikin Wifi controller released for 2022.1/Python 3

I have pushed a release version to the plugin store, no functionality updates but support for Indigo 2022.1 +

https://www.indigodomo.com/pluginstore/264/ (Pending Approval) or in Github https://github.com/neilkplugins/Daikin-Wifi-indigo-plugin/releases/tag/2022.0.1

For earlier versions of indigo you can use https://github.com/neilkplugins/Daikin-Wifi-indigo-plugin/releases/tag/0.1.1

Posted on
Thu Jun 02, 2022 1:21 pm
mclass offline
Posts: 315
Joined: May 13, 2015
Location: Melbourne, Australia

Re: Daikin Wifi controller released for 2022.1/Python 3

Hi!

Have attempted to run plugin with a Daikin Alira split system that comes with integrated wifi adapter that I believe is (or emulates) the BRP069C41 controller.

This is unclear as I understand this model adapter uses authentication, but i can communicate with the controller using the API without authentication.

On enabling the plugin with debugging on, it appears to start ok:
Code: Select all
  Enabling plugin "Daikin Wifi Controller 2022.0.1" using API v3.0
   Starting plugin "Daikin Wifi Controller 2022.0.1" (pid 22036)
   Started plugin "Daikin Wifi Controller 2022.0.1"
   Daikin Wifi Controller Debug    startup called
   Daikin Wifi Controller Debug    Starting concurrent thread


On creating the device for the controller I get the following error(s):
Code: Select all
  Daikin Wifi Controller Debug    Starting concurrent thread
   Daikin Wifi Controller Debug    [['ret', 'OK'], ['pow', '0'], ['mode', '4'], ['stemp', '23.0'], ['shum', '0'], ['adv', '13'], ['dt1', '21.0'], ['dt2', 'M'], ['dt3', '25.0'], ['dt4', '23.0'], ['dh1', '0'], ['dh2', '0'], ['dh3', '0'], ['dh4', '0'], ['dhh', '0'], ['alert', '16'], ['f_rate', 'A'], ['dfr1', 'B'], ['dfr2', 'A'], ['dfr3', 'A'], ['dfr4', 'A'], ['dfr6', 'A'], ['dfrh', '0'], ['f_dir_ud', '0'], ['f_dir_lr', '0'], ['ndfd1', '00'], ['ndfd2', '00'], ['ndfd3', '00'], ['ndfd4', '00'], ['ndfd6', '00'], ['ndfdh', '00'], ['ret', 'OK'], ['htemp', '13.0'], ['hhum', '50'], ['otemp', '9.0'], ['err', '0'], ['cmpfreq', '0'], ['mompow', '1']]
   Daikin Wifi Controller Debug    [['ret', 'OK'], ['pow', '0'], ['mode', '4'], ['stemp', '23.0'], ['shum', '0'], ['adv', '13'], ['dt1', '21.0'], ['dt2', 'M'], ['dt3', '25.0'], ['dt4', '23.0'], ['dh1', '0'], ['dh2', '0'], ['dh3', '0'], ['dh4', '0'], ['dhh', '0'], ['alert', '16'], ['f_rate', 'A'], ['dfr1', 'B'], ['dfr2', 'A'], ['dfr3', 'A'], ['dfr4', 'A'], ['dfr6', 'A'], ['dfrh', '0'], ['f_dir_ud', '0'], ['f_dir_lr', '0'], ['ndfd1', '00'], ['ndfd2', '00'], ['ndfd3', '00'], ['ndfd4', '00'], ['ndfd6', '00'], ['ndfdh', '00'], ['ret', 'OK'], ['htemp', '13.0'], ['hhum', '50'], ['otemp', '9.0'], ['err', '0'], ['cmpfreq', '0'], ['mompow', '1'], ['ret', 'OK'], ['curr_day_heat', '0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0'], ['prev_1day_heat', '0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0'], ['curr_day_cool', '0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0'], ['prev_1day_cool', '0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0'], ['ret', 'OK'], ['s_dayw', '5'], ['week_heat', '0/0/0/0/0/0/0/0/0/0/0/0/0/0'], ['week_cool', '0/0/0/0/0/0/0/0/0/0/0/0/0/0'], ['ret', 'OK'], ['curr_year_heat', '0/0/0/0/0/0/0/0/0/0/0/0'], ['prev_year_heat', '0/0/0/0/0/0/0/0/0/0/0/0'], ['curr_year_cool', '0/0/0/0/0/0/0/0/0/0/0/0'], ['prev_year_cool', '0/0/0/0/0/0/0/0/0/0/0/0']]
   Daikin Wifi Controller Error    Error in plugin execution runConcurrentThread:

  File "plugin.py", line 452, in runConcurrentThread
  File "plugin.py", line 256, in _refreshStatesFromHardware
type: 'f_dir'

   Daikin Wifi Controller Error    plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)


The data returned reflects that shown on the Daikin app, so comms with the Alira appears to be OK. The data is NOT reflected in the Indigo device states. Any thoughts?

mclass

Posted on
Thu Jun 02, 2022 2:37 pm
neilk offline
Posts: 715
Joined: Jul 13, 2015
Location: Reading, UK

Re: Daikin Wifi controller released for 2022.1/Python 3

Hi,
It looks like they way this model reports fan direction is a little different to the one I have, and it may take a little experimentation to get it correct. The data returns

Code: Select all
['f_dir_ud', '0'], ['f_dir_lr', '0']
which looks like two different states for what I presume is "Up/Down" and "Left/Right"

whereas mine just returns

Code: Select all
['f_dir', '0']
which covers Horizontal, Vertical, Horizontal and Vertical

I will create a version that covers both responses, guessing the values it will return but we may need to test it, and if those states are incorrect I will ask you to capture the debug logging with the unit in the various states so we can correctly set the states. I will also check for any updates to the documentation that I used at the time to build this.

Thanks,
Neil

Posted on
Thu Jun 02, 2022 3:01 pm
mclass offline
Posts: 315
Joined: May 13, 2015
Location: Melbourne, Australia

Re: Daikin Wifi controller released for 2022.1/Python 3

Thanks for the prompt response. Happy to test and/or “dump” various outputs - the adapter is quite accessible from a browser!

mclass


Sent from my iPad using Tapatalk

Posted on
Thu Jun 02, 2022 3:09 pm
neilk offline
Posts: 715
Joined: Jul 13, 2015
Location: Reading, UK

Re: Daikin Wifi controller released for 2022.1/Python 3

Hi,
https://github.com/neilkplugins/Daikin-Wifi-indigo-plugin/releases/tag/2022.0.2alpha is an alpha version that should fix the error and adds two new states to the device to represent the up/down and left/right fan directions.

Note the action to set fan direction will fail, if the status reporting works, I will need debugging logs with the fan directions set in the various combinations and I will figure out a way of implementing the necessary actions.

You may need to edit the device to refresh the additional states. Let me know if this version gets us further.

Neil

Posted on
Fri Jun 03, 2022 7:56 pm
mclass offline
Posts: 315
Joined: May 13, 2015
Location: Melbourne, Australia

Re: Daikin Wifi controller released for 2022.1/Python 3

Thanks Neil!

Works great, with the exception of two cases of air flow direction. I have attached a text file of various combinations of swing settings.

Note that the Alira X has additional settings for "comfort air flow", "flash streaming". (air cleaning), and "mould proof operation" that may (or may not!!) appear in the status reports. These may also confuse things.

If a copy of the user manual might help you can access a copy here:
https://www.dropbox.com/s/elt1dc47efjuggm/daikin-split-system-Alira-X-FTX%28K%29M20-71WVMA.pdf?dl=0.

Thanks again for your work on this plugin!

mclass
Attachments
Debug Log_20220604.txt
(8.68 KiB) Downloaded 75 times

Posted on
Sun Jun 05, 2022 7:55 am
neilk offline
Posts: 715
Joined: Jul 13, 2015
Location: Reading, UK

Re: Daikin Wifi controller released for 2022.1/Python 3

Great that we are making progress and thanks for the debugging log.

It looks like Daikin are not consistent in the approach for fan direction, and I had a typo in the code that caused one of the errors.

Based on the logging this should now correctly set the two new device states fan_direction_left_right (and _up_down) based on how they are set.

I also added two actions to set the sate "Set Fan Direction Alira - Up/Down" and "Set Fan Direction Alira - Left/Right" that should work but I cannot test if the call is correct, it was an educated guess.

If you would like the device to report those additional modes/states then if you can post me a similar debug log with the comfort air flow, flash streaming and mould proof options set and we can see if it is reporting and if we can figure out how it is reported.

The API documentation is sketchy to say the least and they don't seem to be too consistent between the device types.

The latest version incorporating those fixes is https://github.com/neilkplugins/Daikin-Wifi-indigo-plugin/releases/tag/2022.0.3alpha

Neil

Posted on
Sun Jun 05, 2022 3:25 pm
mclass offline
Posts: 315
Joined: May 13, 2015
Location: Melbourne, Australia

Re: Daikin Wifi controller released for 2022.1/Python 3

Many thanks for all this Neil!

I’m “off site” for a few days, so it might be a while before i can test and respond,

Will do so asap.

mclass


Sent from my iPad using Tapatalk

Posted on
Mon Jun 06, 2022 3:16 am
neilk offline
Posts: 715
Joined: Jul 13, 2015
Location: Reading, UK

Re: Daikin Wifi controller released for 2022.1/Python 3

Not a problem, it may be the weekend before I could do any more with it anyway.

Neil

Posted on
Tue Jun 07, 2022 1:15 am
mclass offline
Posts: 315
Joined: May 13, 2015
Location: Melbourne, Australia

Re: Daikin Wifi controller released for 2022.1/Python 3

Hi Neil

Thanks again!

The device states for fan direction are now reporting correctly.

The new actions are OK for "Up/Down", but "Left/Right" has issues. I have documented these in the attached debug logs document. This document also records the logs for the various "special features". The basics are now good, so there's no urgency but it would be good to get the whole thing sorted.

Encouraged by this outcome, I'm tempted to fit a wireless module to the second Daikin in the house which is a "Cora" but my brain hurts so I might take a break for a while!!

Thanks and regards,

mclass
Attachments
Debug Log_220607.txt
(12.39 KiB) Downloaded 70 times

Posted on
Tue Jun 07, 2022 5:16 am
neilk offline
Posts: 715
Joined: Jul 13, 2015
Location: Reading, UK

Re: Daikin Wifi controller released for 2022.1/Python 3

I fixed the issue with the LR (just a typo) so this should work.

I will take a look at the log and see if we can figure out the other states/actions if they are indeed reported, probably over the weekend.

https://github.com/neilkplugins/Daikin-Wifi-indigo-plugin/releases/tag/2022.0.4alpha

Neil

Posted on
Tue Jun 07, 2022 7:54 pm
mclass offline
Posts: 315
Joined: May 13, 2015
Location: Melbourne, Australia

Re: Daikin Wifi controller released for 2022.1/Python 3

Hi Neil!

Still seems to be an issue with L/R action group - there's no option in the configuration for L/R - only U/D (see marked-up screen shot attached).

The debug that this action returns is

Code: Select all
   Action Group                    Alira Left/Right On
   Daikin Wifi Controller Debug    /aircon/set_control_info?pow=1&mode=4&stemp=24.0&shum=0&f_rate=A&f_dir_LR=S
   Daikin Wifi Controller Debug    http://10.10.15.211/aircon/set_control_info?pow=1&mode=4&stemp=24.0&shum=0&f_rate=A&f_dir_LR=S
   Daikin Wifi Controller Debug    [['ret', 'OK'], ['pow', '1'], ['mode', '4'], ['stemp', '24.0'], ['shum', '0'], ['adv', '13'], ['dt1', '23.0'], ['dt2', 'M'], ['dt3', '26.0'], ['dt4', '24.0'], ['dh1', '0'], ['dh2', '0'], ['dh3', '0'], ['dh4', '0'], ['dhh', '0'], ['alert', '16'], ['f_rate', 'A'], ['dfr1', 'A'], ['dfr2', 'A'], ['dfr3', 'A'], ['dfr4', 'A'], ['dfr6', '3'], ['dfrh', '0'], ['f_dir_ud', '0'], ['f_dir_lr', 'S'], ['ndfd1', '00'], ['ndfd2', '00'], ['ndfd3', '00'], ['ndfd4', '0S'], ['ndfd6', '00'], ['ndfdh', '00'], ['ret', 'OK'], ['htemp', '23.0'], ['hhum', '35'], ['otemp', '12.0'], ['err', '0'], ['cmpfreq', '38'], ['mompow', '17']]
   Daikin Wifi Controller Debug    ret=OK,adv=13
   Daikin Wifi Controller          Daikin Alira: set fan direction LR to S
   Daikin Wifi Controller Debug    [['ret', 'OK'], ['pow', '1'], ['mode', '4'], ['stemp', '24.0'], ['shum', '0'], ['adv', '13'], ['dt1', '23.0'], ['dt2', 'M'], ['dt3', '26.0'], ['dt4', '24.0'], ['dh1', '0'], ['dh2', '0'], ['dh3', '0'], ['dh4', '0'], ['dhh', '0'], ['alert', '16'], ['f_rate', 'A'], ['dfr1', 'A'], ['dfr2', 'A'], ['dfr3', 'A'], ['dfr4', 'A'], ['dfr6', '3'], ['dfrh', '0'], ['f_dir_ud', '0'], ['f_dir_lr', 'S'], ['ndfd1', '00'], ['ndfd2', '00'], ['ndfd3', '00'], ['ndfd4', '0S'], ['ndfd6', '00'], ['ndfdh', '00'], ['ret', 'OK'], ['htemp', '23.0'], ['hhum', '35'], ['otemp', '12.0'], ['err', '0'], ['cmpfreq', '38'], ['mompow', '17'], ['ret', 'OK'], ['curr_day_heat', '0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0'], ['prev_1day_heat', '0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0'], ['curr_day_cool', '0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0'], ['prev_1day_cool', '0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0'], ['ret', 'OK'], ['s_dayw', '3'], ['week_heat', '0/0/0/0/0/0/0/0/0/0/0/0/0/0'], ['week_cool', '0/0/0/0/0/0/0/0/0/0/0/0/0/0'], ['ret', 'OK'], ['curr_year_heat', '0/0/0/0/0/0/0/0/0/0/0/0'], ['prev_year_heat', '0/0/0/0/0/0/0/0/0/0/0/0'], ['curr_year_cool', '0/0/0/0/0/0/0/0/0/0/0/0'], ['prev_year_cool', '0/0/0/0/0/0/0/0/0/0/0/0']]



and the L/R remains unchanged on the unit. The L/R "no motion" action also has no effect on the unit.

mclass
Attachments
Screenshot 2022-06-08 at 11.32.41 am.png
Screenshot 2022-06-08 at 11.32.41 am.png (216.25 KiB) Viewed 2399 times

Posted on
Wed Jun 08, 2022 3:19 am
neilk offline
Posts: 715
Joined: Jul 13, 2015
Location: Reading, UK

Re: Daikin Wifi controller released for 2022.1/Python 3

Sorry for the mess up here and thanks for bearing with this.

More haste and less speed, and thanks for the excellent and detailed feedback, the issue was my test LR action group was actually running the UD action when I set it up so I missed the errors

https://github.com/neilkplugins/Daikin-Wifi-indigo-plugin/releases/tag/2022.0.5alpha should fix that, it appears the API endpoint works on my unit as well but it is undocumented

I have also made some progress on the other options, I will be able to add actions to enable/disable the streamer/cleaning mode, i have more work to do to check the status and update a state as they use different API calls. I will spend some time on this at the weekend (and it will be tested more thoroughly)

For the other options, can they be set by the Daikin App you use (if not then it may not be possible) If yes can you give me details of the app itself as it may be possible to extract the necessary details from the Android version of that app (that is how someone found the streamer option API call). and I will see if we can use the same method.

Neil

Posted on
Thu Jun 09, 2022 2:00 am
mclass offline
Posts: 315
Joined: May 13, 2015
Location: Melbourne, Australia

Re: Daikin Wifi controller released for 2022.1/Python 3

Well done, Neil, and many thanks (again!!)

The new version works well now.

The app I am using is the iOS Daikin Mobile Controller version 4.2.1. It doesn't provide control of the "special functions", but does report if the unit is in "powerful" mode if this is actuated from the remote. Reporting of the other "special functions" is not provided.

Many thanks for your efforts in adapting this to suit the Alira, and fingers crossed that there's no other Daikin variants lurking in the background!!

Regards,

mclass

Posted on
Thu Jun 09, 2022 3:30 pm
neilk offline
Posts: 715
Joined: Jul 13, 2015
Location: Reading, UK

Re: Daikin Wifi controller released for 2022.1/Python 3

So I managed to make a version that supports the special modes for Powerful, Econo and Streamer. I looked at your logging examples and the reporting I am using does not appear for the streamer mode but does for powerful, maybe that was an anomaly.

https://github.com/neilkplugins/Daikin-Wifi-indigo-plugin/releases/tag/2022.0.6alpha

Adds "special_mode" device state

Actions to set special mode to "Enable or Disable" Econo, Powerful and Streamer

I wonder is Econo is equivalent to Comfort. I have this working with mine

In the logging it is "adv" that reports special mode, 12 is Econo, 13 Streamer, and 2 is powerful in the raw data (Streamer on and Powerful should report as 12/13 for example.

If not them I am afraid the API is different.

Thanks,
Neil

Who is online

Users browsing this forum: No registered users and 1 guest

cron