Hi, i have installed the HA companion app to my android phone and i saw there a sensor.battery_level entity which can display the battery level and the flag whether the phone is charging under the attributes. I would like to use my Google Home to inform me when my phone is fully charged with an automation.
I’m planning to use the battery level (higher than 99%) as the trigger condition and also is_charging attribute from the sensor.battery_level as the condition to fire the tts to my Google Home.
May i know how do i extract is_charging attribute and use in the automation?
As the value is already true/false, the automation will trigger when the value is becoming true… If this is not what you are looking for, you effectively need to test if your attribute is equal to false to trigger…
I didn’t even know that those sensors existed (along with the sensor.wifi_connection).
Who decided to make those sensor names so generic? You would think they would at least have the base name of the device tracker entity in them somewhere.