added Automation for aligning mode from ETcontroller to HA GUI. Used Publish on etcontroller/sw/answer by ETcontroller.py about current hp_force mode
This commit is contained in:
82
mqtt.yaml
Normal file
82
mqtt.yaml
Normal file
@@ -0,0 +1,82 @@
|
||||
---
|
||||
- sensor:
|
||||
- name: HP_power
|
||||
unit_of_measurement: "W"
|
||||
unique_id: mon_hp_pw
|
||||
state_topic: monitoring/hw/heatpump
|
||||
value_template: >-
|
||||
{{ value_json.power | int }}
|
||||
- name: HP_max_power
|
||||
unit_of_measurement: "W"
|
||||
unique_id: mon_hp_max_pw
|
||||
state_topic: monitoring/hw/heatpump
|
||||
value_template: >-
|
||||
{{ value_json.hp_max_power | int }}
|
||||
- name: ACS_temp
|
||||
unit_of_measurement: "'C"
|
||||
unique_id: mon_acs_temp
|
||||
state_topic: monitoring/hw/temperatures
|
||||
value_template: >-
|
||||
{{ value_json.acs | int }}
|
||||
- name: Heating_temp
|
||||
unit_of_measurement: "'C"
|
||||
unique_id: mon_heating_temp
|
||||
state_topic: monitoring/hw/temperatures
|
||||
value_template: >-
|
||||
{{ value_json.heating | int }}
|
||||
- name: Solar_temp
|
||||
unit_of_measurement: "'C"
|
||||
unique_id: mon_solar_temp
|
||||
state_topic: monitoring/hw/temperatures
|
||||
value_template: >-
|
||||
{{ value_json.solar | int }}
|
||||
- name: SE_AC_voltage
|
||||
unit_of_measurement: "V"
|
||||
unique_id: mon_se_ac_voltage
|
||||
state_topic: monitoring/se/values
|
||||
value_template: >-
|
||||
{{ (value_json.ac_v | int) / 100 }}
|
||||
- name: SE_AC_current
|
||||
unit_of_measurement: "A"
|
||||
unique_id: mon_se_ac_current
|
||||
state_topic: monitoring/se/values
|
||||
value_template: >-
|
||||
{{ (value_json.ac_i | int) / 100 }}
|
||||
- name: SE_DC_voltage
|
||||
unit_of_measurement: "V"
|
||||
unique_id: mon_se_dc_voltage
|
||||
state_topic: monitoring/se/values
|
||||
value_template: >-
|
||||
{{ (value_json.dc_v | int) / 100 }}
|
||||
- name: SE_DC_current
|
||||
unit_of_measurement: "A"
|
||||
unique_id: mon_se_dc_current
|
||||
state_topic: monitoring/se/values
|
||||
value_template: >-
|
||||
{{ (value_json.dc_i | int) / 100 }}
|
||||
- name: SE_Heatsink_temp
|
||||
unit_of_measurement: "'C"
|
||||
unique_id: mon_se_ht_temperature
|
||||
state_topic: monitoring/se/values
|
||||
value_template: >-
|
||||
{{ (value_json.hs_t | int) / 100 }}
|
||||
- name: SE_Total_power
|
||||
unit_of_measurement: "MW"
|
||||
unique_id: mon_se_tot_p
|
||||
state_topic: monitoring/se/values
|
||||
value_template: >-
|
||||
{{ (value_json.w_tot | int) / 1000000 }}
|
||||
- name: fix_hp_level_read
|
||||
unique_id: fix_hp_level_read
|
||||
state_topic: etcontroller/sw/answers
|
||||
value_template: >-
|
||||
{{ value_json['values'].level }}
|
||||
- name: Zigbee2mqtt Networkmap
|
||||
unique_id: zigbee2mqtt_bridge_network_map
|
||||
# if you change base_topic of Zigbee2mqtt, change state_topic accordingly
|
||||
state_topic: zigbee2mqtt/bridge/response/networkmap
|
||||
value_template: >-
|
||||
{{ now().strftime('%Y-%m-%d %H:%M:%S') }}
|
||||
# again, if you change base_topic of Zigbee2mqtt, change json_attributes_topic accordingly
|
||||
json_attributes_topic: zigbee2mqtt/bridge/response/networkmap
|
||||
json_attributes_template: "{{ value_json.data.value | tojson }}"
|
||||
Reference in New Issue
Block a user