I would like to record the current brightness of a light to a helper, and then reduce that number by some amount, and then set the lights to that level.
I am trying to run an action " Input number ‘Set’"
The YAML I have is
action: input_number.set_value
metadata: {}
data: {}
value: {{state_attr('light.living_room_ceiling_fan_light', 'brightness')}}
target:
entity_id: input_number.living_room_light_brightness
I get the error “required key not provided @ data[‘value’]. Got None”
I feel like it worked once, and I don’t know what I changed but it didn’t work again after I tried to go to the next step I had in mind.
1 post - 1 participant