I am trying to create a template binary sensor to use as a motion sensor from an external motion flood light that I monitor its power consumption. Currently I have:
platform: template
sensors:
east_motion_light_status:
friendly_name: "East Motion Light Status"
device_class: power
value_template: "{{ states('sensor.lc03b4_power')|float > 2.0 }}"
It returns unavailable. The light shows as drawing 30 watts when triggered. Any help would be appreciated. Thanks.