For a “on/off” sensor this can be done with input_boolean by calling input_boolean (toggle, turn_on, turn_off)
For a “date and time” sensor this can be done with input_datetime by calling calling input input_datetime.set_datetime (date, time, datetime)
But what I no need is to set a sensor value (like temperature, cpu usage, drive space ect).
I found input_numbrer, but it looks like this is more a way to change value from GUI, and I can’t see that it is callable (may be because I have non?)
I also found Template Sensor, but for what I see that only support “sensors which get their values from other entities”, and that is not the case here.
You don’t explain what the value is, where you get it and what it’s used for.
Do you need a value that is read only or are you okay if your users change it themselves?
Okay, it’s not good practice, either for people helping you or (say) a newbie looking for a similar solution, to have to read other threads.
It not fully explained even on your other thread.
It seems that you want a diskspace sensor but not ‘live’ just updated… Once a day? Once a week?
And you need it to survive reboots
So, define (in this thread) what you want and how you expect it to behave.
That way anyone coming across this will have a clear understanding and can help you, at the moment we are thrashing around in the dark.
(Having seen the solutions and the quality of the people who have provided them)
Well, yeah, I want a sensor that just update when it got information. if it is remembering the state on reboot, or set a default value like “0” is not that important,