glance icon indicating copy to clipboard operation
glance copied to clipboard

[FEATURE REQUEST] MQTT Support

Open stonkage opened this issue 1 year ago • 6 comments

Hi - i love Glance!

Having the ability to add MQTT topics that i can "glance" at quickly.

I can get this info via other sources, but having the ability on my start page (which glance is) would be amazing

stonkage avatar Nov 25 '24 23:11 stonkage

Hey, thanks for the suggestion!

I don't know pretty much anything about MQTT and also don't own any IoT devices so I'm not really the right person to add this feature for the time being. This is a good opportunity for someone else to build an extension for Glance that does this.

Alternatively, if you're a developer and are comfortable building an API that exposes the information you'd like to see via JSON, there will be a custom API widget added in v0.7.0 that would allow you to easily add that information to Glance.

Other than that, the only other option for now is to include the other sources you mentioned as an iframe widget.

svilenmarkov avatar Nov 30 '24 14:11 svilenmarkov

Hey! I might be up for adding this (I have a couple smart plugs), however the issue is that MQTT devices only send data to a singular address (say, Home Assistant), there may need to be either

  1. Something for Home Assistant which exposes a JSON API
  2. Something that sits inbetween Home Assistant and the MQTT device, and then reports back to Glance.

Just figured I'd add to this.

EranStockdale avatar Nov 30 '24 23:11 EranStockdale

Hey @EranStockdale, thanks for offering help! I think taking the data directly from Home Assistant would be ideal since that's what most use and it wouldn't require people to change their existing setups by introducing a proxy.

svilenmarkov avatar Dec 04 '24 09:12 svilenmarkov

@svilenmarkov Actually, now that I think about it, Tasmota (commonly used on smart home devices) actually has it's own JSON API so that could be used instead to show the current status of devices. Shall I make it in a PR or as a custom integration/plugin (can't remember what they're called right now)?

EranStockdale avatar Dec 04 '24 09:12 EranStockdale

Home Assistant Integration would be awesome. Like show the state of sensors, values such as temperatures etc. Even better if we could add interactive buttons.

SgtJalau avatar Jan 06 '25 13:01 SgtJalau

Small update to this one, I am currently iframing a home assistant dashboard themed to glance

https://github.com/stonkage/fantastic-broccoli/blob/main/Glance%2FREADME.md

stonkage avatar Apr 28 '25 21:04 stonkage