otaviojr / node-red-contrib-smartthings

Allows you to control your devices and get their status using NodeRed
MIT License
32 stars 16 forks source link

Can't get events? #17

Closed DIYtechie closed 4 years ago

DIYtechie commented 4 years ago

I installed using npm install node-red-contrib-smartthings

I have followed the 11 steps and installed the smartApp from code. Set it up for local control and even tried the simulator:

Skærmbillede 2020-01-11 kl  23 49 33

and I get this (which I assume is ok for non-virtual buttons):

Skærmbillede 2020-01-11 kl  23 51 10

And the devices (wemo switch and IKEA remote) are available in the Node-RED nodes:

Skærmbillede 2020-01-11 kl  23 55 08

But I can't get any events in Node-RED and I can't control any devices. Also, the examples don't seem to be working:

Skærmbillede 2020-01-11 kl  23 56 49

What am I missing? Why isn't it working? Any help is greatly appreciated :)

DIYtechie commented 4 years ago

Progress! After updating the node to 0.0.15. I can now get status and control my devices from Node-RED, using these payloads:

update: Skærmbillede 2020-01-12 kl  10 47 01

turn on: Skærmbillede 2020-01-12 kl  11 09 09

However, I'm still not getting any events from the buttons/input devices:

Skærmbillede 2020-01-12 kl  11 13 35

otaviojr commented 4 years ago

Could you try to prefix your webhook URL with http://?

DIYtechie commented 4 years ago

Thank you for your response 😊 I think I already tried that, but will try again. Just thought that that couldn’t be the issue since I am able to send commands to the devices and get status. I assume that I only need to change this in the url in the SmartThings app?

otaviojr commented 4 years ago

Yes.

Em seg, 13 de jan de 2020 06:59, PiRune notifications@github.com escreveu:

Thank you for your response 😊 I think I already tried that, but will try again. Just thought that that couldn’t be the issue since I am able to send commands to the devices and get status. I assume that I only need to change this in the url in the SmartThings app?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/otaviojr/node-red-contrib-smartthings/issues/17?email_source=notifications&email_token=AAWMITKUGYCD6Y2GG66WVXLQ5Q3PXA5CNFSM4KFUOHHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIYDQ4Q#issuecomment-573585522, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWMITJJBAJYBBNVE3A3VS3Q5Q3PXANCNFSM4KFUOHHA .

DIYtechie commented 4 years ago

Just tried it, but with no luck. Both in the app and in the simulator Skærmbillede 2020-01-13 kl  23 12 48

I can control the connected devices via Node-RED, but not get any events when I push a button. I even bought a SmartThings button to make sure that the issue was not with the IKEA remote, but still no events...

Skærmbillede 2020-01-13 kl  23 13 42

otaviojr commented 4 years ago

Is your nodered install listening on port 80? Or 1880?

If it is listening at 1880 the address should be:

http://192.168.3.6:1880/smartthings/webhook

Regards

On Mon, 13 Jan 2020 at 19:18 PiRune notifications@github.com wrote:

Just tried it, but with no luck. Both in the app and in the simulator [image: Skærmbillede 2020-01-13 kl 23 12 48] https://user-images.githubusercontent.com/20454469/72296663-7a989d00-365a-11ea-8de8-e2dd39e11565.png

I can control the connected devices via Node-RED, but not get any events when I push a button. I even bought a SmartThings button to make sure that the issue was not with the IKEA remote, but still no events...

[image: Skærmbillede 2020-01-13 kl 23 13 42] https://user-images.githubusercontent.com/20454469/72296721-98660200-365a-11ea-9a80-7e27abc619c4.png

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/otaviojr/node-red-contrib-smartthings/issues/17?email_source=notifications&email_token=AAWMITILSM6NJDB6EFJ457DQ5TSC5A5CNFSM4KFUOHHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI2QFVA#issuecomment-573899476, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWMITLDBEBNKYJBGRIQGOLQ5TSC5ANCNFSM4KFUOHHA .

DIYtechie commented 4 years ago

That was it. It worked! YES! Thank you very very much :)

Skærmbillede 2020-01-14 kl  18 12 30

otaviojr commented 4 years ago

Good news!!!!!