Hello everyone,
I would like to store the value of the status of the opening of a roller shutter in a helper. Unfortunately, this does not work with the following code. Do you have any idea what this could be? If I replace the value with a number, it will be written.
Thank you very much!
alias: Rollladen WZ rechts auto öffnen
description: wenn die Türe geöffnet wird, wird auch der Rollladen geöffnet
triggers:
- type: opened
device_id: ecc977f470d5e23ae8dd7d7b36d27656
entity_id: 3f06c32e0d5fd4ad28bb01dbfba2f07a
domain: binary_sensor
trigger: device
conditions: []
actions:
- device_id: 9d47bb3498bfbe57f25a0e4dbbc3e7c4
domain: cover
entity_id: bf7f375a7076bdec9ee6582d200cb120
type: open
- if:
- condition: device
device_id: 9d47bb3498bfbe57f25a0e4dbbc3e7c4
domain: cover
entity_id: bf7f375a7076bdec9ee6582d200cb120
type: is_position
below: 100
then:
- action: input_number.set_value
metadata: {}
data:
value: >-
{{ state_attr('cover.bf7f375a7076bdec9ee6582d200cb120',
'current_position') | int }}
target:
entity_id: input_number.helfer_rl_wz_rechts_int
mode: single