Advertisement
LeventeDaradici

How do we make an entity in Home Assistant from two other entities?

Mar 16th, 2024 (edited)
1,607
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.32 KB | None | 0 0
  1. // https://youtu.be/QheN8Jz8vTY
  2. //
  3. sensor:
  4.   - platform: template
  5.     sensors:
  6.       difference_power_entities:
  7.         friendly_name: "Consum Casă"
  8.         unit_of_measurement: "W"
  9.         value_template: "{{ (states('sensor.inverter_active_power') | float - states('sensor.power_meter_active_power') | float) | abs }}"
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement