dmamontov / node-red-contrib-magic-home

Node-red integration magic-home
GNU General Public License v3.0
5 stars 9 forks source link

Can't add device #4

Closed duyuelryel closed 3 years ago

duyuelryel commented 3 years ago

Greetings! I have just installed your contrib. All of the nodes are installed and can be seen, but i can't add any devices. Is there a specific way to do it please? Thank you!

dmamontov commented 3 years ago

Good day! Devices are scanned automatically if they are in the local network. and are selected in node.

Example settings: https://ibb.co/QJp77N0

duyuelryel commented 3 years ago

image

Thank you, but it not seems like scanning it. I can see it in my Magic Home app on anroid phone and on my router's DHCP list on local network but not in node-red. Did i miss something?

dmamontov commented 3 years ago

a feeling that there are not enough rights to scan. try pinging your device from the server running node-red.

duyuelryel commented 3 years ago

Képernyőkép erről: 2021-01-04 15-25-01 Seems good.

I have instaled your contrib from node-red palette. Is that enough?

dmamontov commented 3 years ago

That should be enough. check if port 5577 is open.

duyuelryel commented 3 years ago

Képernyőkép erről: 2021-01-04 15-32-40 On my led controller, there are no open ports. Strange... My magic home app can control it.

dmamontov commented 3 years ago

i am using library: https://www.npmjs.com/package/magic-home

try scanning through it to see if it will give you a list of devices. If it does, check the same thing under the user under which node-red is launched.

duyuelryel commented 3 years ago

Thank you. I will try that. I'm not that good in linux yet.

duyuelryel commented 3 years ago

Képernyőkép erről: 2021-01-04 16-20-43

So. It's strange. for discovery, it say, nothing. But for query, it shows the current status of the led controller.

duyuelryel commented 3 years ago

Hello! Sadly, i can't make it work with node-red or just simply the magic-home library. Discovery not find it, but query can see the status. Is there a way i can manually add the ip to node-red please? Thank you!

dmamontov commented 3 years ago

In theory, I can add if you wait a couple of days.

duyuelryel commented 3 years ago

I can't make it work an i can't see it withouth node-red , so i have time. Maybe it will help for others too later! Thank you for your help and time!

RalphLemarechal commented 3 years ago

Hi !

I have the exact same issue, can control the led through the android app, it's discoverable (see below), and also works with node-red-contrib-magichome (but I want the pattern option).

Being able to set the ip address manually would be a great workaround :-)

duyuelryel commented 3 years ago

I did try this: https://flows.nodered.org/node/node-red-contrib-magichome-controller and it seems, i can controll the LED strip with it manually. So the only problem is the discovery.

RalphLemarechal commented 3 years ago

Those nodes also don't work with me.... same behaviour. Must be a networking issue but still, hardcoding the ip would do.

dmamontov commented 3 years ago

Updated version, added more device settings. and also manually register ip.

https://www.npmjs.com/package/node-red-contrib-magic-home-local

hasspi88 commented 3 years ago

Hello, I installed your node, but I don't know how to use it, such as switch, palette, homekit. Is there an example stream