Page 1 of 1
Flashed Shelly and now...
Posted: Thursday 12 August 2021 23:18
by EdwinK
I installed and flashed (OTA) a Shely 2.5. Now I found to add this to domoticz, with the help of
https://github.com/emontnemery/domoticz_mqtt_discovery, but I fail in doing this. I could send a test from MQTT to domoitcz as in the wiki, so I do believe it is working. but can't figure out how to work with this.
Re: Flashed Shelly and now...
Posted: Friday 13 August 2021 0:48
by waltervl
Did you follow the instructions of the plugin?
We're you able to activate the plugin hardware?
What does the Domoticz log file say regarding this plugin?
Re: Flashed Shelly and now...
Posted: Friday 13 August 2021 0:52
by waltervl
You could also try another plugin,
:
https://github.com/joba-1/Tasmoticz
Re: Flashed Shelly and now...
Posted: Friday 13 August 2021 11:42
by EdwinK
waltervl wrote: Friday 13 August 2021 0:48
Did you follow the instructions of the plugin?
We're you able to activate the plugin hardware?
What does the Domoticz log file say regarding this plugin?
What i notice in the log is
2021-08-13 11:40:57.759 MQTT Discovery: (MQTT Discovery) Warning: could not load plugin options '' as JSON object
2021-08-13 11:40:54.520 Status: MQTT Discovery: (MQTT Discovery) Stop directive received.
2021-08-13 11:40:54.631 Status: MQTT Discovery: (MQTT Discovery) Exiting work loop.
2021-08-13 11:40:54.720 Status: MQTT Discovery: (MQTT Discovery) Stopping threads.
2021-08-13 11:40:54.720 Status: MQTT Discovery: (MQTT Discovery) Stopped.
2021-08-13 11:40:57.538 MQTT Discovery hardware started.
2021-08-13 11:40:57.758 MQTT Discovery: (MQTT Discovery) 'HardwareID':'59'
2021-08-13 11:40:57.758 MQTT Discovery: (MQTT Discovery) 'HomeFolder':'/home/pi/domoticz/plugins/domoticz_mqtt_discovery/'
2021-08-13 11:40:57.758 MQTT Discovery: (MQTT Discovery) 'StartupFolder':'/home/pi/domoticz/'
2021-08-13 11:40:57.758 MQTT Discovery: (MQTT Discovery) 'UserDataFolder':'/home/pi/domoticz/'
2021-08-13 11:40:57.758 MQTT Discovery: (MQTT Discovery) 'Database':'/home/pi/domoticz/domoticz.db'
2021-08-13 11:40:57.758 MQTT Discovery: (MQTT Discovery) 'Language':'en'
2021-08-13 11:40:57.758 MQTT Discovery: (MQTT Discovery) 'Version':'0.0.4'
2021-08-13 11:40:57.758 MQTT Discovery: (MQTT Discovery) 'Name':'MQTT Discovery'
2021-08-13 11:40:57.758 MQTT Discovery: (MQTT Discovery) 'Address':'127.0.0.1'
2021-08-13 11:40:57.758 MQTT Discovery: (MQTT Discovery) 'Port':'1883'
2021-08-13 11:40:57.758 MQTT Discovery: (MQTT Discovery) 'Key':'MQTTDiscovery'
2021-08-13 11:40:57.758 MQTT Discovery: (MQTT Discovery) 'Mode2':'homeassistant'
2021-08-13 11:40:57.758 MQTT Discovery: (MQTT Discovery) 'Mode4':'tasmota/sonoff/'
2021-08-13 11:40:57.758 MQTT Discovery: (MQTT Discovery) 'Mode6':'Verbose'
2021-08-13 11:40:57.758 MQTT Discovery: (MQTT Discovery) 'DomoticzVersion':'2021.1 (build 13360)'
2021-08-13 11:40:57.759 MQTT Discovery: (MQTT Discovery) 'DomoticzHash':'eee333c30'
2021-08-13 11:40:57.759 MQTT Discovery: (MQTT Discovery) 'DomoticzBuildTime':'2021-07-04 11:58:11'
2021-08-13 11:40:57.759 MQTT Discovery: (MQTT Discovery) Device count: 0
2021-08-13 11:40:57.759 MQTT Discovery: (MQTT Discovery) Debug logging mask set to: PYTHON PLUGIN DEVICE CONNECTION MESSAGE
2021-08-13 11:40:57.759 MQTT Discovery: (MQTT Discovery) Warning: could not load plugin options '' as JSON object
2021-08-13 11:40:57.759 MQTT Discovery: (MQTT Discovery) Plugin options: {'addDiscoveredDeviceUsed': True, 'updateRSSI': False, 'updateVCC': False}
2021-08-13 11:40:57.759 MQTT Discovery: (MQTT Discovery) MqttClient::__init__
2021-08-13 11:40:57.759 MQTT Discovery: (MQTT Discovery) MqttClient::Open
2021-08-13 11:40:57.759 MQTT Discovery: (MQTT Discovery) Heartbeat interval set to: 10.
2021-08-13 11:40:57.759 MQTT Discovery: (MQTT Discovery) Protocol set to: 'MQTT'.
2021-08-13 11:40:57.759 MQTT Discovery: (MQTT Discovery) Transport set to: 'TCP/IP', 127.0.0.1:1883.
2021-08-13 11:40:57.760 MQTT Discovery: (MQTT Discovery) Connect directive received, action initiated successfully.
2021-08-13 11:40:57.811 MQTT Discovery: (MQTT Discovery) MqttClient::onConnect
2021-08-13 11:40:57.811 MQTT Discovery: (MQTT Discovery) Successful connect to: 127.0.0.1:1883
2021-08-13 11:40:57.811 MQTT Discovery: (MQTT Discovery) MqttClient::Connect
2021-08-13 11:40:57.811 MQTT Discovery: (MQTT Discovery) MQTT CONNECT ID: 'Domoticz_MQTTDiscovery_59_1628847657'
2021-08-13 11:40:57.811 MQTT Discovery: (MQTT Discovery) Sending 50 bytes of data
2021-08-13 11:40:57.811 MQTT Discovery: (MQTT Discovery) 10 30 00 04 4d 51 54 54 04 02 00 3c 00 24 44 6f 6d 6f 74 69 .0..MQTT...<.$Domoti
2021-08-13 11:40:57.811 MQTT Discovery: (MQTT Discovery) 63 7a 5f 4d 51 54 54 44 69 73 63 6f 76 65 72 79 5f 35 39 5f cz_MQTTDiscovery_59_
2021-08-13 11:40:57.811 MQTT Discovery: (MQTT Discovery) 31 36 32 38 38 34 37 36 35 37 .. .. .. .. .. .. .. .. .. .. 1628847657
2021-08-13 11:40:57.862 MQTT Discovery: (MQTT Discovery) Received 4 bytes of data
2021-08-13 11:40:57.862 MQTT Discovery: (MQTT Discovery) 20 02 00 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ....
2021-08-13 11:40:57.862 MQTT Discovery: (MQTT Discovery) onMQTTConnected
2021-08-13 11:40:57.862 MQTT Discovery: (MQTT Discovery) getTopics: '{'homeassistant/#'}'
2021-08-13 11:40:57.862 MQTT Discovery: (MQTT Discovery) MqttClient::Subscribe
2021-08-13 11:40:57.862 MQTT Discovery: (MQTT Discovery) Sending 22 bytes of data
2021-08-13 11:40:57.862 MQTT Discovery: (MQTT Discovery) 82 14 00 01 00 0f 68 6f 6d 65 61 73 73 69 73 74 61 6e 74 2f ®....homeassistant/
2021-08-13 11:40:57.862 MQTT Discovery: (MQTT Discovery) 23 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. #.
2021-08-13 11:40:57.913 MQTT Discovery: (MQTT Discovery) Received 5 bytes of data
2021-08-13 11:40:57.913 MQTT Discovery: (MQTT Discovery) 90 03 00 01 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. Ю...
2021-08-13 11:40:57.913 MQTT Discovery: (MQTT Discovery) onMQTTSubscribed
2021-08-13 11:40:57.913 MQTT Discovery: (MQTT Discovery) getDevices key: '' configkey: '' hasconfigkey: 'tasmota_tele_topic' value: '' config: '' topic: ''
2021-08-13 11:40:57.913 MQTT Discovery: (MQTT Discovery) getDevices found 0 devices
Re: Flashed Shelly and now...
Posted: Friday 13 August 2021 11:54
by EdwinK
Will check this out over the weekend. For now the other one first.
Re: Flashed Shelly and now...
Posted: Friday 13 August 2021 13:16
by waltervl
Perhaps post this issue in the following topic as this is the main forum topic for this plugin.
viewtopic.php?t=21918
Re: Flashed Shelly and now...
Posted: Saturday 14 August 2021 13:36
by EdwinK
Re: Flashed Shelly and now...
Posted: Saturday 14 August 2021 14:44
by waltervl
I see some notes about using the incorrect tasmota.bin. Are you using the correct full tasmota.bin?
And also did you set:
Go to Console. In the command line, enter “SetOption19 1” and hit Enter.
Re: Flashed Shelly and now...
Posted: Saturday 14 August 2021 14:54
by besix
Both plugins need an individual topic for each module. You have a default topic "tasmota" and it doesn't work.
User and password must be what you have for mosquitto
Re: Flashed Shelly and now...
Posted: Saturday 14 August 2021 15:30
by erem
you show your mqtt host as 127.0.0.1
that is the loopback address of the shelly, probably not the mqtt host.
put in the real IP address of the mqtt server.
Re: Flashed Shelly and now...
Posted: Saturday 14 August 2021 16:44
by EdwinK
...
Re: Flashed Shelly and now...
Posted: Saturday 14 August 2021 16:53
by EdwinK
waltervl wrote: Saturday 14 August 2021 14:44
I see some notes about using the incorrect tasmota.bin. Are you using the correct full tasmota.bin?
I hope so

Followed this line:
Code: Select all
http://shellyip/ota?url=http://dl.dasker.eu/firmware/mg2tasmota-Shelly25.zip
And also did you set:
Go to Console. In the command line, enter “SetOption19 1” and hit Enter.
That i did forget.
Re: Flashed Shelly and now...
Posted: Saturday 14 August 2021 16:55
by EdwinK
...
Re: Flashed Shelly and now...
Posted: Saturday 14 August 2021 17:09
by EdwinK
Two devices were found now, so I guess that is working.
Re: Flashed Shelly and now...
Posted: Sunday 15 August 2021 9:46
by waltervl
EdwinK wrote: Saturday 14 August 2021 17:09
Two devices were found now, so I guess that is working.
Great!
Re: Flashed Shelly and now...
Posted: Sunday 15 August 2021 10:14
by EdwinK
Set it to roller/shutter mode, ad trying to figure this out.