automations.yaml, zigbee2mqtt/state.json

This commit is contained in:
Home Assistant Version Control committed 2026-10-15 12:49:47 +00:00
1 parent 597166a690
commit e6b1b4fac8
2 files changed
+19 -19

No files matched your search

+5 -5
View File
@@ -4426,11 +4426,11 @@
'', ''_'')) ~ ''_color'') | replace(''#'', '''') | lower }}' '', ''_'')) ~ ''_color'') | replace(''#'', '''') | lower }}'
- variables: - variables:
spool_id: '{% set ns = namespace(id='''') %}{% for e in integration_entities(''spoolman'') spool_id: '{% set ns = namespace(id='''') %}{% for e in integration_entities(''spoolman'')
%}{% if e.endswith(''_color_hex'') and (states(e) | replace(''#'', '''') | %}{% if e.endswith(''_color_hex'') and (state_attr(e[:-10], ''location'') |
lower) == color and (state_attr(e[:-10], ''location'') | default('''', true) default('''', true) | lower) == (''cfs lite '' ~ old_slot.split(''_'')[-1])
| lower) == ''cfs lite'' %}{% set b = e[:-10] %}{% if (states(b) | float(0)) %}{% set b = e[:-10] %}{% if (states(b) | float(0)) > 0 and ns.id == ''''
> 0 and ns.id == '''' %}{% set ns.id = states(b ~ ''_id'') %}{% endif %}{% %}{% set ns.id = states(b ~ ''_id'') %}{% endif %}{% endif %}{% endfor %}{{
endif %}{% endfor %}{{ ns.id }}' ns.id }}'
- variables: - variables:
helper_idx: '{{ old_slot.split(''_'')[-1] if old_slot.split(''_'')[-1] in [''1'', helper_idx: '{{ old_slot.split(''_'')[-1] if old_slot.split(''_'')[-1] in [''1'',
''2'', ''3'', ''4''] else '''' }}' ''2'', ''3'', ''4''] else '''' }}'
+14 -14
View File
@@ -4,7 +4,7 @@
"state": "ON", "state": "ON",
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"voltage": 119.5, "voltage": 120,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"ac_frequency": 60, "ac_frequency": 60,
"power_factor": 0.14, "power_factor": 0.14,
@@ -22,15 +22,15 @@
}, },
"0xffffb40e0607af27": { "0xffffb40e0607af27": {
"state": "ON", "state": "ON",
"voltage": 118.8, "voltage": 119.3,
"ac_frequency": 60, "ac_frequency": 60,
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"power": 3.9, "power": 2,
"current": 0.11, "current": 0.09,
"energy": 57.08, "energy": 57.08,
"power_factor": 0.3, "power_factor": 0.17,
"update": { "update": {
"state": "idle", "state": "idle",
"installed_version": 268513381, "installed_version": 268513381,
@@ -45,10 +45,10 @@
"state": "ON", "state": "ON",
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"voltage": 119.3, "voltage": 119.2,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"energy": 109.5, "energy": 109.5,
"power_factor": 0.2, "power_factor": 0.17,
"ac_frequency": 60, "ac_frequency": 60,
"update": { "update": {
"state": "idle", "state": "idle",
@@ -74,13 +74,13 @@
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"voltage": 118.4, "voltage": 118.8,
"state": "ON", "state": "ON",
"ac_frequency": 60, "ac_frequency": 60,
"energy": 222.51, "energy": 222.51,
"power": 3.6, "power": 3.6,
"current": 0.05, "current": 0.05,
"power_factor": 0.95, "power_factor": 0.34,
"update": { "update": {
"state": "idle", "state": "idle",
"installed_version": 268513381, "installed_version": 268513381,
@@ -95,13 +95,13 @@
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"voltage": 119.3, "voltage": 119.2,
"energy": 104.12, "energy": 104.12,
"state": "ON", "state": "ON",
"power": 67, "power": 56.2,
"current": 0.67, "current": 0.7,
"ac_frequency": 60, "ac_frequency": 60,
"power_factor": 0.77, "power_factor": 0.8,
"update": { "update": {
"state": "idle", "state": "idle",
"installed_version": 268513381, "installed_version": 268513381,
@@ -114,7 +114,7 @@
}, },
"0xffffb40e060895b3": { "0xffffb40e060895b3": {
"state": "ON", "state": "ON",
"voltage": 118.8, "voltage": 119.3,
"ac_frequency": 60, "ac_frequency": 60,
"energy": 15.31, "energy": 15.31,
"current": 0.01, "current": 0.01,