-
I created a new entity from within my script:
I see it correctly in HA (with the correct value) but cannot edit it from within there because it has no unique ID: (this entity has no unique ID and therefore its parameters cannot be set from the interface ...) Is there a way I can set this unique ID when creating the entity? (probably by first checking for its state and if this throws an exception - set it) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is a way to do this, however, it is not something PyScript handles for you. Therefore, you will need to consult the HomeAssistant developer documentation and do it in the same way the you would if you were writing a Home Assistant Integration. For this type of control, it will likely be easier for you to write an Integration than it will be for you to do it through PyScript. |
Beta Was this translation helpful? Give feedback.
There is a way to do this, however, it is not something PyScript handles for you. Therefore, you will need to consult the HomeAssistant developer documentation and do it in the same way the you would if you were writing a Home Assistant Integration.
For this type of control, it will likely be easier for you to write an Integration than it will be for you to do it through PyScript.