mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-29 00:36:11 +02:00
add homeassistant examples
This commit is contained in:
parent
6dd4bfe50f
commit
03893e52ba
3 changed files with 36 additions and 0 deletions
9
tools/homeassistant/README.md
Normal file
9
tools/homeassistant/README.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# HomeAssistant Examples
|
||||||
|
|
||||||
|
Disclaimer: these are collected examples from https://www.mikrocontroller.net/topic/525778 (Page 12)
|
||||||
|
|
||||||
|
in manual.yaml you will find the setup for manual configuration, adapt your name (Terrasse) and the topic (inverter) to your needs and place it into configuration.yaml
|
||||||
|
|
||||||
|
in autodiscovery.yaml you will find the setup for automatic discovery of the inverter
|
||||||
|
|
||||||
|
Note: the config might need adaption to your system (mqtt, homeassistant etc)
|
4
tools/homeassistant/autodiscovery.yaml
Normal file
4
tools/homeassistant/autodiscovery.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
mqtt:
|
||||||
|
broker: http://<IP des Brokers>
|
||||||
|
discovery: true
|
||||||
|
discovery_prefix: inverter
|
23
tools/homeassistant/manual.yaml
Normal file
23
tools/homeassistant/manual.yaml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
sensor:
|
||||||
|
- platform: mqtt
|
||||||
|
state_topic: "inverter/Terrasse/ch0/P_AC"
|
||||||
|
name: "Aktuelle Produktion HM-600"
|
||||||
|
device_class: energy
|
||||||
|
unit_of_measurement: "Watt"
|
||||||
|
value_template: >
|
||||||
|
{{value|round(2)}}
|
||||||
|
state_class: total_increasing
|
||||||
|
unique_id: "current_hm600"
|
||||||
|
last_reset_topic: "inverter/Terrasse/ch0/P_AC"
|
||||||
|
last_reset_value_template: "1970-01-01T00:00:00+00:00"
|
||||||
|
- platform: mqtt
|
||||||
|
state_topic: "inverter/Terrasse/ch0/YieldTotal"
|
||||||
|
name: "Gesamtproduktion HM-600"
|
||||||
|
device_class: energy
|
||||||
|
unit_of_measurement: "KW/H"
|
||||||
|
value_template: >
|
||||||
|
{{value|round(2)}}
|
||||||
|
state_class: total_increasing
|
||||||
|
unique_id: "total_hm600"
|
||||||
|
last_reset_topic: "inverter/Terrasse/ch0/YieldTotal"
|
||||||
|
last_reset_value_template: "1970-01-01T00:00:00+00:00"
|
Loading…
Add table
Add a link
Reference in a new issue