Hello,
Thanks to Ath, I know how to set up my relays in ESPEASY to work with DOMOTICZ MQTT (this thread viewtopic.php?t=10372
Now, I have 2 questions :
1) do I need a DOMOTICZ MQTT HELPER for each relay ? Or maybe there is a trick to sort the devices or the GPIO to use only 1 DOMOTICZ MQTT HELPER ?
I am trying to ask because I see Actuator > 1st GPIO in the settings of Domoticz MQTT Helper. So I imagine maybe we could set up the 1st GPIO and the following GPIOs will work in the same way ?
Something like GPIO 15 => idx 280
then GPIO 16 => idx 281
GPIO 17 => idx 282
...
If not, that means we have to set up 2 lines for each relay, 1 "Switch input - switch" for the relay, 1 "Domoticz MQTT helper" for the MQTT part. But in this case, I have a second question :
2) there are 32 lines in the devices tab. Is it possible to add some lines ? Because 2 lines per relay means 52 lines if we use all the GPIO with relays (and if we could use all the GPIO for that use)
Thanks for your answer !
[SOLVED] Do I need DOMOTICZ MQTT HELPER for each relay ?
Moderators: grovkillen, Stuntteam, TD-er
[SOLVED] Do I need DOMOTICZ MQTT HELPER for each relay ?
Last edited by rw11lkx82 on 05 Aug 2024, 18:00, edited 1 time in total.
Using Domoticz for many years with Arduino boards, using MySensors and IP.
Trying to improve with ESP boards, ESPEASY and MQTT.
Trying to improve with ESP boards, ESPEASY and MQTT.
Re: Do I need DOMOTICZ MQTT HELPER for each relay ?
Extending the number of tasks may cause all kinds of issues.
At least it will be a non-standard build and the settings will not be compatible with builds with less tasks.
Also I doubt you will have this many free GPIO pins to control so many relais.
I think you may want to take a different approach when using so many relais.
Maybe this could use MQTT import and try to filter out the appropriate IDX value.
Then act on it via rules.
When using rules, you can also control relais connected to GPIO-expanders or shift registers and you no longer need a task per relay.
At least it will be a non-standard build and the settings will not be compatible with builds with less tasks.
Also I doubt you will have this many free GPIO pins to control so many relais.
I think you may want to take a different approach when using so many relais.
Maybe this could use MQTT import and try to filter out the appropriate IDX value.
Then act on it via rules.
When using rules, you can also control relais connected to GPIO-expanders or shift registers and you no longer need a task per relay.
Re: Do I need DOMOTICZ MQTT HELPER for each relay ?
OK. Thanks for your answer.
The first part of your message seems clear for me :
- I need to use 2 task lines per relay (1 for relay, 2nd for Domoticz MQTT Helper)
- Limit is 32 task lines
I continue playing with my ESP32 and many GPIO are indeed "blocked". So i will surely have enough with 32 task lines. And add an other ESP32 if needed.
The second part of your message is less clear for me :
- MQTT import : do you have any examples or tutorials you could share ?
- I never use any GPIO expander. Same question : do you have any example or tutorials ?
Many thanks for your fast answer !
The first part of your message seems clear for me :
- I need to use 2 task lines per relay (1 for relay, 2nd for Domoticz MQTT Helper)
- Limit is 32 task lines
I continue playing with my ESP32 and many GPIO are indeed "blocked". So i will surely have enough with 32 task lines. And add an other ESP32 if needed.
The second part of your message is less clear for me :
- MQTT import : do you have any examples or tutorials you could share ?
- I never use any GPIO expander. Same question : do you have any example or tutorials ?
Many thanks for your fast answer !
Using Domoticz for many years with Arduino boards, using MySensors and IP.
Trying to improve with ESP boards, ESPEASY and MQTT.
Trying to improve with ESP boards, ESPEASY and MQTT.
Re: Do I need DOMOTICZ MQTT HELPER for each relay ?
For MQTT Import plugin we have P037, with documentation
For GPIO and port expanders, there is a lot of documentation in P000, that is about the generic GPIO handling of ESPEasy.
For Rules you can read 'a bit' in the Rules documentation
For GPIO and port expanders, there is a lot of documentation in P000, that is about the generic GPIO handling of ESPEasy.
For Rules you can read 'a bit' in the Rules documentation

/Ton (PayPal.me)
Re: Do I need DOMOTICZ MQTT HELPER for each relay ?
Thanks ! both



Using Domoticz for many years with Arduino boards, using MySensors and IP.
Trying to improve with ESP boards, ESPEASY and MQTT.
Trying to improve with ESP boards, ESPEASY and MQTT.
Who is online
Users browsing this forum: Bing [Bot] and 15 guests