michbeck100 / pimatic-echo

Pimatic plugin that integrates Amazons smart home skill
GNU General Public License v3.0
17 stars 10 forks source link

echo finds the pimatic devices no longer #53

Closed baddle closed 6 years ago

baddle commented 6 years ago

Hello,

I use 4 Echo (2. generation) with pimatic (latest version), the pimatic plugin (0.5.2), some yeelight, homeduino and TP-Link smartplug devices. Since some days the echos no longer find new devices but the older ones still worked. After I noticed that I restarted the pimatic-pi but the problem was still there. Even a reinstall of the echo-plugin and deleting all old devices brought no success. Now the Echos find my devices anymore (discover devices was activated).

There are no errors in the log and i can access the api under /api//lights/.

Did I miss something? I would be glad about help.

baddle

baddle commented 6 years ago

Update: I replaced my Echo Dot (2. generation) some weeks ago with an echo (2. generation). I believe since then my echos find new devices anymore.

I have added a borrowed echo dot (2. generation) and the dot found all my devices but after I disconnect the dot again all devices are gone.

Are Echo (2. generation) not supported? I read the readme and I understood that only the port 80 must be available for an Echo 2nd gen. Did I miss something?

I attached the description.xml, the lights.json and the dicovery mode log. description.txt lights.txt log.txt

Update 2: unplugged all 4 echos deactivated most pimatic echo devices restarted pimatic plugged only one echo back in started dicovery mode started the echo device search --> FOUND all active pimatic echo devices activate one more pimatic echo device plugged the second echo back in started dicovery mode started the echo device search --> FOUND the newly activated device I repeated the steps until all echos was plugged in and found the devices. Nor problems so far. I activated a few devices more and started the scan ... no more devices was found ... the search was broken again. After this I wasn't able to find a device again even if I repeated the steps above.

This log shows three discovery-periods in a row.

  1. without a echo scan
  2. with an echo scan (all 4 echos)
  3. with an echo scan but something is broken log_3scans_all4.txt

holy cow thats are a bunch of requests ...

Update 3: Finally I found the reason. After I reset (mute and -) one of the echos and had unplugged the rest the device scan worked again. I found out that TPlinkHS100 Plug was the problem. The dot was able to handle this device without a problem but the echos have a big problem with it.

Maybe this solution helps somebody to solve it faster than me :)

Don't know if it is an echo or echo-plugin bug.

michbeck100 commented 6 years ago

Currently just the echo dot is supported. But you can mix it with new echoes, though. You just need at least one echo dot in your network.