Skip to content

MQTT Metrics/control #28

Description

@BasementCat

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status
In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions