Skip to content

Feature Request: Declare new restorable state from pyscript #47

Closed
@swazrgb

Description

@swazrgb

It is currently possible to declare new state from pyscript very easily like some_domain.abc = 'def', even if some_domain or some_domain.abc does not yet exist.

This is very helpful for scripts that want to define their own state. However these states are not automatically persisted when home assistant restarts. A workaround is for the user to manually precreate a input_text.abc helper then manipulating that from pyscript.

However this is rather inconvenient because for every state variable the user has to perform some manual tasks.

So it would be nice if it was somehow possible to define restorable states from pyscript.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions