[SOLVED] Do I need DOMOTICZ MQTT HELPER for each relay ?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
rw11lkx82
Normal user
Posts: 16
Joined: 04 Aug 2024, 13:01

[SOLVED] Do I need DOMOTICZ MQTT HELPER for each relay ?

#1 Post by rw11lkx82 » 05 Aug 2024, 14:57

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 !
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.

TD-er
Core team member
Posts: 9884
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Do I need DOMOTICZ MQTT HELPER for each relay ?

#2 Post by TD-er » 05 Aug 2024, 15:13

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.

rw11lkx82
Normal user
Posts: 16
Joined: 04 Aug 2024, 13:01

Re: Do I need DOMOTICZ MQTT HELPER for each relay ?

#3 Post by rw11lkx82 » 05 Aug 2024, 16:57

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 !
Using Domoticz for many years with Arduino boards, using MySensors and IP.
Trying to improve with ESP boards, ESPEASY and MQTT.

User avatar
Ath
Normal user
Posts: 4330
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Do I need DOMOTICZ MQTT HELPER for each relay ?

#4 Post by Ath » 05 Aug 2024, 17:05

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 ;)
/Ton (PayPal.me)

rw11lkx82
Normal user
Posts: 16
Joined: 04 Aug 2024, 13:01

Re: Do I need DOMOTICZ MQTT HELPER for each relay ?

#5 Post by rw11lkx82 » 05 Aug 2024, 18:00

Thanks ! both :) ;)
Using Domoticz for many years with Arduino boards, using MySensors and IP.
Trying to improve with ESP boards, ESPEASY and MQTT.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 15 guests