Replies: 4 comments 11 replies
-
I'm going to move this to a discussion. I agree that it's probably what we should do, but there are a bunch of considerations to deliberate first. |
Beta Was this translation helpful? Give feedback.
-
I was originally working on #647 when this idea was brought up. I also looked into MQTT in the web UI to handle toggling switches as well. I think it would really simplify how much needs to be done for the web UI, as well as some issues to the Python application. In Python, I've got this working, but it ends up pretty hacky, needing to send the MQTT as a JavaScript package itself would incur a 50% increase in dependencies that the browser needs to load. It's not HUGE right now, but it's not nothing, and it's a bit of a nuisance |
Beta Was this translation helpful? Give feedback.
-
I think the right path here is to use regular websockets and relay messages to mqtt. Ingress will proxy websockets too. |
Beta Was this translation helpful? Give feedback.
-
The MQTT relay is now built and able to be used. It is only implemented in the web UI for toggles (snapshots, clips, detect) and updating the debug page. Happy to review PRs for other implementations. |
Beta Was this translation helpful? Give feedback.
-
Hi,
this will be mostly for @paularmstrong and just an idea for the future.
I was thinking since we now have nice Web UI and a lot of people don't use it with HA or other system it would be great to have some kind of real-time dashboard with current events, possibly even notifications (just in-page with sound perhaps, not HTML5 as it would require external access and HTTPS) and it could grab the events using JS MQTT websocket client, without any additional work on the backend. This would make this project completely standalone for people who don't use or need any other system to connect this with.
Beta Was this translation helpful? Give feedback.
All reactions