Would appreciate assistance with working out how to extract an attribute from a Smart Power Plug and show its value as a card (or simular).
About: I have many Tuya Smart Plugs which includes power info but by default the info only shows as a “Attribute” to the Switch (On/Off).
Example Only: Playing around and In Developer/Template below shows the correct result i.e. 46w.
binary_sensor:
- platform: template
sensors:
tuya-sw01_current_consumption:
value_template: >-
{{ states. switch.kogan_smart_plug_06.attributes.current_consumption }}
unit_of_measurement: ‘W’
Question: How do I show the result in the Frontend as a card or the likes. I have 10 devices to do.
Thanks in advance.