-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Netatmo] Binding rewrite without external dependencies - step 2 #10831
Conversation
@mdillman, @Novanic , @robnielsen : you should not have any Karaf issue now. |
Hi @clinique, just tried to build this new branch but "OpenHAB Annotation hell" struck: |
Created a PR in your repo to adress the build-issue (also seen here in Jenkins) and fixes for Thermostat/Valves. Support for both is considered now stable by me. |
@clinique : Discovery still does not find any Weather things for me (I do not have any favorites set on the Netatmo site). Debugging thru the discovery-part of the binding, it looks like it tries to create the NAMain-Bridge under the then current NAHome (NAHomeEnergy). |
@lolodomo , @cweitkamp : we're doing our best with @mdillmann to have this PR properly ready in regard of OH3.1 While we're still working on some issue, would one of you agree to start reviewing code ? |
@clinique, my binding has been offline for about 5 hours. I see this in the logs. openhab.log:
events.log:
And nothing else for the Netatmo binding after these entries. |
@robnielsen : what version of the binding are you currently using ? Is it a recent one ?
This action can be based on any discovered thing (and reconnects the whole binding) |
With the last version, enabling camera monitoring is no more working. It looks like there is even a kind of (infinite ?) loop:
|
Something like "Home ID" + "Unique identifier of the home defined by Netatmo.". |
You just added the signal group for the camera but I am not sure at all it is relevant. It is not there in the current binding. The values are set to 0 dBm + Excellent. What is it ? The WiFi signal ? 0 dBm is strange. For example, my main weather station has a non zero value (42 dBm). |
For the camera, what looks missing in the refactored binding is all channels that are providing the different information of the last received camera event (message, type, timestamp, snapshot, ...). |
@clinique - general: i18n strings are not maintained after text changes. Maybe you can try to run |
I really do not like your approach with ULTRA generic channel types like "string" channel type ! I do not believe this is the original philosophy behind a channel type. And this is not what we have in the current binding. |
Ok, corrected.
Enhanced
Yes, this value is now available. Corrected the fact it was at 0.
Ok, done. I did that because the binding heavily relies on channel groups where you can't define channels in details, so channel types did tend to multiply becoming unmaintainable.
Corrected.
I'll adress this once the binding is in the last reviewing steps. |
@clinique: you did not yet push your last changes |
No, I'm still working on it. |
Hi gents, I did not forgot you and am still working. In the meantime I discovered that Netatmo deprecated a lot of API endpoints, so adapting the binding to it. |
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/any-support-for-netatmo-smart-video-doorbell/132022/3 |
Hi @clinique, just checking to see how updating the deprecated api's is going. |
I will be able to push something in a few days. I'm currently trying the binding progressivly. As there is many conflicting files due to year change and snapshot version change, I will perhaps close this one and open a new PR. |
Hi Thanks a lot |
Doorbell is accepted and recognized by this version but no specific functionality right now. BTW I suppose than doorbell button push will go through webhook, but not investigated at the time. We are targetted on finalizing what currently exists in order to merge, and then we'll see to implement new things. |
@clinique I have this error in openHabian 3.2.0. I removed all netatmo things and put the addon in the addons folder.
|
I'm not sure you use the correct version. Last one is available in milestone |
Are you talking about openHab or the netatmo binding? I updated openHab yesterday and that was the latest build available on master. |
So if you updated openhab yesterday, being on a milestone version 3.3 you have available the last version of the binding, no need to install a jar in addons folder. |
Ok , I didn't check the milestone version. As soon I'll get it up and running I'll let you know if it is ok. Thank you! |
@rbonvino - you mentioned that you had this problem with openHABian 3.2. I assume openHABian 1.7 and openHAB 3.2. So just for clarification: Are you testing the new binding with openHAB 3.2 or with a 3.3 milestone/snapshot release? |
@jlaur I updated today at the version 3.3.0M5 and installed the binding from the market, but I have a weird behavour of the binding. While I am able to set correctly the netatmo account, it does not show when I configure the relay plug and the thermostat things. |
I'll do it as soon as possible. Which informations am I supposed to provide? Are there any logs? |
This rework of the Netatmo binding was initiated in order to remove external dependencies (swagger, okio, okhttp...), it ended as a complete rework of it.
Should now be reasonably stable :
Most of work done but to be tested more :
To be started (if someone volunteers):
Latest testable version here.
This PR replaces PR #9486
Signed-off-by: Gaël L'hopital gael@lhopital.org