zwave-js / node-red-contrib-zwave-js

The most powerful, high performing and highly polished Z-Wave node for Node-RED based on Z-Wave JS. If you want a fully featured Z-Wave framework in your Node-RED instance, you have found it.
MIT License
47 stars 6 forks source link

Associations editor displays [OBJECT] [OBJECT] #245

Closed lurendrejer closed 2 years ago

lurendrejer commented 2 years ago

How can we help?

When adding associations i cannot select anything.

The popup just displays: [OBJECT] [OBJECT] - and if I click 'Add' it creates an association to node1 endpoint 1.

image

Version

Latest

Node-RED Version

3.0.1

What hardware are you using?

No response

Any code to add?

No response

crxporter commented 2 years ago

May be related to #240

lurendrejer commented 2 years ago

@crxporter - ah, neat.

Can I do something to get 8.0.0? I deleted an association (which worked absolutely fine 👍) and would like to recreate it.

crxporter commented 2 years ago

8.0.0 isn't out yet - @marcus-j-davies is still working on it. Also it's still pending the final zwave js 10.0 release (which is currently beta).

I also don't know if he's fixed the [object Object]thing in this particular situation. Let's see what he says in a couple hours once he's done with work today...

marcus-j-davies commented 2 years ago

Hi @lurendrejer

This is fixed for 8.0.0, but if you want early access.

cd ~/.node-red
npm install node-red-contrib-zwave-js@beta

or to recreate the association without the BETA

// omit endpoint, if it doesn't apply or is not needed
// Setting association  groups for node 34
const Source = {nodeId:34}
const Targets = [{nodeId:35}]
const Group = 2

let Message = {
    payload: {
        mode: "AssociationsAPI",
        method: "addAssociations",
        params: [Source, Group, Targets]
    }
}
return Message

See https://github.com/zwave-js/node-red-contrib-zwave-js/wiki/Associations-API

marcus-j-davies commented 2 years ago

And its due to this https://github.com/zwave-js/node-red-contrib-zwave-js/issues/231 closed as duplicate

lurendrejer commented 2 years ago

superb! Thank you!