Closed daveDGL closed 6 months ago
I've logged into the pi direct and tried the same commands ("system" and "get_sysinfo" and they are not recognised.
This is expected, because when the commands are sent to the tplink it's being done over a socket connection. Those are commands that are interpreted by the plug and a response to those commands is given.
I still think this achievable with a single plug configured and the following settings. So delete the fake one and try with these options.
If it doesn't work like that then re-upload your log file again for me so I can see how it's acting.
Hi, I deleted the fake plug and added the config you provided (screenshots of both pages of the config are attached). I found the following:
Given that the shutdown process works for both the pi and printer it doesn't really matter what order they shut down in (previously I thought the pi needed be running to shut down the TP link plug but now realise the command is issued correctly). However, given that the plugin is shutting down pi even without the printer powered on, I have unchecked the run system code.
can you go into software update settings and change the release channel to release candidate
for the plugin and update when prompted? I noticed that there were some changes specific to timers in one of those newer rc versions that might help.
- With the printer not powered on at all, the plugin still activated - the abort message appeared for the set 10secs then 65 seconds later the Pi shut down (seen via my vnc connection closing)
this has been a lingering thing I've been meaning to fix. that was one of the reasons I put the toggle switch for idle timer in the sidebar to easily turn it off when doing other stuffs like you mention.
This issue has been automatically marked as stale because it has not had activity in 14 days. It will be closed if no further activity occurs in 7 days
As per octoprint community chat previously..
I have one KP105 plug that the plugin does as expected and shuts down the printer as per the settings. Initially in that plug profile I added the before Off system command ""sleep 10s; shutdown -h now" but the log shows this is not sent. I then added a second IP address/"plug" into the profile which is the IP address of the pi (192.168.0.100) just to issue the shutdown command to the Pi IP. I can see in the logs that the plugin first successfully shuts down the KP105 plug (192.168.0.99) but then cannot send the command to the Pi as it appears to be issuing TPLink specific commands that the Pi doesn't recognise. I've logged into the pi direct and tried the same commands ("system" and "get_sysinfo" and they are not recognised.
Desktop (please complete the following information):
plugin_tplinksmartplug_debug.log