Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

add mqtt triggering and reporting - #19

Open
frankenbubble wants to merge 1 commit into
lanrat:mainfrom
frankenbubble:mqtt-controls
Open

add mqtt triggering and reporting#19
frankenbubble wants to merge 1 commit into
lanrat:mainfrom
frankenbubble:mqtt-controls

Conversation

@frankenbubble

Copy link
Copy Markdown

This update adds support to triggering updates via mqtt and receiving messages when complete.

you can publish a message to trigger an update of a single image, just publish the image number to homeassistant/screenshot/update. Send a screen number of 0 (zero) to trigger all images to be updated

when an image is completed being written, a message will be published on homeassistant/screenshot/updated with the image number and timestamp

This means you can use events to update images, instead of (or with) cron. My use case is openHASP and it will time out receiving and image before it's created, so I was using cron. This way when I need to update an image on openHASP I trigger the update in hass-screenshot, and when the message is received it's complete, then trigger openHASP to update the image.

you can publish as message to trigger and update of an image, publish the image number to homeassistant/screenshot/update , send a screen number of 0 (zero) to trigger all

when it's completed writing the image it will respond on homeassistant/screenshot/updated with the image number and timestamp
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants