This should be relatively simple and could find a lot of utility while creating automations. Right now we end up creating helper variables and that becomes a mess…instead if any device/entity can have key/value pairs get/set able…that’ll make things cleaner and a lot more capable.
Example - if my device was automatically turned on by motion - i can set a flag for that device and auto turn off on no motion. But if it was turned on manually - then i leave it on without turning it off!
It’ll be great if we can add a ttl to the key/value pairs as well