dhleong / wemore

A more awesome library for Belkin WeMo interactions
37 stars 11 forks source link

Creating 2 Devices under Same "Friendly Name" #11

Closed UberSlackr closed 6 years ago

UberSlackr commented 6 years ago

When Alexa is asked to "discover devices" she finds 2 new devices.. I currently only have 1 WeMor node setup, but Alexa is finding 2. They both appear under the same "Friendly Name." One is showing in Alexa as a "Wemo Plug" the other shows as "Wemo Switch."

I've tried deleting the node, and removing the devices from Alexa. Then adding a new wemore node. Same result. 2 Discovered devices, 1 friendly name, one Switch, the other Plug.

dhleong commented 6 years ago

What do you mean "wemore node"? Do you have any code to show what you're doing? If you're referring to the device emulation API, Wemore should just advertise whatever friendly name you specify.

UberSlackr commented 6 years ago

Yes the WeMo Emulator node in Node-Red.

What code would you like? Its a Node in a Node-Red flow.

[
    {
        "id": "bf47c683.556d18",
        "type": "wemo-emulator",
        "z": "954f11bb.0fa6f",
        "name": "WeMo Test",
        "friendlyName": "Wemo Test",
        "serial": "node-red-wemo1",
        "port": "2001",
        "onTopic": "msg",
        "onPayload": "on",
        "offTopic": "msg",
        "offPayload": "off",
        "x": 330,
        "y": 252,
        "wires": [
            []
        ]
    }
]

And in the Amazon Alexa app, under "Smart Home" it shows device "Wemo Test" (WeMo Switch) "WeMo Test" (WeMo Plug)

image

dhleong commented 6 years ago

Sorry, I have nothing to do with node-red. You'll have to report the issue with them.

On Tue, Nov 28, 2017, 5:52 PM UberSlackr notifications@github.com wrote:

Yes the WeMo Emulator node in Node-Red.

What code would you like? Its a Node in a Node-Red flow.

[ { "id": "bf47c683.556d18", "type": "wemo-emulator", "z": "954f11bb.0fa6f", "name": "WeMo Test", "friendlyName": "Wemo Test", "serial": "node-red-wemo1", "port": "2001", "onTopic": "msg", "onPayload": "on", "offTopic": "msg", "offPayload": "off", "x": 330, "y": 252, "wires": [ [] ] } ]

And in the Amazon Alexa app, under "Smart Home" it shows device "Wemo Test" (WeMo Switch) "WeMo Test" (WeMo Plug)

[image: image] https://user-images.githubusercontent.com/4933069/33348569-7edae510-d45c-11e7-85ca-899ce5a18010.png

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/dhleong/wemore/issues/11#issuecomment-347691194, or mute the thread https://github.com/notifications/unsubscribe-auth/AAx0FsuIE3P6S82YBeXcaLtwxfJh77QIks5s7I6ngaJpZM4Qt6Q6 .

UberSlackr commented 6 years ago

Node-Red dev didn't make the node. And this git is linked in the description of the node info.

dhleong commented 6 years ago

I don't doubt it depends on this project, but as I didn't develop the node, there's nothing I can do to fix it. I don't use Node-Red or anything related to it for my home automation; I use this project directly, and don't have any problems like the one you've described, so it must be a problem with the implementation of the node you're using.

dhleong commented 6 years ago

You might be looking for this: https://github.com/biddster/node-red-contrib-wemo-emulator