Add support to register the UUID so people don’t need to perform manual registration using curl
Assigned representation-property to the thing, so the autodiscovered thing will be ignored by default if a manual one was already added.
some bug fixes
To test:
Please move the previous daikin jar file in the addons folder to a different folder, outside of the addons folder.
Drop the new jar into the addons folder
Testing the auto registration feature:
** Generate a new UUID4 e.g. from https://www.uuidgenerator.net/. You can use the UUID4 verbatim in the things file without stripping the dashes
** In your Things file, comment out your old Thing definition and duplicate it. On the active Thing definition, use the new UUID4
** Add key=“xxxxxxxxx” using the 13-digit key required to register a uuid from your adapter. The binding will perform the uuid registration for you.
Even though the configured uuid4 is new, it should work (after the second poll, which by default is 60 seconds each poll, so it will be 2 minutes in that case)
Testing the autodiscovery
Please go to PaperUI -> Inbox.
Show Ignored
Delete any Daikin things from the inbox
Perform daikin discovery
Add the discovered controller as a Thing
Check Paper UI Configuration -> Things - at this stage, the Thing should be there, named “Daikin AC Unit (x_x_x_x)” but OFFLINE / COMMUNICATION_ERROR
Edit the discovered Thing and give it a UUID (can be an existing, valid UUID, in which case, you can leave the key empty, or a new UUID + also enter the key - so it would do a uuid registration)
Hmm at this point, it will be fine because the other controller (Airbase) currently doesn’t support HTTPS yet. So when a https controller is detected, it would be detected always as BRP072C42 instead of Airbase.
If one day they release an Airbase controller that does https, it will become an issue with autodiscovery.
I was hoping that non existent pages will return 404 instead of 403!
* HTTP 1.0, assume close after body
< HTTP/1.0 404 Not Found
< Content-Length: 30
< Content-Type: text/plain
<
* Closing connection 0
ret=PARAM NG,msg=404 Not Found
Update: Currently testing the beta7 version - waiting for feedback from @alison before posting it here.
Try restarting the binding if necessary
bundle:restart org.openhab.binding.daikin
Things to test:
Autodiscovery
Assign a known uuid with a blank (unconfigured) key
Assign a new uuid and set the correct key on the Thing configuration, and see whether the binding will register the uuid and proceed to work afterwards
BTW is there a list of devices that the binding supports ?
It just says it’s about air conditioners.
I’m looking to get a Altherma R (ex Rotex) heatpump, how about those ?
And how does it relate to the OpenDaikin binding available on marketplace?
I can’t answer the question about which devices the binding supports, but in terms of opendaikin - this is the successor to that binding. When the binding was added to the openhab source code, the binding was renamed- history is here https://github.com/openhab/openhab-addons/pull/3044
@madsing thanks for your feedback. Please test this latest beta10. There have been some minor changes during the PR process. I hope it won’t affect the functionality but it’s better to test before it gets included in the official 2.5.5 release
AFAIK this just supports Daikin air conditioners where a Wifi adapter (it’s a separate box afaik) has been connected to. So this binding is actually communicating with the Wifi adapter, not to the air conditioner directly. The wifi adapter has a somewhat standardised syntax to communicate over http, and it then translates what proprietary signals need to be sent to the connected air conditioner via a proprietary wired link.
Currently it is known to support 2, soon to be 3, different kinds of Wifi adapter models: BRP072A42, BRP072C42 and the so called “Airbase adapter” BRP15B61. These adapters support quite a few different kinds/models of Daikin air conditioners, usually the split type or ducted type. Perhaps someone else can add more details about this and whether they also support heaters / heat pumps.
If you can get the documentation of how Altherma R (ex Rotex) heatpump works/communicates and if it looks similar to the other adapters’ protocol, perhaps we can incorporate it / add support for it into this binding.
FYI, this binding communicates with the wifi adapters using HTTP / HTTPS. You can see some of the sample http requests in the posts above.
Beta10 works fine for me. No issue detected.
Question: I have several BRP072C42 adapters. Should I generate a different UUID for each of them, or can I use the same one?
Thanks again!
I don’t see a reason why you should use a different UUID for each of them. The only possible reason would be how paranoid you are about people getting on your network and hijacking your air conditioning system after they’ve managed to intercept your SSL session, which is probably easy to do since the binding doesn’t verify the SSL certificate in any way.
@madsing while you’re doing some tests, would you mind testing the autodiscovery feature please? You can just discover / add the thing without deleting your existing things. I’d like to know whether discovery works and whether a new UUID registration done by the binding works. I believe it should, but it’s nice to get a confirmation from a real test.
In principle, Altherma control works the same way with the BRP069A62 controller.
Maybe you can try to use the code in this post/thread on an aircon of yours ?
At least I think you should synchronize with @kbecker to find out what your and his code have in common.