We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a toggle switch triple horizontal at position 7 as a group by sending the following to /nspanel/cmd/nspsend:
/nspanel/cmd/nspsend
{ "HMI_resources": [ { "index": 7, "ctype": "group", "id": "7", "uiid": 3 } ] }
I've also set all the other widgets in the correct order from 1 to 8 (so the message for 7 was the 2nd to last message).
It correctly shows up on the NSPanel and when I touch "OUTLET 3", it turns on and the following message is received on /nspanel/RESULT:
/nspanel/RESULT
{ "NSPanel": { "ctype": "group", "id": "7", "params": { "switches": [ { "switch": "off", "outlet": 0 }, { "switch": "on", "outlet": 1 }, { "switch": "off", "outlet": 2 } ] } } }
After a couple of seconds, the "OUTLET 3" is turned off on the screen.
I now want to manipulate the status of "OUTLET 3" through an MQTT message. I'm sending the following to /nspanel/cmd/nspsend:
{ "relation": { "ctype": "group", "id": "7", "params": { "switches": [ { "switch": "off", "outlet": 0 }, { "switch": "off", "outlet": 1 }, { "switch": "on", "outlet": 2 } ] } } }
I get the following back on /nspanel/RESULT:
{ "NSPSend":"Done" }
However the status of "OUTLET 3" on the screen is still "off". What do I need to change here to get it working?
The text was updated successfully, but these errors were encountered:
I have same issue, change this:
static types = { '"switches":[{"outlet":': 0x87, "relation": 0x86, "ATC": 0x84, "index": 0x86, "params": 0x86, "wifiState": 0x85, "HMI_resources":0x86, "temp": 0x83, "year": 0x82, "weather": 0x81, "queryInfo": 0x80, "HMI_dimOpen": 0x87, "HMI_wallpaper":0x87, }
to this:
static types = { '"relation":': 0x86, '"switches":[{': 0x87, "ATC": 0x84, "index": 0x86, "params": 0x86, "wifiState": 0x85, "HMI_resources":0x86, "temp": 0x83, "year": 0x82, "weather": 0x81, "queryInfo": 0x80, "HMI_dimOpen": 0x87, "HMI_wallpaper":0x87, }
in nspanel.be
Sorry, something went wrong.
No branches or pull requests
I have a toggle switch triple horizontal at position 7 as a group by sending the following to
/nspanel/cmd/nspsend
:I've also set all the other widgets in the correct order from 1 to 8 (so the message for 7 was the 2nd to last message).
It correctly shows up on the NSPanel and when I touch "OUTLET 3", it turns on and the following message is received on
/nspanel/RESULT
:After a couple of seconds, the "OUTLET 3" is turned off on the screen.
I now want to manipulate the status of "OUTLET 3" through an MQTT message.
I'm sending the following to
/nspanel/cmd/nspsend
:I get the following back on
/nspanel/RESULT
:However the status of "OUTLET 3" on the screen is still "off".
What do I need to change here to get it working?
The text was updated successfully, but these errors were encountered: