.ha_mcp/logs/mcp_usage.jsonl, automations.yaml
This commit is contained in:
1 parent
e306c60ee0
commit
ba79e72d95
2 files changed
+6
-4
No files matched your search
+4
-4
@@ -4634,16 +4634,16 @@
|
||||
use_weight: '{{ grams | float(0) }}'
|
||||
- if:
|
||||
condition: template
|
||||
value_template: '{{ old_slot.split('' '')[-1] in [''1'', ''2'', ''3'',
|
||||
value_template: '{{ old_slot.split(''_'')[-1] in [''1'', ''2'', ''3'',
|
||||
''4''] }}'
|
||||
then:
|
||||
- action: input_number.set_value
|
||||
target:
|
||||
entity_id: input_number.sparkx_i7_slot_{{ old_slot.split(' ')[-1]
|
||||
entity_id: input_number.sparkx_i7_slot_{{ old_slot.split('_')[-1]
|
||||
}}_grams
|
||||
data:
|
||||
value: '{{ (states(''input_number.sparkx_i7_slot_'' ~ old_slot.split(''
|
||||
'')[-1] ~ ''_grams'') | float(0)) + (grams | float) }}'
|
||||
value: '{{ (states(''input_number.sparkx_i7_slot_'' ~ old_slot.split(''_'')[-1]
|
||||
~ ''_grams'') | float(0)) + (grams | float) }}'
|
||||
default:
|
||||
- action: notify.persistent_notification
|
||||
data:
|
||||
|
||||
Reference in new issue
Block a user