robertklep / nefit-easy-http-server

HTTP server to access Nefit/Bosch XMPP backend over HTTP
MIT License
38 stars 15 forks source link

Receive xmpp messages from backend #49

Closed adhyh closed 3 years ago

adhyh commented 3 years ago

When i change anything on my nefit easy iOS app it instantly changes on my wall thermostat and vice versa. I assumed an xmpp message is sent to the thermostat/iOS device to inform about the change.

robertklep commented 3 years ago

I never really looked at how that mechanism works, but looking at the code of a (very) old Android app, it looks like XMPP is used for the regular request-response flow, and a separate UDP listener is used to receive notifications from the thermostat.

The latter would be easy to test by using a mobile network instead of your local WiFi, and then updating the status on your wall thermostat. If my assumption is correct, it should take a while before the update is visible in the iOS app (I don't have an Easy anymore so cannot test myself).

In any case, nefit-easy-core can only be used in a polling setup 🙁

adhyh commented 3 years ago

Thanks for the pointers Robert, I'm going to take a look..