Search found 6 matches

by philipp
25 Jun 2022, 11:40
Forum: ESP Easy: General Discussion
Topic: Rule advice: Trigger GPIO based on MQTT value
Replies: 12
Views: 3454

Re: Rule advice: Trigger GPIO based on MQTT value

Aaaaah, I figured it out. :-)

I hadn't ticked the Generate events for accepted topics box. With that setting turned on, everything is working as expected. Thank you so much for your help and the awesome project!
by philipp
25 Jun 2022, 11:37
Forum: ESP Easy: General Discussion
Topic: Rule advice: Trigger GPIO based on MQTT value
Replies: 12
Views: 3454

Re: Rule advice: Trigger GPIO based on MQTT value

I just tried GPIO-21 and GPIO-26, same problem.
Could it be something in the GPIO's device settings? Any box I need to tick? (c.f. screenshot from my first post)
by philipp
25 Jun 2022, 11:01
Forum: ESP Easy: General Discussion
Topic: Rule advice: Trigger GPIO based on MQTT value
Replies: 12
Views: 3454

Re: Rule advice: Trigger GPIO based on MQTT value

Well it should not change, as it is only setting it to '1' Thats what you initially did, but if you want to set it via MQTT, then you can simply change the rules to this: On MQTT_sprinkler_1#valve01 do logentry,"MQTT import valve01: %eventvalue1%" GPIO,17,%eventvalue1% endon Tried this ru...
by philipp
24 Jun 2022, 15:48
Forum: ESP Easy: General Discussion
Topic: Rule advice: Trigger GPIO based on MQTT value
Replies: 12
Views: 3454

Re: Rule advice: Trigger GPIO based on MQTT value

If you only want to control the GPIO via rules, you don't need to add the switch plugin. I think it may even be causing issues if you do. Next, please try to debug the rules using the logentry command. On MQTT_sprinkler_1#valve01 do logentry,"MQTT import valve01: %eventvalue1%" if %eventv...
by philipp
24 Jun 2022, 13:59
Forum: ESP Easy: General Discussion
Topic: Rule advice: Trigger GPIO based on MQTT value
Replies: 12
Views: 3454

Re: Rule advice: Trigger GPIO based on MQTT value

Are you sure? They load fine from different devices here. Anyway, here's the direct link to the screenshots: https://imgur.com/a/9G689IJ
by philipp
24 Jun 2022, 13:49
Forum: ESP Easy: General Discussion
Topic: Rule advice: Trigger GPIO based on MQTT value
Replies: 12
Views: 3454

Rule advice: Trigger GPIO based on MQTT value

Hi, I have created a MQTT Import that looks like this: https://i.imgur.com/GHQTtD3.png And I also have a Switch that is configured like this: https://i.imgur.com/DYof9L8.png I know want to set the state of GPIO 17 to HIGH if the value of my MQTT topic is 1. For that I created the following rule: On ...