Added UPS monioring entities and dashboard
This commit is contained in:
@@ -1 +1 @@
|
|||||||
2025.12.2
|
2025.12.4
|
||||||
@@ -1 +1 @@
|
|||||||
{"pid": 68, "version": 1, "ha_version": "2025.12.2", "start_ts": 1765482884.5000265}
|
{"pid": 67, "version": 1, "ha_version": "2025.12.4", "start_ts": 1766360674.64677}
|
||||||
174
mqtt.yaml
174
mqtt.yaml
@@ -1,5 +1,17 @@
|
|||||||
---
|
---
|
||||||
- sensor:
|
- sensor:
|
||||||
|
# DO NOT REMOVE: Essential for ZIGBEE2MQTT
|
||||||
|
- 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 }}"
|
||||||
|
|
||||||
|
# HP / Solaredge / ACS published values
|
||||||
- name: HP_power
|
- name: HP_power
|
||||||
unit_of_measurement: "W"
|
unit_of_measurement: "W"
|
||||||
unique_id: mon_hp_pw
|
unique_id: mon_hp_pw
|
||||||
@@ -71,12 +83,158 @@
|
|||||||
state_topic: etcontroller/sw/answers
|
state_topic: etcontroller/sw/answers
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{{ value_json['values'].level }}
|
{{ value_json['values'].level }}
|
||||||
- name: Zigbee2mqtt Networkmap
|
|
||||||
unique_id: zigbee2mqtt_bridge_network_map
|
# UPS vmonitoring entiities from upsmon running on
|
||||||
# if you change base_topic of Zigbee2mqtt, change state_topic accordingly
|
# popeye for UPS TERRA
|
||||||
state_topic: zigbee2mqtt/bridge/response/networkmap
|
# seneca for UPS TITAN
|
||||||
|
# tazmania for UPS TAZMANIA
|
||||||
|
# UPS Battery Volts
|
||||||
|
- name: ups_terra_status
|
||||||
|
unique_id: sensor.ups_terra_status
|
||||||
|
state_topic: monitoring/ups/status
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{{ now().strftime('%Y-%m-%d %H:%M:%S') }}
|
{% if value_json[1].upsname == 'TERRA' %}
|
||||||
# again, if you change base_topic of Zigbee2mqtt, change json_attributes_topic accordingly
|
{{ value_json[0].status }}
|
||||||
json_attributes_topic: zigbee2mqtt/bridge/response/networkmap
|
{% else %}
|
||||||
json_attributes_template: "{{ value_json.data.value | tojson }}"
|
{{ states('sensor.ups_terra_status') }}
|
||||||
|
{% endif %}
|
||||||
|
- name: ups_tazmania_status
|
||||||
|
unique_id: sensor.ups_tazmania_status
|
||||||
|
state_topic: monitoring/ups/status
|
||||||
|
value_template: >-
|
||||||
|
{% if value_json[1].upsname == 'TAZMANIA' %}
|
||||||
|
{{ value_json[0].status }}
|
||||||
|
{% else %}
|
||||||
|
{{ states('sensor.ups_tazmania_status') }}
|
||||||
|
{% endif %}
|
||||||
|
- name: ups_titan_status
|
||||||
|
unique_id: sensor.ups_titan_status
|
||||||
|
state_topic: monitoring/ups/status
|
||||||
|
value_template: >-
|
||||||
|
{% if value_json[1].upsname == 'TITAN' %}
|
||||||
|
{{ value_json[0].status }}
|
||||||
|
{% else %}
|
||||||
|
{{ states('sensor.ups_titan_status') }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
# UPS Battery Charge
|
||||||
|
- name: ups_terra_charge
|
||||||
|
unique_id: sensor.ups_terra_charge
|
||||||
|
state_topic: monitoring/ups/status
|
||||||
|
value_template: >-
|
||||||
|
{% if value_json[1].upsname == 'TERRA' %}
|
||||||
|
{{ value_json[0].bcharge | int }}
|
||||||
|
{% else %}
|
||||||
|
{{ states('sensor.ups_terra_charge') | int }}
|
||||||
|
{% endif %}
|
||||||
|
- name: ups_tazmania_charge
|
||||||
|
unique_id: sensor.ups_tazmania_charge
|
||||||
|
state_topic: monitoring/ups/status
|
||||||
|
value_template: >-
|
||||||
|
{% if value_json[1].upsname == 'TAZMANIA' %}
|
||||||
|
{{ value_json[0].bcharge | int }}
|
||||||
|
{% else %}
|
||||||
|
{{ states('sensor.ups_tazmania_charge') | int }}
|
||||||
|
{% endif %}
|
||||||
|
- name: ups_titan_charge
|
||||||
|
unique_id: sensor.ups_titan_charge
|
||||||
|
state_topic: monitoring/ups/status
|
||||||
|
value_template: >-
|
||||||
|
{% if value_json[1].upsname == 'TITAN' %}
|
||||||
|
{{ value_json[0].bcharge | int }}
|
||||||
|
{% else %}
|
||||||
|
{{ states('sensor.ups_titan_charge') | int }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
# UPS Time left before Exhaustion
|
||||||
|
- name: ups_terra_timeleft
|
||||||
|
unique_id: sensor.ups_terra_timeleft
|
||||||
|
state_topic: monitoring/ups/status
|
||||||
|
unit_of_measurement: "Min."
|
||||||
|
value_template: >-
|
||||||
|
{% if value_json[1].upsname == 'TERRA' %}
|
||||||
|
{{ (value_json[0].timeleft | int) }}
|
||||||
|
{% else %}
|
||||||
|
{{ states('sensor.ups_terra_timeleft') }}
|
||||||
|
{% endif %}
|
||||||
|
- name: ups_tazmania_timeleft
|
||||||
|
unique_id: sensor.ups_tazmania_timeleft
|
||||||
|
state_topic: monitoring/ups/status
|
||||||
|
unit_of_measurement: "Min."
|
||||||
|
value_template: >-
|
||||||
|
{% if value_json[1].upsname == 'TAZMANIA' %}
|
||||||
|
{{ value_json[0].timeleft | int }}
|
||||||
|
{% else %}
|
||||||
|
{{ states('sensor.ups_tazmania_timeleft') }}
|
||||||
|
{% endif %}
|
||||||
|
- name: ups_titan_timeleft
|
||||||
|
unique_id: sensor.ups_titan_timeleft
|
||||||
|
state_topic: monitoring/ups/status
|
||||||
|
unit_of_measurement: "Min."
|
||||||
|
value_template: >-
|
||||||
|
{% if value_json[1].upsname == 'TITAN' %}
|
||||||
|
{{ value_json[0].timeleft | int }}
|
||||||
|
{% else %}
|
||||||
|
{{ states('sensor.ups_titan_timeleft') }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
# UPS Battery Volts
|
||||||
|
- name: ups_terra_battv
|
||||||
|
unique_id: sensor.ups_terra_battv
|
||||||
|
state_topic: monitoring/ups/status
|
||||||
|
unit_of_measurement: "V"
|
||||||
|
value_template: >-
|
||||||
|
{% if value_json[1].upsname == 'TERRA' %}
|
||||||
|
{{ value_json[0].battv | float }}
|
||||||
|
{% else %}
|
||||||
|
{{ states('sensor.ups_terra_battv') }}
|
||||||
|
{% endif %}
|
||||||
|
- name: ups_tazmania_battv
|
||||||
|
unique_id: sensor.ups_tazmania_battv
|
||||||
|
state_topic: monitoring/ups/status
|
||||||
|
unit_of_measurement: "V"
|
||||||
|
value_template: >-
|
||||||
|
{% if value_json[1].upsname == 'TAZMANIA' %}
|
||||||
|
{{ value_json[0].battv | float }}
|
||||||
|
{% else %}
|
||||||
|
{{ states('sensor.ups_tazmania_battv') }}
|
||||||
|
{% endif %}
|
||||||
|
- name: ups_titan_battv
|
||||||
|
unique_id: sensor.ups_titan_battv
|
||||||
|
state_topic: monitoring/ups/status
|
||||||
|
unit_of_measurement: "V"
|
||||||
|
value_template: >-
|
||||||
|
{% if value_json[1].upsname == 'TITAN' %}
|
||||||
|
{{ value_json[0].battv | float }}
|
||||||
|
{% else %}
|
||||||
|
{{ states('sensor.ups_titan_battv') }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
# UPS load percentage
|
||||||
|
- name: ups_terra_loadpct
|
||||||
|
unique_id: sensor.ups_terra_loadpct
|
||||||
|
state_topic: monitoring/ups/status
|
||||||
|
value_template: >-
|
||||||
|
{% if value_json[1].upsname == 'TERRA' %}
|
||||||
|
{{ value_json[0].loadpct | int }}
|
||||||
|
{% else %}
|
||||||
|
{{ states('sensor.ups_terra_loadpct') }}
|
||||||
|
{% endif %}
|
||||||
|
- name: ups_tazmania_loadpct
|
||||||
|
unique_id: sensor.ups_tazmania_loadpct
|
||||||
|
state_topic: monitoring/ups/status
|
||||||
|
value_template: >-
|
||||||
|
{% if value_json[1].upsname == 'TAZMANIA' %}
|
||||||
|
{{ value_json[0].loadpct | int }}
|
||||||
|
{% else %}
|
||||||
|
{{ states('sensor.ups_tazmania_loadpct') }}
|
||||||
|
{% endif %}
|
||||||
|
- name: ups_titan_loadpct
|
||||||
|
unique_id: sensor.ups_titan_loadpct
|
||||||
|
state_topic: monitoring/ups/status
|
||||||
|
value_template: >-
|
||||||
|
{% if value_json[1].upsname == 'TITAN' %}
|
||||||
|
{{ value_json[0].loadpct | int }}
|
||||||
|
{% else %}
|
||||||
|
{{ states('sensor.ups_titan_loadpct') }}
|
||||||
|
{% endif %}
|
||||||
|
|||||||
32
scenes.yaml
32
scenes.yaml
@@ -0,0 +1,32 @@
|
|||||||
|
- id: '1765640519696'
|
||||||
|
name: Luminarie
|
||||||
|
entities:
|
||||||
|
light.presa_smart_1:
|
||||||
|
supported_color_modes:
|
||||||
|
- onoff
|
||||||
|
color_mode: onoff
|
||||||
|
friendly_name: Presa-Smart-1
|
||||||
|
supported_features: 0
|
||||||
|
state: 'on'
|
||||||
|
light.presa_smart_2:
|
||||||
|
supported_color_modes:
|
||||||
|
- onoff
|
||||||
|
color_mode: onoff
|
||||||
|
friendly_name: Presa-Smart-2
|
||||||
|
supported_features: 0
|
||||||
|
state: 'on'
|
||||||
|
light.presa_smart_11:
|
||||||
|
supported_color_modes:
|
||||||
|
- onoff
|
||||||
|
color_mode: onoff
|
||||||
|
friendly_name: Presa-Smart-11
|
||||||
|
supported_features: 0
|
||||||
|
state: 'on'
|
||||||
|
icon: mdi:ceiling-fan-light
|
||||||
|
metadata:
|
||||||
|
light.presa_smart_1:
|
||||||
|
entity_only: true
|
||||||
|
light.presa_smart_2:
|
||||||
|
entity_only: true
|
||||||
|
light.presa_smart_11:
|
||||||
|
entity_only: true
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
|
# IMPORTANT NOTE: all sensors here having templates have been migrated/fixed to HERE from other as per Deprecation of platform: Template
|
||||||
|
|
||||||
# Storage for Bubble Card Modules
|
# Storage for Bubble Card Modules
|
||||||
- trigger:
|
- trigger:
|
||||||
- trigger: event
|
- trigger: event
|
||||||
|
|||||||
Reference in New Issue
Block a user