Refactor metrics to be sent via MQTT, and send some control data via MQTT. ESPHome doesn't appear to let you arbitrarily insert data (ex. from sensors) into URLs, nor does it let you extract data from HTTP headers to pass around to components (currently how the next refresh time is handled).
- Create a table to store metrics
- Set up an MQTT broker in the provided compose file
- Create a background task that handles receiving messages from the broker for the screens, and updates/prunes metrics
- Provide examples of configuring screens to send metrics via mqtt (prior to loading the image to display)
- Look into viability of updating deep sleep timeout from MQTT, and preventing deep sleep when a certain message is received on wakeup (to remain connected to wifi for OTA updates)
** This would imply the firmware should check MQTT after wifi connection
Refactor metrics to be sent via MQTT, and send some control data via MQTT. ESPHome doesn't appear to let you arbitrarily insert data (ex. from sensors) into URLs, nor does it let you extract data from HTTP headers to pass around to components (currently how the next refresh time is handled).
** This would imply the firmware should check MQTT after wifi connection