Hi Community,
I'm new to ESPEasy and evaluate if it might be the right platform for me.
Is it possible to subscribe to an MQTT topic located on ioBroker and switch output values depending on the value?
Use case: I want to switch an electromagnetic relay depending on the on/off value of the MQTT-topic. Ideally I'd like to control more than one output this way.
Is it possible?
Thank you
Evaluation: MQTT triggers Outputs
Moderators: grovkillen, Stuntteam, TD-er
Re: Evaluation: MQTT triggers Outputs
OK, thank you. I'll give it a shot.
Re: Evaluation: MQTT triggers Outputs
Again, Thank you. It works even easier using the HomeAssistent (openHAB) MQTT Controller to directly address GPIO Pins, as documented https://espeasy.readthedocs.io/en/lates ... #c005-page.
To do so, I had to configure the parameter "controller subscribe" with the value "%sysname%/Pumpe/GPIO/4". Setting the value of %sysname%/Pumpe/GPIO/4 on the message broker to 1 or 0 sets the GPIO4 accordingly.
To do so, I had to configure the parameter "controller subscribe" with the value "%sysname%/Pumpe/GPIO/4". Setting the value of %sysname%/Pumpe/GPIO/4 on the message broker to 1 or 0 sets the GPIO4 accordingly.
Re: Evaluation: MQTT triggers Outputs
You can also give direct commands via MQTT as described in the docs for C005 you linked.
For example to trigger an event in the rules with some eventvalue(s) and act on them via the rules.
This way you can define a complete sequence of actions to be performed via a single message.
Like starting a timer to later turn off something.
Or send out a number of pulses using the longpulse command (see also the longpulse_ms for times in msec)
For example to trigger an event in the rules with some eventvalue(s) and act on them via the rules.
This way you can define a complete sequence of actions to be performed via a single message.
Like starting a timer to later turn off something.
Or send out a number of pulses using the longpulse command (see also the longpulse_ms for times in msec)
Who is online
Users browsing this forum: Bing [Bot] and 4 guests