I can set the position of a blind with the standaard automation configuration. Then I have this YAML:
alias: Aansturing klep vloerverwarming woonkamer
description: “”
trigger:
- platform: state
entity_id:- sensor.buitentemperatuur_2
- platform: state
entity_id:- sensor.gemetentemp
condition:
action:
- sensor.gemetentemp
- device_id: 39926e5297676209a5065c79e6bead89
domain: cover
entity_id: 43747f9bd37705e8fd0baa03a02b82b0
type: set_position
position: 31
mode: single
I can set the postion between 0 and 100 and that works fine.
I only want to set the position of the blinds via en template value, but when I put an template after postition like:
position: '“{{states(‘sensor.buitentemperatuur’) | float }}”
I get the following error:
Message malformed: value must be one of [‘close’, ‘close_tilt’, ‘open’, ‘open_tilt’, ‘stop’] for dictionary value @ data[‘type’]
Can anyone teell me what I am doing wrong.