Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95387

Add 2 or more sensors together giving 1 number

$
0
0

@xion2000 wrote:

I have 2 solar setups each giving production figures via sensors, can I combine 2 (or more) sensors together to create a completely new sensor giving the total solar of the 2 systems combined.

currentcost_garage_solar:
        entity_id: sensor.current_cost
        unit_of_measurement: 'W'
        value_template: '{{ state_attr("sensor.current_cost", "Appliance 1")[:-2]  }}'
        friendly_name: CurrentCost Garage Solar

currentcost_shed_solar:
        entity_id: sensor.current_cost
        unit_of_measurement: 'W'
        value_template: '{{ state_attr("sensor.current_cost", "Appliance 2")[:-2]  }}'
        friendly_name: CurrentCost Shed Solar

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95387

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>