Bosch BTH-RA: Automatic valve adaptation after firmware update
This PR is a continuation of #6761. It triggers the valve adaptation process automatically after an successful firmware update on the Bosch BTH-RA thermostat.
- Why is this needed?
- Can't we make a
toZigbeeconverter for this and let the user trigger it manually?
It's not really needed, more like a "quality of life" improvement. As you mentioned, I already implemented a toZigbee converter to trigger the adaptation manually. It's necessary to do after inserting the batteries/restarting the device anyway. But I'm not sure if everyone knows that a valve adaptation is also necessary after an firmware update. If it's not done right after the update, the room could overheat as the valve is opened to 100% until the adaptation process is triggered. Therefore, I personally would prefer an automatic solution. But feel free to close the PR if you're thinking differently. :smiley:
Does the thermostat send a deviceAnnounce when batteries are re-inserted? If yes, we can trigger on that instead in an onEvent (I expect you also get a deviceAnnounce after the update, as the device typically sends that when booting). Example on how to do something on a deviceAnnounce
would be good if the adoption could be done automatically after a firmware update... after the last update of the bathrooms thermostat the temperatur rised above 30 deg until I recognized it... haha
@u20p17 : Someone complained about the same issue on the bosch community. I totally forgot about it and will work on it soon.
@Koenkk: Using the deviceAnnounce as trigger is a good idea. That should work, not only after firmware updates, but also e.g. changed batteries.
@burmistrzak : Do you plan to implement those changes on your rewrite? Or can/should I implement it?
@DerDreschner Welcome back! 👋
Yeah, it's on my radar, but feel free to give it a shot.
You may have to tweak some stuff to make it work with modernExtend tho. 😅