Shelly MQTT Python ...
 
Powiadomienia
Wyczyść wszystko

[Rozwiązany] Shelly MQTT Python Plugin

5 Wpisów
2 Użytkownicy
4 Likes
1,310 Wyświetleń
(@extremeaudio)
Wpisów: 5
Bywalec
Autor tematu
 

Hi, I am an english speaking user. I am using Smarticz. I want to use Shelly MQTT Python plugin for domoticz. How do I use it? Is mosquitto already installed in Smarticz? If yes, I didnt know that and I have uninstalled it. How do I reinstall? Also, if it comes pre installed then what is the username and password for the mqtt?

 

Right now I am trying to install the mosquitto server and client using the instructions in this video..   https://www.youtube.com/watch?v=w7QhsFqBr30&t=3s

 

but when i try to install, i get the errors..

 

Process: 1369 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=exited, status=3) Main PID: 1369 (code=exited, status=3) dpkg: error processing package mosquitto (--configure): installed mosquitto package post-installation script subprocess returned error exit status 1 Processing triggers for systemd (241-7~deb10u6+rpi1) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.28-10+rpi1) ... Errors were encountered while processing: mosquitto N: Ignoring file 'mosquitto-buster.list.2' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'mosquitto-buster.list.3' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'mosquitto-buster.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Dodane : 11/10/2021 8:57 am
isom
 isom
(@isom)
Wpisów: 5079
Szef wszystkich szefów Moderator Zasłużony dla Forum, Donator 2K19, Donator 2K20
 

@extremeaudio Welcome
Smarticz has a mosquitto on board. Username - admin, password - admin.
The Shelly MQTT plugin works so that all devices in which you provide authorization, such as in the plugin config, will be automatically added. To completely uninstall mosquitto use

sudo apt-get purge mosquitto  
 
Dodane : 11/10/2021 5:53 pm
extremeaudio reacted
(@extremeaudio)
Wpisów: 5
Bywalec
Autor tematu
 

@isom thanks so much. I think i uninstalled mosquitto by mistake. How can i reinstall it onto smarticz. Like i mentioned, i get the error when i try. I dont want to do a fresh installation because of my various devices and customization. Can I take a database backup and restore on fresh smarticz? Though the preferred way would be to reinstall mosquitto using your recommended settings.

 
Dodane : 12/10/2021 1:59 pm
isom
 isom
(@isom)
Wpisów: 5079
Szef wszystkich szefów Moderator Zasłużony dla Forum, Donator 2K19, Donator 2K20
 

@extremeaudio I think if there are any mosquitto files left, the installation will not go through, you have to remove everything related to the broker.
As for the database copy, if you upload smarticz and update it, you can easily load the older database and have everything that was

 
Dodane : 12/10/2021 2:36 pm
extremeaudio reacted
(@extremeaudio)
Wpisów: 5
Bywalec
Autor tematu
 

With your help I have shelly up and running with the mqtt plugin. Thank you!

 
Dodane : 14/10/2021 7:27 pm
isom and adrian reacted
Udostępnij: