However when I restart home assistant the Netatmo integration stops functioning. If instread of Netatmo after the platform statement I put template the sensor is shown in the entities however I get no reading.
In developers if I select climate.netatmo_camera_bimbe the battery_level is available as state.
Thanks Toby, I managed to get all the battery states of all my Netatmo valves.
I removed the |int|default(0) argument as the output was already an integer. The battery_netatmo_valves.yaml script has been saved in the sensors/battery folder and it is the following
Do you guys have your valves configured in individual rooms? I have some valves in the same room and grouped them in the Netatmo & Homekit environment.
I suspect that when this is the case, the battery level is not provided for these valves as I donât see the individual valves in Home Assistent. In the rooms where thereâs only one valve this property is populated.
Would you guys know if there would be a way to get all the individual valves?
There are multiple problems. For one, you are using homekit whereas he is using the Netatmo integration, which provides attributes you probably donât have. Further, such template sensors are not meant to be simply copied and pasted if you donât have a basic understanding how they work. Iâd suggest to read the docs on templates and template sensors and start playing in the dev tools section where you have all states and attributes available and can freely build up the desired template that fulfils you needs.
Iâve created the sensors with your config too and it works at least for the rooms with a single valve. The room in my case with 4 valves and the thermostat I think I have the thermostat value.
But the problem for me is that I get âfullâ or âhighâ and I donât know how to get the numeric value in percentage.
Is it possible to get it or Netatmo has changed itâs battery value representation?
I actually have the same problem on my side. Also had the problem where some random valves would not send their battery states.
At the moment all of my valves are communicating their battery states but only in âhighâ âlowâ status.
I believe they changes something within their api.
Maybe someone with better code knowledge as I have might figure out how to pull data using the rest template like for this case : MyStrom Switch v2 - #7 by davosian
There is no such value provided by the API. The battery state is only reported as as a string (high/low) or as an absolute value which we then only can interpolate from âeducated guessingâ (which was removed, because it was unreliable).
Hi, i donât have any valve which provides the Battery level sensor. How do i get them?
I only have one valve in each room. All on v85 and the Relais is on v222.
In the Last days i only got a Message from netatmo App That my battery died and heating started to fully Open the valve. I want to fix This so i can change batteried right before They die and Not After.