Skip to content

Enable support for tags in LNM Call #212

Description

@tscofield

Is your feature request related to a problem? Please describe.
I'm updating the n-way dimmer switch script to leverage the new LNM functionality to remove latency and complexity in the initial configuration of a switch. I would like to group the switches together based on a tag in the message, but the current LNM Call doesn't seem to send tags through, but the tag value is display as Null
{"id":0,"source":"LNM_in","tag":null,"output":false,"brightness":55}
With the tag functionality in place, I could embed the dimmer group name into the user configurable device name, allowing for a no-code editing solution for setting up a dimmer group

Describe the solution you'd like
A command like the following would result in a tag being sent along with the message. That tag could be used by the receiving node to determine if it should take action.

Shelly.call("LNM.Call", { id: LNM_ID, method: "Light.Set", params: { id: 0, on: false, tag: "group-groupname" } });

Describe alternatives you've considered
The info.device field could be leveraged for this if it was the user set device name, but it seems to be the factory set device id.

Additional context
Current code being tested
https://github.com/tscofield/shelly-script-examples/blob/nwaydimmerlnm/switch-input/n-way-dimmer-lnm.shelly.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions