Page 1 of 1

Errors when try to Add Devices by using MQTT Auto Discovery

Posted: Monday 21 November 2022 21:40
by mastadook
Hi All,

I try to use the mqtt auto discovery Plugin also, but there I got very much Error Messages.

Anyone with Idea here?

Errormessages like this:

Code: Select all

022-11-21 20:17:55.793 Error: Shellie3EMHauptstrom: (ShellyCloudPlugin) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/ShellyCloudPlugin/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2022-11-21 20:17:55.793 Error: Shellie3EMHauptstrom: Module Import failed, exception: 'ModuleNotFoundError'
2022-11-21 20:17:55.793 Error: Shellie3EMHauptstrom: Module Import failed: ' Name: requests'
2022-11-21 20:17:55.793 Error: Shellie3EMHauptstrom: Error Line details not available.
2022-11-21 20:17:55.793 Error: Shellie3EMHauptstrom: Exception traceback:
2022-11-21 20:17:55.793 Error: Shellie3EMHauptstrom: ----> Line 50 in '/home/pi/domoticz/plugins/ShellyCloudPlugin/plugin.py', function <module>
and this:
errormessages_1.jpg
errormessages_1.jpg (373.22 KiB) Viewed 444 times

Re: Errors when try to Add Devices by using MQTT Auto Discovery

Posted: Monday 21 November 2022 21:58
by waltervl
Shelly does not support the mqtt Autodiscover protocol so you can forget this.

For the plugin it is missing the python module requests. You need to install this. if you already did it, install it again but then with sudo.

Re: Errors when try to Add Devices by using MQTT Auto Discovery

Posted: Tuesday 22 November 2022 14:40
by mastadook
Hi Walter,

thank you for your hint. :)

So for clarification:
mqtt Autodiscover will never work with shellies?!
For the plugin it is missing the python module requests. You need to install this. if you already did it, install it again but then with sudo.
this means the ShellyCloudPlugin? True?
And with this one, it will work with the shellies?
Do they need the shellie cloud for working or does it work locally?

Have you maybe some Link where I can find more?
I am asking, cause on the github Page I see no help how to install it...
https://github.com/mario-peters/ShellyCloudPlugin

Or maybe you have an Idea here:
viewtopic.php?p=294814#p294814
This will do all what i need :)

Re: Errors when try to Add Devices by using MQTT Auto Discovery

Posted: Tuesday 22 November 2022 17:26
by waltervl
mastadook wrote: Tuesday 22 November 2022 14:40 Hi Walter,

thank you for your hint. :)

So for clarification:
mqtt Autodiscover will never work with shellies?!
Probably not, unless shelly decides to implement it.....
For the plugin it is missing the python module requests. You need to install this. if you already did it, install it again but then with sudo.
this means the ShellyCloudPlugin? True?
And with this one, it will work with the shellies?
Do they need the shellie cloud for working or does it work locally?

Have you maybe some Link where I can find more?
I am asking, cause on the github Page I see no help how to install it...
https://github.com/mario-peters/ShellyCloudPlugin

Or maybe you have an Idea here:
viewtopic.php?p=294814#p294814
This will do all what i need :)
My answer was based on the error message in your first message "module import failed: Name: requests"
I dont have shellies so I dont know what to advise.
For the shellycloudplugin look here: viewtopic.php?p=291089#p291089 as the github page has indeed little information.