scripts.yaml, zigbee2mqtt/state.json
This commit is contained in:
1 parent
e6b1b4fac8
commit
e94b3714bd
2 files changed
+18
-20
No files matched your search
+3
-5
@@ -262,11 +262,9 @@ spoolman_set_spool_remaining:
|
|||||||
sequence:
|
sequence:
|
||||||
- variables:
|
- variables:
|
||||||
resolved_id: '{% set n = (slot | int(0)) if slot is defined else 0 %}{% if n
|
resolved_id: '{% set n = (slot | int(0)) if slot is defined else 0 %}{% if n
|
||||||
>= 1 %}{% set color = states(''sensor.sparkx_i7_cfs_box_1_slot_'' ~ (n | int)
|
>= 1 %}{% set ns = namespace(id='''') %}{% for e in integration_entities(''spoolman'')
|
||||||
~ ''_color'') | replace(''#'', '''') | lower %}{% set ns = namespace(id='''')
|
%}{% if e.endswith(''_color_hex'') and (state_attr(e[:-10], ''location'') |
|
||||||
%}{% for e in integration_entities(''spoolman'') %}{% if e.endswith(''_color_hex'')
|
default('''', true) | lower) == (''cfs lite '' ~ (n | int)) and ns.id ==
|
||||||
and (states(e) | replace(''#'', '''') | lower) == color and (state_attr(e[:-10],
|
|
||||||
''location'') | default('''', true) | lower) == ''cfs lite'' and ns.id ==
|
|
||||||
'''' %}{% set ns.id = states(e[:-10] ~ ''_id'') %}{% endif %}{% endfor %}{{
|
'''' %}{% set ns.id = states(e[:-10] ~ ''_id'') %}{% endif %}{% endfor %}{{
|
||||||
ns.id }}{% else %}{{ (spool_id | int(0)) if spool_id is defined else 0 }}{%
|
ns.id }}{% else %}{{ (spool_id | int(0)) if spool_id is defined else 0 }}{%
|
||||||
endif %}'
|
endif %}'
|
||||||
|
|||||||
+15
-15
@@ -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": 120,
|
"voltage": 119.8,
|
||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"power_factor": 0.14,
|
"power_factor": 0.14,
|
||||||
@@ -27,8 +27,8 @@
|
|||||||
"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": 2,
|
"power": 2.3,
|
||||||
"current": 0.09,
|
"current": 0.1,
|
||||||
"energy": 57.08,
|
"energy": 57.08,
|
||||||
"power_factor": 0.17,
|
"power_factor": 0.17,
|
||||||
"update": {
|
"update": {
|
||||||
@@ -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.2,
|
"voltage": 119.1,
|
||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"energy": 109.5,
|
"energy": 109.51,
|
||||||
"power_factor": 0.17,
|
"power_factor": 0.91,
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
@@ -58,8 +58,8 @@
|
|||||||
"latest_release_notes": null
|
"latest_release_notes": null
|
||||||
},
|
},
|
||||||
"linkquality": 145,
|
"linkquality": 145,
|
||||||
"power": 0.2,
|
"power": 85.1,
|
||||||
"current": 0.01,
|
"current": 0.8,
|
||||||
"power_on_behavior": "on"
|
"power_on_behavior": "on"
|
||||||
},
|
},
|
||||||
"0xb40e060fffe031e3": {
|
"0xb40e060fffe031e3": {
|
||||||
@@ -96,10 +96,10 @@
|
|||||||
"countdown_to_turn_off": 0,
|
"countdown_to_turn_off": 0,
|
||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"voltage": 119.2,
|
"voltage": 119.2,
|
||||||
"energy": 104.12,
|
"energy": 104.13,
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
"power": 56.2,
|
"power": 60.8,
|
||||||
"current": 0.7,
|
"current": 0.61,
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"power_factor": 0.8,
|
"power_factor": 0.8,
|
||||||
"update": {
|
"update": {
|
||||||
@@ -114,12 +114,12 @@
|
|||||||
},
|
},
|
||||||
"0xffffb40e060895b3": {
|
"0xffffb40e060895b3": {
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
"voltage": 119.3,
|
"voltage": 119.8,
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"energy": 15.31,
|
"energy": 15.31,
|
||||||
"current": 0.01,
|
"current": 0.01,
|
||||||
"power": 0.1,
|
"power": 0.1,
|
||||||
"power_factor": 0.11,
|
"power_factor": 0.22,
|
||||||
"linkquality": 116,
|
"linkquality": 116,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
@@ -136,14 +136,14 @@
|
|||||||
"0xffffb40e0608864e": {
|
"0xffffb40e0608864e": {
|
||||||
"led_brightness": 100,
|
"led_brightness": 100,
|
||||||
"countdown_to_turn_off": 0,
|
"countdown_to_turn_off": 0,
|
||||||
"voltage": 119.8,
|
"voltage": 120.3,
|
||||||
"energy": 37.39,
|
"energy": 37.39,
|
||||||
"countdown_to_turn_on": 0,
|
"countdown_to_turn_on": 0,
|
||||||
"state": "ON",
|
"state": "ON",
|
||||||
"current": 0.02,
|
"current": 0.02,
|
||||||
"ac_frequency": 60,
|
"ac_frequency": 60,
|
||||||
"power": 0.3,
|
"power": 0.3,
|
||||||
"power_factor": 0.14,
|
"power_factor": 0.2,
|
||||||
"update": {
|
"update": {
|
||||||
"state": "idle",
|
"state": "idle",
|
||||||
"installed_version": 268513381,
|
"installed_version": 268513381,
|
||||||
|
|||||||
Reference in new issue
Block a user