I'm trying to set a number by using the {{ trigger. entity_id }} and appears to not be working. thoughts?
- id: invalid_value_error_for_tuya_presence_sensor
alias: 'Invalid Value Error for Tuya Presence Sensors'
mode: restart
trigger:
- trigger: state
entity_id: number.0xa4c1384aa4fb469f_presence_sensitivity
to:
- '0'
- 'unknown'
- 'unavailable'
condition: []
actions:
- action: number.set_value
data:
value: "2"
target:
entity_id: "{{ trigger.entity_id }}"