diff --git a/configuration.yaml b/configuration.yaml index d29a4ca..f72eef1 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -29,17 +29,49 @@ logger: # influxdb: !include influxdb_feed.yaml -# Zigbee Network Map +# Zigbee Network Map not Working +# mqtt: +# sensor: +# - name: Zigbee2mqtt Networkmap +# # 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 }}" mqtt: - sensor: - - name: Zigbee2mqtt Networkmap - # 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 }}" + - sensor: + - name: HP_power + unit_of_measurement: "W" + unique_id: mon_hp_pw + state_topic: monitoring/et/values + value_template: >- + {{ value.split(',')[1] | int }} + - name: HP_max_power + unit_of_measurement: "W" + unique_id: mon_hp_max_pw + state_topic: monitoring/et/values + value_template: >- + {{ value.split(',')[0] | int }} + - name: ACS_temp + unit_of_measurement: "'C" + unique_id: mon_acs_temp + state_topic: monitoring/et/values + value_template: >- + {{ (value.split(',')[3] | int) / 10 }} + - name: Heating_temp + unit_of_measurement: "'C" + unique_id: mon_heating_temp + state_topic: monitoring/et/values + value_template: >- + {{ (value.split(',')[8] | int) / 10 }} + - name: Solar_temp + unit_of_measurement: "'C" + unique_id: mon_solar_temp + state_topic: monitoring/et/values + value_template: >- + {{ (value.split(',')[7] | int) / 10 }} # add additional cards lovelace: diff --git a/sensors.yaml b/sensors.yaml index 0efe138..3bcc840 100644 --- a/sensors.yaml +++ b/sensors.yaml @@ -12,3 +12,10 @@ off {% endif %} icon_template: mdi:motion-sensor +# - platform: mqtt +# sensors: +# etvalues: +# unique_id: monitoring_et_values +# friendly_name: Values from ETcontroller +# value_template: >- +# {{ states('sensor.mon_et_value') }}