Hello there,
What I am trying to achieve: I have a blitzwolf shp13 zigbee plug, which has 3 different entities. One is for on/off, other is for total consumption in kWh, last one is current consumption (Watts). I need it to send me notification if it drops below 2W, indicating that the device I was charging is fully charged. I am trying to create a sensor that check if its below 2W (that being the TRUE state) or if not below 2W (FALSE state).
The sensor I created appears fine and I get no errors in config, but it always stays at TRUE, no matter if it is at 0 watts or 100 watts or anywhere in between. What am I doing wrong? Code and picture of device sensor and my created sensor below.
- platform: template
sensors:
charging_done:
friendly_name: 'Charging done'
entity_id:
- sensor.charging_station_wattage
value_template: "{{ states('charging_station_wattage') | float < 2 }}"
If 0 watts
If anything more than 2 watts