Home assistant

Post any 3rd party software here.
Post Reply
richardl008
Posts: 2
Joined: Mon May 31, 2021 7:02 am

Home assistant

Post by richardl008 » Mon May 31, 2021 7:09 am

I have my GEM reporting to my home assistant. I was wondering if there is a way to either show a group, or to add sensors together to report in HA? I have 4 main panels and want to just show total consumption.
nbsvirginia
Posts: 59
Joined: Sat Dec 08, 2012 3:53 pm

Re: Home assistant

Post by nbsvirginia » Tue Jun 08, 2021 9:57 am

You could create a template and add the values. This would show up as a new sensor.

- platform: template
sensors:
power_main_consumption:
friendly_name: "Main Power Consumption"
#entity_id: sensor.gem_total_power
unit_of_measurement: 'kWh'
icon_template: 'mdi:transmission-tower'
value_template: "{{((state_attr('sensor.gem_total_power','watt_seconds') + (state_attr('sensor.gem_total_power_2','watt_seconds')) | int / 3600000) | round(1)}}"
richardl008
Posts: 2
Joined: Mon May 31, 2021 7:02 am

Re: Home assistant

Post by richardl008 » Thu Jun 10, 2021 6:49 am

Thank you for helping me. I get an error

greeneye_monitor:
port: 8003
monitors:
- serial_number: #########
channels:
- number: 1
name: A
- number: 2
name: B
- number: 3
name: C
- number: 4
name: D


- platform: template
sensors:
power_main_consumption:
friendly_name: "Main Power Consumption"
#entity_id: sensor.gem_total_power
unit_of_measurement: 'kWh'
icon_template: 'mdi:transmission-tower'
value_template: "{{((state_attr('sensor.total_power','watt_seconds') + (state_attr('sensor.b','watt_seconds')) | int / 3600000) | round(1)}}"



Error handling request
7:47:56 – (ERROR) components/hassio/__init__.py - message first occurred at 7:45:07 and shows up 3 times
The system cannot restart because the configuration is not valid: Component error: unit_of_measurement - Integration 'unit_of_measurement' not found. Component error: sensors - Integration 'sensors' not found. Component error: value_template - Integration 'value_template' not found. Component error: power_main_consumption - Integration 'power_main_consumption' not found. Component error: platform - Integration 'platform' not found. Component error: icon_template - Integration 'icon_template' not found. Component error: friendly_name - Integration 'friendly_name' not found.
7:47:56 – (ERROR) Home Assistant Supervisor - message first occurred at 7:45:07 and shows up 3 times
while parsing a block mapping in "/config/configuration.yaml", line 3, column 1 expected <block end>, but found '-' in "/config/configuration.yaml", line 64, column 1
7:47:56 – (ERROR) util/yaml/loader.py
ben
Site Admin
Posts: 4262
Joined: Fri Jun 04, 2010 9:39 am

Re: Home assistant

Post by ben » Thu Jun 10, 2021 9:42 am

It might be worth giving this video a watch as templating seems like a pretty powerful feature of Home-Assistant if you want to manipulate your incoming data.

Ben
Brultech Research Inc.
E: ben(at)brultech.com
Post Reply