Skip to content

Commit

Permalink
add inverter to ha energy
Browse files Browse the repository at this point in the history
  • Loading branch information
groupsky committed Oct 15, 2023
1 parent 14c2bac commit 6c6da30
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/home-assistant/configuration/mqtt/sensors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,11 @@
state_topic: "/modbus/secondary/microwave/reading"
value_template: "{{ value_json.tot | float(default=0) }}"
<<: *common_used_energy

- name: inverter_sun2000_accumulated_yield
state_topic: "/modbus/inverter/sun2000/reading"
value_template: "{{ value_json.total_p | float(default=0) }}"
<<: &common_used_energy
device_class: energy
state_class: total
unit_of_measurement: kWh
12 changes: 12 additions & 0 deletions config/home-assistant/energy.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@
}
],
"cost_adjustment_day": 0.0
},
{
"type": "solar",
"flow_from": [
{
"stat_energy_from": "sensor.inverter_sun2000_accumulated_yield",
"stat_cost": null,
"entity_energy_from": "sensor.inverter_sun2000_accumulated_yield",
"entity_energy_price": null,
"number_energy_price": null
}
]
}
],
"device_consumption": [
Expand Down

0 comments on commit 6c6da30

Please sign in to comment.