I’m not talking about OTA updates, so when I talk about uploading, that’s not what I mean. I also am working on making this system work separately from HA, although it will be able to be integrated with HA eventually.
The bigger picture is that I’m working on a device that would be an LCD display that will go outside my workshop. I want it to show different displays depending on what what equipment is on. For instance, “Wear safety goggles. Laser is on,” or, “Do not disturb until light goes off,” or, “CNC active, enter with caution.” I don’t know how many messages or conditions I want it to check, but each condition will have an accompanying message. For instance:
Type________Entity__State_Message
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Binary_Sensor Switch1 true CNC active, enter with caution
Binary_Sensor Switch3 true Use safety goggles. Laser is on
Binary_Sensor Switch4 true Do not enter until light is off
I might also include something with each message to define the font color and background color. Also, I’m thinking, in the long run, a display like this might be useful for displaying other information, so I might add a field for each message that would include the URL to get the status of an entity, as well. I haven’t used Java in a long time, but I can think of this list as something like a Vector, where I can add more items as needed.
I’m having trouble imagining how to do this in YAML for ESPHome. I’m wondering if I could have a configuration in a file that I could somehow, whenever I modify it, upload it to my ESPHome device. Is there a way to upload a file like this so ESPHome can take it, store it, and parse it when needed? I’m having trouble understanding how a structure like this could be handled in YAML, especially if it would be expandable, to add more messages accompanying more devices over time.
Is there some way I can either upload a file with info like this in it, or some way I can do this in ESPHome, with a YAML file?