hass-sidecar icon indicating copy to clipboard operation
hass-sidecar copied to clipboard

how to set a state

Open Mugga6315 opened this issue 3 years ago • 0 comments

First of all thank you very much for the repo. I struggle quite hard to write more complex automations within yaml, and doing this in typescript is really great.

Right now I wan't to write an automation to save the state of a light enitity and later on restore that state. I can get the state with getState() but I can't find whats the correspondig method for setting a state.

Could someone give me a hint?

Mugga6315 avatar Nov 13 '23 15:11 Mugga6315