Skip to content

pyscript DOMAIN vs sensor/input_boolean/eg #334

Answered by dlashua
beiarn asked this question in Q&A
Discussion options

You must be logged in to vote

If you had used some other domain your data may have been lost anyway as Home Assistant doesn't restore state by default on most of its entities. Persistent entity data is useful for storing computed information -- is a room occupied? when was the last time I pulled my bank balance? how many people are in my home at the moment?. All of these things are either information that is temporary, non-critical, or reproduceable. If you're storing any other kind of data In Home Assistant state (pyscript or otherwise), I'd advise that you also store that data somewhere else. Use the entities for convenience, but have the official store of the data for catastrophes.

input_text, specifically, is rest…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@beiarn
Comment options

Comment options

You must be logged in to vote
1 reply
@beiarn
Comment options

Answer selected by beiarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants