MQTT and idx over 70

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
atatistcheff
Posts: 19
Joined: Sunday 19 June 2016 18:16
Target OS: Linux
Domoticz version: 3.8153
Contact:

MQTT and idx over 70

Post by atatistcheff »

I've been using Domoticz for a good 10 years and recently had a Raspberry Pi crap the bed. So I've reinstalled it and restored backup. That probably is not relevant to the issue but it explains why my idx numbers are so high. I started out with Zwave devices but as those switches failed one by one I moved to Sonoff switches running Tasmota. Much cheaper and last forever...

Anyway, I've run into an issue in setting up some switches. I use MQTT to send the message to my Tasmota switches. This works flawlessly until I hit IDX 71 (could have been idx 70 I'm not positive). I have found that any switch over idx 70 does not work properly with MQTT. The switch is not controlled by Domoticz at all. My only workaround at this point has been to find some unused switches I had setup previously on the switch page with a lower idx and re-purpose them. Unfortunately, any new switches I create are now automatically assigned an idx over 72.

I am using the latest Docker version of DZ 2025.2 build 16818.

Questions:
Is this a known issue?
Any workaround?
Any way to manually assign idx numbers to switches? I only have about 10 switches but because the installation is older I've created and deleted quite a few over the years.

Thanks!
User avatar
heggink
Posts: 994
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: MQTT and idx over 70

Post by heggink »

You mean using the original mqtt hardware sending messages to domoticz/in? I am pretty sure I do that with devices way above idx 70. Not on the latest beta myself but probably one or two months behind.
Docker in Truenas scale, close to latest beta
RFXCOM 433 and 868, zigbee2mqtt,
P1 meter & solar panel
atatistcheff
Posts: 19
Joined: Sunday 19 June 2016 18:16
Target OS: Linux
Domoticz version: 3.8153
Contact:

Re: MQTT and idx over 70

Post by atatistcheff »

I finally figured out the issue with my MQTT switches. Apparently there is a new screen (or I had long forgotten about it) for the MQTT server hardware entry that requires adding the switches to the "selected" column before they will generate MQTT messages. So chalk this one up to user error.
User avatar
waltervl
Posts: 7047
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: MQTT and idx over 70

Post by waltervl »

You fiddled with it in the past as default this filter list is empty and all devices will send MQTT data. It is implemented in 2024.1 But good you found the issue.

https://wiki.domoticz.com/MQTT#Filter_d ... _Topic_Out
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