Page 1 of 1

P029 MQTT helper works when disabled

Posted: 16 Jan 2018, 21:35
by wim16
Today I was surprised to discover that a P029 device switches it's gpio even when not enabled.
I checked the C002 plugin (which contains the P029 functionality) and it does not observe the enabled flag.
Is this a bug or as designed? If it is by design I think the enabled flag would best be removed from the settings webpage.

Re: P029 MQTT helper works when disabled

Posted: 16 Jan 2018, 21:44
by vader
Don't worry, it's just one of the many bugs.... :lol: Can you compile your own version? Then I can give you the solution....

Re: P029 MQTT helper works when disabled

Posted: 16 Jan 2018, 22:11
by wim16
Not yet, but I am going to try so I can learn more about espeasy.
It is not a bug that bothers me very much but my first idea would be to add it to C002.ino, is that the correct place?

Re: P029 MQTT helper works when disabled

Posted: 16 Jan 2018, 22:23
by vader
Removing it from the settings webpage is no good idea. The solution is in fact in _C002. The first riddle you solved! ;)

Re: P029 MQTT helper works when disabled

Posted: 17 Jan 2018, 00:12
by TD-er
vader wrote: 16 Jan 2018, 22:23 Removing it from the settings webpage is no good idea. The solution is in fact in _C002. The first riddle you solved! ;)
Perhaps something worth a new issue on the githubs?

Re: P029 MQTT helper works when disabled

Posted: 17 Jan 2018, 09:01
by vader
I have no account on github. Maybe there is already an issue opened there.... :?:

Re: P029 MQTT helper works when disabled

Posted: 17 Jan 2018, 10:48
by wim16
I've just added an issue. Thanks for your help.