I am trying to clear an input_number data field in a dashboard so I don’t have to delete the previous value to enter a new one.
The only way I was able to do it is to set back the state to “null”.
It does work perfectly in the dev tools “set state” (was previously set to “0”):
But unfortunately, a script or automation won’t accept anything else than a float.
(below returns "expected float for dictionary value @ data[‘value’] " )
service: input_number.set_value
target:
entity_id: input_number.winamp_playlist_play
data:
value: "null"
Since I have confirmation that the system can do it, is there a way to emulate the devtools, “force” a “null” value as a state, or revert the input_number to it’s “initial” value (which is also “null”).
Thank you!
1 post - 1 participant