daikin-control icon indicating copy to clipboard operation
daikin-control copied to clipboard

Daikin Replacement Models: BRP072C42

Open chaicka opened this issue 5 years ago • 4 comments

It seems Daikin has released replacement models for BRP072A42 and BRP072B42 with the new BRP072C42. On one of the 'Home Assistant' forum, it seems someone shared that the new model BRP072C42 uses https instead of http.

Has anyone switch to or receive this new model? Does the existing API codes still work?

Ref: https://community.home-assistant.io/t/confirming-my-findings-for-the-daikin-brp072c42-wifi-component/126981

chaicka avatar Aug 27 '19 09:08 chaicka

From Daikin Thai website, there is mention of fan speed/swing setting, the new BRP072C42 may be required.

Ref: http://www.daikinthai.com/product/dmobile/appmodel

chaicka avatar Aug 27 '19 09:08 chaicka

I got one of these today, and my experience matches that post on the home assistant forum.

I eventually discovered the correct X-Daikin-uuid value for my controller (I'll try to go over my terminal history and write up the steps soon).

Once I had that value, the API appears to be the same as on older controllers. Here's an example curl:

$ curl --insecure -H "X-Daikin-uuid: <32 char hex code>" "https://10.1.1.111/common/basic_info"
ret=OK,type=aircon,reg=th,dst=1,ver=1_12_8,rev=93E736A.....

yob avatar Sep 19 '19 13:09 yob

Here's a solution for token-based auth that seems to work for me.

  1. Generate a UUID4 (https://www.uuidgenerator.net/ is one way to do it). eg. 7b9c9a47-c9c6-4ee1-9063-848e67cc7edd
  2. Strip the hyphens from the UUID. eg. 7b9c9a47c9c64ee19063848e67cc7edd
  3. Grab the 13-digit key from the sticker on the back of the controller. eg. 0123456789012
  4. Register your UUID as a valid token:

curl --insecure -H "X-Daikin-uuid: 7b9c9a47c9c64ee19063848e67cc7edd" -v "https://<controller-ip>/common/register_terminal?key=0123456789012"

  1. Use the UUID to call the usual API endpoints:

curl --insecure -H "X-Daikin-uuid: 7b9c9a47c9c64ee19063848e67cc7edd" -v "https://<controller-ip>/common/basic_info"

yob avatar Sep 20 '19 11:09 yob

It would be great if you could test the changes I've made to pydaikin: https://bitbucket.org/mustang51/pydaikin/branch/BRP072C42#diff

fredrike avatar Apr 16 '20 12:04 fredrike