Skip to content
Discussion options

You must be logged in to vote

{"obj":"btn","id":186,"text":"toggle","toggle":true,"x":180,"y":80,"w":120,"h":60}

I tested this jsonl and for me it worked just fine:

The events are up and down with a val for the current state.

What version and board are you running?

Also make sure that the action property is not set on the toggle object, as that prevents the MQTT events from being sent. Click Clear Pages and then Reload Pages in the file editor or reboot the device to make sure.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@therionrg
Comment options

Answer selected by therionrg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants