Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mqtt-widget-commands #12

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

R1N4x
Copy link
Contributor

@R1N4x R1N4x commented Jan 7, 2022

After some helpful chatting on the Tasmota Discord I finally got this to work like I wanted:

To draw widgets:

NSPSetWidget {"type":"","name":"","position":,"always_online":}

"type":%s typelist
"name":%s max 8 char
"position":%d 1-8
"always_online":%b bool (optional, will be set false)

Types:

single horizontal
double horizontal
triple horizontal
quad horizontal
single vertical
dual vertical
triple vertical
quad vertical
rgb strip
cct bulb
rgb+cct bulb
scene

To delete:

NSPSetWidget {"delete":}

"delete":%d 1-8

Examples:

NSPSetWidget {"type":"scene","name":"Scene 1","position":3}
NSPSetWidget {"type":"rgb strip","name":"Strip 1","position":5,"always_online":true}
NSPSetWidget {"delete":3}

Set the strip to "ON":

WIDGET {"relation":{'id': '5', 'params': {'switch': 'on'}}}

@blakadder
Copy link
Owner

you have removed the ability to set widgets in the driver code and now it is required to use a command which is impractical

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants