good evening. I have my vera gateway integrated with HA and I have a fibaro wall plug that I would like to create an entity where the watts would appear. currently only with you. spin an entity where the icon appears to turn it on and off, and to see the watts I have to go to the device options. how can I create an entity where the watts appear directly?
Create a template sensor to extract the watts from the switch.
Something like:
sensor:
- platform: template
sensors:
watt_from_plug:
friendly_name: "Watt from Plug"
unit_of_measurement: "W"
value_template: "{{ state_attr('switch.your_switch', 'energy') }}"
Where you replace switch.your_switch
with the entity_id of your plug and energy
,with the name of the attribute that contains the watts.
Thanks a lot for the help