gugutab / TvOverlay

109 stars 3 forks source link

How to configure mqtt topics #32

Open twkwow opened 1 month ago

twkwow commented 1 month ago

i have the options to connect to the mqtt broker through the app, but then, i cant configure the subscribe and publish topics, how can i do so if i were to send certain payloads to a specific topic

gugutab commented 1 month ago

The MQTT feature cannot currently be configured in the manner you've described.

Instead, it synchronizes values on tv_overlay/{device-name-id}/ (as shown in the screenshot below) and on various Home Assistant topic platforms, such as homeassistant/switch, homeassistant/select, and homeassistant/number.

image

Could you please explain in more detail what you would like to configure and the use case for it?

Thanks!

twkwow commented 1 month ago

I was trying to remote control the tv overlay through the use of cloud mqtt broker, but could not find a way due to not being able to configure sub pub topics. It works in a local network environment when I http post directly to the ip address of my smart tv, but when I wish to http post my device from an external network, I could not find a way other than the use of Mqtt

twkwow commented 1 month ago

And to add on, my biggest concern is that does tv overlay can be controlled remotely? Because I wish to control it through a cloud hosted api but could not find a way to achieve so.

gugutab commented 1 month ago

Currently, TvOverlay does not have built-in support for external control. However, you can use Home Assistant via MQTT or HTTP, and possibly through a VPN. I will explore cloud MQTT brokers to see if I can implement this functionality. Thank you for the suggestion.