TP-Link Smartplug unable to add or edit a new plug

After updating to the latest Octoprint 1.3.11 I am unable to add or even edit my TPLinks smart plug.

I have tried to uninstall and re install the plugin, but nothing has improved.

Some files may have been corrupted (my humble guess).

Any suggestions is appreciated.
Thanks all in advance.

Try connecting to your pi via ssh or with a keyboard and monitor plugged in and run this command.

nano ~/.octoprint/config.yaml

Then delete the tplinksmartplug section completely from the plugins section of config.yaml. Then restart octoprint and add your plug(s) back.

It worked.
Thanks for your prompt response

Cool. I still need to figure out why this is happening. I think it might be related to the addition of thermal runaway option that I added, but haven't been able to dig in deeper.

Don't forget to mark it as the solution to your post....

Thanks for letting me know, I wasn't aware of the "Solution" tick box.
And also, thanks for the useful plug in...

Had this same issue, the plus button to add a plug was unresponsive, removing the config and restarting didn't work. I ended up copying a config from another printer I have set up and pasting it into the ~/.octoprint/config.yaml. This worked, but the plus button was still not functional. Here is a sample config is someone else has a similar problem:

 tplinksmartplug:
        _config_version: 16
        arrSmartplugs:
        -   autoConnect: true
            autoConnectDelay: 10
            autoDisconnect: true
            autoDisconnectDelay: 0
            automaticShutdownEnabled: false
            btnColor: '#808080'
            countdownOffDelay: 1
            countdownOnDelay: 1
            currentState: unknown
            displayWarning: true
            emeter:
                get_realtime: {}
            event_on_disconnect: false
            event_on_error: false
            event_on_shutdown: false
            event_on_startup: false
            event_on_upload: false
            gcodeCmdOff: false
            gcodeCmdOn: false
            gcodeEnabled: false
            gcodeOffDelay: 0
            gcodeOnDelay: 0
            gcodeRunCmdOff: ''
            gcodeRunCmdOn: ''
            icon: icon-bolt
            ip: x.x.x.x
            label: ''
            sysCmdOff: false
            sysCmdOffDelay: 0
            sysCmdOn: false
            sysCmdOnDelay: 0
            sysRunCmdOff: ''
            sysRunCmdOn: ''
            thermal_runaway: false
            useCountdownRules: false
            warnPrinting: false
        thermal_runaway_max_bed: '100'
        thermal_runaway_max_extruder: '250'
        thermal_runaway_monitoring: true

Just fill out "ip: x.x.x.x" with the ip address of your plug

Did this happen recently for you @Mitchell_Evans? If so I'd like to fix the bug. I typically can figure these things out.

Yep, looks like i forgot to include the new field in the add plug function. Version 1.0.1 released to resolve.

Awesome! Updated and it works a treat now. Thanks for the quick fix and thanks for the work on the plug-in!

1 Like