You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this response@dlashua mentioned creating configuration.yaml code:
Have your pyscript code actually create configuration.yaml for these groups and then call the reload service after an update. If you go this route, you probably want to split the pyscript generated groups into their own config file and add the proper YAML in configuration.yaml to read from that file so you don't have to deal with overwriting manually defined groups and config. You also need to make sure you don't call reload until all group changes are made. Which means you'll need one pyscript to handle all the groups, or you'll have to get really clever with how you link it all together.
Is it possible that someone could share code on how to do this? I am working on a project that requires the user to set up custom template sensor devices for use with the project. I am trying to find an easy way for the user to create these versus manually creating each entry. This would save both them and me headache as I am aiming to make this available to even folks on the entry level of Home Assistant.
These devices are really just data stores of information that are used in the project for each Assist satellite to determine its output parts, modes, controls and data to present to the user when needed.
Any advice or help in generating the YAML necessary would be a plus. Thanks
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In this response @dlashua mentioned creating configuration.yaml code:
Is it possible that someone could share code on how to do this? I am working on a project that requires the user to set up custom template sensor devices for use with the project. I am trying to find an easy way for the user to create these versus manually creating each entry. This would save both them and me headache as I am aiming to make this available to even folks on the entry level of Home Assistant.
An example of what this device config looks like:
These would need user input but the rest are just placeholders:
These devices are really just data stores of information that are used in the project for each Assist satellite to determine its output parts, modes, controls and data to present to the user when needed.
Any advice or help in generating the YAML necessary would be a plus. Thanks
Beta Was this translation helpful? Give feedback.
All reactions