Republish via MQTT "Domoticz/OUT" to "Domoticz/OUT/idx

Moderator: leecollings

Post Reply
nahoj
Posts: 3
Joined: Saturday 24 September 2016 19:30
Target OS: Windows
Domoticz version:
Contact:

Republish via MQTT "Domoticz/OUT" to "Domoticz/OUT/idx

Post by nahoj »

Is it possible to republish via a mqtt message Domoticz/out {body with idx} to Domoticz/out/idx
Where the idx is the device number in domoticz

I will neeed this to select the right device message in "homepoint"
In the programm "homepoint" the only way to select a specific device is by selecting "gettopic(domoticz/out/idx) as far as I know.
But domoticz only publishes topc as domoticz/out, in the body or message following is the according data like dx number, valueus etc
Bikey
Posts: 331
Joined: Sunday 22 February 2015 12:19
Target OS: Linux
Domoticz version: 2020.x
Location: Netherlands
Contact:

Re: Republish via MQTT "Domoticz/OUT" to "Domoticz/OUT/idx

Post by Bikey »

Sure, just read the information with the MQTT Client Gateway at the "Publish Topic" setting.

If you set this at "Index" it will publish on Domotiz/out/idx
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Republish via MQTT "Domoticz/OUT" to "Domoticz/OUT/idx

Post by waltervl »

Bikey wrote: Wednesday 17 February 2021 16:49 Sure, just read the information with the MQTT Client Gateway at the "Publish Topic" setting.

If you set this at "Index" it will publish on Domotiz/out/idx
Just a side note: this index feature (and name feature) is available on beta version only. Not on stable 2020.2.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest