edekeijzer / OctoPrint-PSUControl-Shelly

GNU Affero General Public License v3.0
10 stars 6 forks source link

Don't works with Shelly 1 PM #4

Closed FRUCHTiii closed 3 years ago

FRUCHTiii commented 3 years ago

I don't get this plugin running with my Shelly 1 PM. I tried it locally and with Shelly Cloud both versions won't work.

The pi and plugin can connect correctly to the shelly. The PSU control updates the current status correct if I switch the Shelly manually. I also done a tcpdump on the pi. If I try to change the power state within the tcpdump there is no url that is called for power on/off the shelly. Only the update status every 5 seconds is working and requested.

I don't get it what I'm doing wrong.

shelly.log

Bildschirmfoto 2021-06-02 um 11 31 23 Bildschirmfoto 2021-06-02 um 11 31 17
edekeijzer commented 3 years ago

@FRUCHTiii did you notice the red bar in your screenshot? ;) The sensing is set to Shelly, which is why it does follow the state of your Shelly, but the switching method is still at Gcode commands, which is why it does not send commands to the Shelly when you hit the power button. Also note that the Auto On function could lead to issues, as the author of the original PSUControl plugin explains here. The plugin will send a switching command each time one of the specified Gcodes is processed, which will cause an issue when the target is unavailable (for example, a short hiccup in wifi connectivity) as it will wait for the printer to turn on. My advice would be to turn it off when using the Shelly plugin.

FRUCHTiii commented 3 years ago

I'm feel like a fool. Thanks for your help.