The idea is to set the Forced Switch On Brigthness based on a helper input number. But can’t find any solution to reach this -looking simple- implementation
What I’m trying to do is simple; I would like to have a numeric input (or slider) on my dashboard named ‘settings’ where I can set default switch-on values. Doing this, I can reset the default switch-on values at midnight. But remember the light-intensity if it is changed during the day.
I try to run this script (setting a zwave parameter) with a actual helper value, triggered on a certain condition.
The condition in the automation works, but the action doesnt. The action works if I replace the reference to the helper value with a constant. E.g. 18.
There is a door which blinds shall be closed after a delay (usually 1 min, is a timer helper). The delay is to give someone time to get in after the signal came that the blinds will close (other blinds closing probably will suffice). The position depends on the purpose. If the blinds shall close for the night, the position will be 0. If the blinds close for glare shield, the position will be 15. So the position will be defined by a helper. But I don’t get the right syntax to use the helper for the position.
If I enter position: 10 everything works fine, but as soon as I try to evaluate the helper, it gives Message malformed: value must be one of ['close', 'close_tilt', 'open', 'open_tilt', 'stop'] for dictionary value @ data['type']
Which is the right syntax for this purpose, so that the value of that helper is being used for the position?
Edit: Found it. Still don’t understand why set_position is invalid when using a variable but valid when using a number, but calling the
service: cover.set_cover_position does help using a variable for the purpose.