Python Plugin: Shelly MQTT

Python and python framework

Moderator: leecollings

snellejellep
Posts: 241
Joined: Tuesday 16 May 2017 13:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Neterlands
Contact:

Re: Python Plugin: Shelly MQTT

Post by snellejellep »

lwolf wrote: Sunday 06 October 2019 19:52
snellejellep wrote: Saturday 14 September 2019 21:21 any signs of the new shelly devices being implemented in the plugin?
I can only implement shelly devices that i own. But as it is open source everyone has the freedom to implement it.. or send me one device to implement it! ;) https://bitekmindenhol.blog.hu/2019/05/02/support_236
i sent you 40 euro's via paypal to buy a shelly dimmer sl and a shelly door/window sensor so you can test and implement them into the plugin
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
lwolf
Posts: 216
Joined: Saturday 10 November 2018 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Hungary
Contact:

Re: Python Plugin: Shelly MQTT

Post by lwolf »

snellejellep wrote: Wednesday 16 October 2019 18:33 i sent you 40 euro's via paypal to buy a shelly dimmer sl and a shelly door/window sensor so you can test and implement them into the plugin
Thank you for your contribution, i've ordered 1x shelly dimmer ls +1x shelly door sensor. According to the shop the expected shipping time is November 15.
mattley30
Posts: 7
Joined: Tuesday 24 September 2019 9:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by mattley30 »

hi, Iwolf
sorry in the delay of the reply, I send you the debug log of the scenes / group. I did 2 shutdowns and 2 ignitions, from what it seems (even if I'm not very experienced) I see both on and off
But on the switch The Off command is not written

2019-10-17 19:36:32.902 Status: (Shelly Attuatori) Started.
2019-10-17 19:36:33.098 Status: (Shelly Attuatori) Entering work loop.
2019-10-17 19:36:33.098 Status: (Shelly Attuatori) Initialized version 0.3.7
2019-10-17 19:36:37.860 Status: User: Admin initiated a scene/group command
2019-10-17 19:36:38.561 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/0 off
2019-10-17 19:36:38.575 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/0/power 0.0
2019-10-17 19:36:38.588 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/1 off
2019-10-17 19:36:38.602 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/1/power 0.0
2019-10-17 19:36:38.615 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/3 off
2019-10-17 19:36:38.664 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/3/power 0.0
2019-10-17 19:36:39.232 MQTT: Topic: domoticz/in, Message: {"idx":196,"nvalue":0,"svalue":"21.3;51.5;1","Battery":200,"RSSI":7}
2019-10-17 19:36:39.241 EventSystem: Event triggered: Termostato p.primo_2
2019-10-17 19:36:39.279 (Sonoff 4ch Pro 192.168.200.230 4 Rele) Light/Switch (Ventilazione CDZ 2 Uffici)
2019-10-17 19:36:40.310 Activating Scene/Group: [Luci Magazzino Pesca]
2019-10-17 19:36:40.315 Activating Scene/Group Device: Pesca Magazzino 1 (On)
2019-10-17 19:36:40.366 Activating Scene/Group Device: Pesca Magazzino 2 (On)
2019-10-17 19:36:40.382 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/2/command on
2019-10-17 19:36:40.417 Activating Scene/Group Device: Produzione 1 (On)
2019-10-17 19:36:40.434 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/3/command on
2019-10-17 19:36:40.469 Activating Scene/Group Device: Produzione 2 (On)
2019-10-17 19:36:40.486 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4D5C/relay/2/command on
2019-10-17 19:36:40.520 Activating Scene/Group Device: Produzione 3 (On)
2019-10-17 19:36:40.537 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4D5C/relay/3/command on
2019-10-17 19:36:40.572 Activating Scene/Group Device: Produzione 4 (On)
2019-10-17 19:36:40.589 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/0/command on
2019-10-17 19:36:40.641 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/2 on
2019-10-17 19:36:40.818 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/1/command on
2019-10-17 19:36:40.818 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4D5C/relay/2 on
2019-10-17 19:36:40.839 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4D5C/relay/3 on
2019-10-17 19:36:40.982 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/0 on
2019-10-17 19:36:40.995 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/1 on
2019-10-17 19:36:40.308 Status: User: Admin initiated a scene/group command
2019-10-17 19:36:41.008 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/3 on
2019-10-17 19:36:41.548 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4C5D/relay/0/power 0.0
2019-10-17 19:36:41.573 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4C5D/relay/0 off
2019-10-17 19:36:41.640 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4C5D/relay/1/power 0.0
2019-10-17 19:36:41.656 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4C5D/relay/1 off
2019-10-17 19:36:41.692 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4C5D/relay/2/power 0.0
2019-10-17 19:36:41.705 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4C5D/relay/2 off
2019-10-17 19:36:41.741 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4C5D/relay/3/power 0.0
2019-10-17 19:36:41.755 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4C5D/relay/3 off
2019-10-17 19:36:43.271 (Shelly Attuatori) Heartbeating...
2019-10-17 19:36:43.271 (Shelly Attuatori) MqttClient::ping
2019-10-17 19:36:44.770 Activating Scene/Group: [Luci Magazzino Pesca]
2019-10-17 19:36:44.775 Activating Scene/Group Device: Pesca Magazzino 1 (Off)
2019-10-17 19:36:44.826 Activating Scene/Group Device: Pesca Magazzino 2 (Off)
2019-10-17 19:36:44.878 Activating Scene/Group Device: Produzione 1 (Off)
2019-10-17 19:36:44.908 (Shelly Attuatori) MQTT message: shellies/shelly1-554049/relay/0 off
2019-10-17 19:36:44.929 Activating Scene/Group Device: Produzione 2 (Off)
2019-10-17 19:36:44.935 (Shelly Attuatori) MQTT message: shellies/shelly1-554049/input/0 1
2019-10-17 19:36:44.955 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/2/command off
2019-10-17 19:36:44.955 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/3/command off
2019-10-17 19:36:44.969 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4D5C/relay/2/command off
2019-10-17 19:36:44.970 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4D5C/relay/3/command off
2019-10-17 19:36:44.980 Activating Scene/Group Device: Produzione 3 (Off)
2019-10-17 19:36:44.768 Status: User: Admin initiated a scene/group command
2019-10-17 19:36:45.030 Activating Scene/Group Device: Produzione 4 (Off)
2019-10-17 19:36:45.088 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/2 off
2019-10-17 19:36:45.101 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/2/power 0.0
2019-10-17 19:36:45.114 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/0/command off
2019-10-17 19:36:45.115 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/1/command off
2019-10-17 19:36:45.303 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4D5C/relay/2 off
2019-10-17 19:36:45.317 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4D5C/relay/2/power 0.0
2019-10-17 19:36:45.450 (Shelly Attuatori) MQTT message: shellies/shelly4pro-8014FD/relay/0/power 0.0
2019-10-17 19:36:45.464 (Shelly Attuatori) MQTT message: shellies/shelly4pro-8014FD/relay/0 off
2019-10-17 19:36:45.478 (Shelly Attuatori) MQTT message: shellies/shelly4pro-8014FD/relay/1/power 0.0
2019-10-17 19:36:45.491 (Shelly Attuatori) MQTT message: shellies/shelly4pro-8014FD/relay/1 off
2019-10-17 19:36:45.506 (Shelly Attuatori) MQTT message: shellies/shelly4pro-8014FD/relay/2/power 0.0
2019-10-17 19:36:45.520 (Shelly Attuatori) MQTT message: shellies/shelly4pro-8014FD/relay/2 off
2019-10-17 19:36:45.535 (Shelly Attuatori) MQTT message: shellies/shelly4pro-8014FD/relay/3/power 0.0
2019-10-17 19:36:45.548 (Shelly Attuatori) MQTT message: shellies/shelly4pro-8014FD/relay/3 off
2019-10-17 19:36:45.623 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/0 off
2019-10-17 19:36:45.638 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/0/power 0.0
2019-10-17 19:36:45.651 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/3 off
2019-10-17 19:36:45.725 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/3/power 0.0
2019-10-17 19:36:45.751 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4D5C/relay/3 off
2019-10-17 19:36:45.788 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4D5C/relay/3/power 0.0
2019-10-17 19:36:45.816 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/1 off
2019-10-17 19:36:45.853 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/1/power 0.0
2019-10-17 19:36:45.867 (Shelly Attuatori) MQTT message: shellies/shellyswitch-32B7AE/relay/0 off
2019-10-17 19:36:45.939 (Shelly Attuatori) MQTT message: shellies/shellyswitch-32B7AE/relay/1 off
2019-10-17 19:36:45.953 (Shelly Attuatori) MQTT message: shellies/shellyswitch-32B7AE/relay/power 0.0
2019-10-17 19:36:45.967 (Shelly Attuatori) MQTT message: shellies/shellyswitch-32B7AE/relay/energy 2141909
2019-10-17 19:36:45.979 (Shelly Attuatori) MQTT message: shellies/shellyswitch-32B7AE/input/0 1
2019-10-17 19:36:45.990 (Shelly Attuatori) MQTT message: shellies/shellyswitch-32B7AE/input/1 1
2019-10-17 19:36:46.763 Activating Scene/Group: [Luci Magazzino Pesca]
2019-10-17 19:36:46.768 Activating Scene/Group Device: Pesca Magazzino 1 (On)
2019-10-17 19:36:46.811 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/2/command on
2019-10-17 19:36:46.820 Activating Scene/Group Device: Pesca Magazzino 2 (On)
2019-10-17 19:36:46.872 Activating Scene/Group Device: Produzione 1 (On)
2019-10-17 19:36:46.914 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/3/command on
2019-10-17 19:36:46.923 Activating Scene/Group Device: Produzione 2 (On)
2019-10-17 19:36:46.966 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4D5C/relay/2/command on
2019-10-17 19:36:46.974 Activating Scene/Group Device: Produzione 3 (On)
2019-10-17 19:36:46.762 Status: User: Admin initiated a scene/group command
2019-10-17 19:36:47.018 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4D5C/relay/3/command on
2019-10-17 19:36:47.026 Activating Scene/Group Device: Produzione 4 (On)
2019-10-17 19:36:47.070 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/0/command on
2019-10-17 19:36:47.121 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/1/command on
2019-10-17 19:36:47.231 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4D5C/relay/2 on
2019-10-17 19:36:47.255 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4D5C/relay/3 on
2019-10-17 19:36:47.355 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/2 on
2019-10-17 19:36:47.595 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/0 on
2019-10-17 19:36:47.608 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/1 on
2019-10-17 19:36:47.620 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/3 on
2019-10-17 19:36:47.784 (Shelly Attuatori) MQTT message: shellies/shelly1-2C82D2/relay/0 off
2019-10-17 19:36:47.798 (Shelly Attuatori) MQTT message: shellies/shelly1-2C82D2/input/0 1
snellejellep
Posts: 241
Joined: Tuesday 16 May 2017 13:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Neterlands
Contact:

Re: Python Plugin: Shelly MQTT

Post by snellejellep »

lwolf wrote: Wednesday 16 October 2019 19:10
snellejellep wrote: Wednesday 16 October 2019 18:33 i sent you 40 euro's via paypal to buy a shelly dimmer sl and a shelly door/window sensor so you can test and implement them into the plugin
Thank you for your contribution, i've ordered 1x shelly dimmer ls +1x shelly door sensor. According to the shop the expected shipping time is November 15.
that should be correct, mine ship around then too. hope you can figure it out!
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
lwolf
Posts: 216
Joined: Saturday 10 November 2018 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Hungary
Contact:

Re: Python Plugin: Shelly MQTT

Post by lwolf »

mattley30 wrote: Thursday 17 October 2019 19:47 hi, Iwolf
sorry in the delay of the reply, I send you the debug log of the scenes / group. I did 2 shutdowns and 2 ignitions, from what it seems (even if I'm not very experienced) I see both on and off
But on the switch The Off command is not written

2019-10-17 19:36:32.902 Status: (Shelly Attuatori) Started.
2019-10-17 19:36:33.098 Status: (Shelly Attuatori) Entering work loop.
2019-10-17 19:36:33.098 Status: (Shelly Attuatori) Initialized version 0.3.7
2019-10-17 19:36:37.860 Status: User: Admin initiated a scene/group command
2019-10-17 19:36:38.561 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/0 off
2019-10-17 19:36:38.575 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/0/power 0.0
2019-10-17 19:36:38.588 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/1 off
2019-10-17 19:36:38.602 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/1/power 0.0
2019-10-17 19:36:38.615 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/3 off
2019-10-17 19:36:38.664 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/3/power 0.0
...
The outgoing MQTT messages seems fine. But still missing "Updating device from" debug lines from log, which shows the incoming message processing.
mattley30
Posts: 7
Joined: Tuesday 24 September 2019 9:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by mattley30 »

Hi, Iwolf
I sent the wrong log, I am attaching the right log, I hope you can.
Thanks


2019-10-21 09:42:38.829 Status: User: Admin initiated a scene/group command
2019-10-21 09:42:39.035 Activating Scene/Group Device: Produzione 3 (Off)
2019-10-21 09:42:39.065 (Shelly Attuatori) Command: Off (99) Color:
2019-10-21 09:42:39.065 (Shelly Attuatori) shellies/shelly4pro-849B87/relay/0/command off
2019-10-21 09:42:39.066 (Shelly Attuatori) MqttClient::publish shellies/shelly4pro-849B87/relay/0/command (off)
2019-10-21 09:42:39.066 (Produzione 3) Updating device from 1:'On' to have values 99:'Off'.
2019-10-21 09:42:39.080 (Shelly Attuatori) Sending 49 bytes of data
2019-10-21 09:42:39.080 (Shelly Attuatori) 30 2f 00 2a 73 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 34 0/.*shellies/shelly4
2019-10-21 09:42:39.080 (Shelly Attuatori) 70 72 6f 2d 38 34 39 42 38 37 2f 72 65 6c 61 79 2f 30 2f 63 pro-849B87/relay/0/c
2019-10-21 09:42:39.080 (Shelly Attuatori) 6f 6d 6d 61 6e 64 6f 66 66 .. .. .. .. .. .. .. .. .. .. .. ommandoff
2019-10-21 09:42:39.086 Activating Scene/Group Device: Produzione 4 (Off)
2019-10-21 09:42:39.130 (Shelly Attuatori) Received 49 bytes of data
2019-10-21 09:42:39.130 (Shelly Attuatori) 30 2f 00 2a 73 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 34 0/.*shellies/shelly4
2019-10-21 09:42:39.130 (Shelly Attuatori) 70 72 6f 2d 38 34 39 42 38 37 2f 72 65 6c 61 79 2f 30 2f 63 pro-849B87/relay/0/c
2019-10-21 09:42:39.130 (Shelly Attuatori) 6f 6d 6d 61 6e 64 6f 66 66 .. .. .. .. .. .. .. .. .. .. .. ommandoff
2019-10-21 09:42:39.130 (Shelly Attuatori) Command: Off (99) Color:
2019-10-21 09:42:39.130 (Shelly Attuatori) shellies/shelly4pro-849B87/relay/1/command off
2019-10-21 09:42:39.130 (Shelly Attuatori) MqttClient::publish shellies/shelly4pro-849B87/relay/1/command (off)
2019-10-21 09:42:39.131 (Produzione 4) Updating device from 1:'On' to have values 99:'Off'.
2019-10-21 09:42:39.143 (Shelly Attuatori) Received 41 bytes of data
2019-10-21 09:42:39.143 (Shelly Attuatori) 30 27 00 22 73 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 34 0'."shellies/shelly4
2019-10-21 09:42:39.143 (Shelly Attuatori) 70 72 6f 2d 38 34 39 42 38 37 2f 72 65 6c 61 79 2f 32 6f 66 pro-849B87/relay/2of
2019-10-21 09:42:39.143 (Shelly Attuatori) 66 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. f
2019-10-21 09:42:39.143 (Shelly Attuatori) Received 48 bytes of data
2019-10-21 09:42:39.143 (Shelly Attuatori) 30 2e 00 28 73 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 34 0..(shellies/shelly4
2019-10-21 09:42:39.143 (Shelly Attuatori) 70 72 6f 2d 38 34 39 42 38 37 2f 72 65 6c 61 79 2f 32 2f 70 pro-849B87/relay/2/p
2019-10-21 09:42:39.143 (Shelly Attuatori) 6f 77 65 72 30 2e 30 30 .. .. .. .. .. .. .. .. .. .. .. .. ower0.00
2019-10-21 09:42:39.143 (Shelly Attuatori) Received 41 bytes of data
2019-10-21 09:42:39.143 (Shelly Attuatori) 30 27 00 22 73 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 34 0'."shellies/shelly4
2019-10-21 09:42:39.143 (Shelly Attuatori) 70 72 6f 2d 38 34 39 42 38 37 2f 72 65 6c 61 79 2f 33 6f 66 pro-849B87/relay/3of
2019-10-21 09:42:39.143 (Shelly Attuatori) 66 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. f
2019-10-21 09:42:39.143 (Shelly Attuatori) Received 48 bytes of data
2019-10-21 09:42:39.143 (Shelly Attuatori) 30 2e 00 28 73 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 34 0..(shellies/shelly4
2019-10-21 09:42:39.143 (Shelly Attuatori) 70 72 6f 2d 38 34 39 42 38 37 2f 72 65 6c 61 79 2f 33 2f 70 pro-849B87/relay/3/p
2019-10-21 09:42:39.143 (Shelly Attuatori) 6f 77 65 72 30 2e 30 30 .. .. .. .. .. .. .. .. .. .. .. .. ower0.00
2019-10-21 09:42:39.143 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/0/command off
2019-10-21 09:42:39.144 (Shelly Attuatori) Sending 49 bytes of data
2019-10-21 09:42:39.144 (Shelly Attuatori) 30 2f 00 2a 73 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 34 0/.*shellies/shelly4
2019-10-21 09:42:39.144 (Shelly Attuatori) 70 72 6f 2d 38 34 39 42 38 37 2f 72 65 6c 61 79 2f 31 2f 63 pro-849B87/relay/1/c
2019-10-21 09:42:39.144 (Shelly Attuatori) 6f 6d 6d 61 6e 64 6f 66 66 .. .. .. .. .. .. .. .. .. .. .. ommandoff
2019-10-21 09:42:39.144 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/2 off
2019-10-21 09:42:39.144 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/2/power 0.0
2019-10-21 09:42:39.145 (Shelly Attuatori - shelly4pro-849B87-2-energy) Updating device from 0:'2.59;529.68' to have values 0:'0.0;529.68'.
2019-10-21 09:42:39.152 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/3 off
2019-10-21 09:42:39.153 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/3/power 0.0
2019-10-21 09:42:39.153 (Shelly Attuatori - shelly4pro-849B87-3-energy) Updating device from 0:'2.51;503.45' to have values 0:'0.0;503.45'.
2019-10-21 09:42:39.160 (Shelly Attuatori) Received 49 bytes of data
2019-10-21 09:42:39.160 (Shelly Attuatori) 30 2f 00 2a 73 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 34 0/.*shellies/shelly4
2019-10-21 09:42:39.160 (Shelly Attuatori) 70 72 6f 2d 38 34 39 42 38 37 2f 72 65 6c 61 79 2f 31 2f 63 pro-849B87/relay/1/c
2019-10-21 09:42:39.160 (Shelly Attuatori) 6f 6d 6d 61 6e 64 6f 66 66 .. .. .. .. .. .. .. .. .. .. .. ommandoff
2019-10-21 09:42:39.161 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/1/command off
2019-10-21 09:42:39.261 (Shelly Attuatori) Received 41 bytes of data
2019-10-21 09:42:39.261 (Shelly Attuatori) 30 27 00 22 73 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 34 0'."shellies/shelly4
2019-10-21 09:42:39.261 (Shelly Attuatori) 70 72 6f 2d 34 41 34 44 35 43 2f 72 65 6c 61 79 2f 32 6f 66 pro-4A4D5C/relay/2of
2019-10-21 09:42:39.261 (Shelly Attuatori) 66 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. f
2019-10-21 09:42:39.261 (Shelly Attuatori) Received 48 bytes of data
2019-10-21 09:42:39.261 (Shelly Attuatori) 30 2e 00 28 73 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 34 0..(shellies/shelly4
2019-10-21 09:42:39.261 (Shelly Attuatori) 70 72 6f 2d 34 41 34 44 35 43 2f 72 65 6c 61 79 2f 32 2f 70 pro-4A4D5C/relay/2/p
2019-10-21 09:42:39.261 (Shelly Attuatori) 6f 77 65 72 30 2e 30 30 .. .. .. .. .. .. .. .. .. .. .. .. ower0.00
2019-10-21 09:42:39.261 (Shelly Attuatori) Received 41 bytes of data
2019-10-21 09:42:39.261 (Shelly Attuatori) 30 27 00 22 73 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 34 0'."shellies/shelly4
2019-10-21 09:42:39.261 (Shelly Attuatori) 70 72 6f 2d 34 41 34 44 35 43 2f 72 65 6c 61 79 2f 33 6f 66 pro-4A4D5C/relay/3of
2019-10-21 09:42:39.262 (Shelly Attuatori) 66 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. f
2019-10-21 09:42:39.262 (Shelly Attuatori) Received 48 bytes of data
2019-10-21 09:42:39.262 (Shelly Attuatori) 30 2e 00 28 73 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 34 0..(shellies/shelly4
2019-10-21 09:42:39.262 (Shelly Attuatori) 70 72 6f 2d 34 41 34 44 35 43 2f 72 65 6c 61 79 2f 33 2f 70 pro-4A4D5C/relay/3/p
2019-10-21 09:42:39.262 (Shelly Attuatori) 6f 77 65 72 30 2e 30 30 .. .. .. .. .. .. .. .. .. .. .. .. ower0.00
2019-10-21 09:42:39.262 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4D5C/relay/2 off
2019-10-21 09:42:39.262 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4D5C/relay/2/power 0.0
2019-10-21 09:42:39.263 (Shelly Attuatori - shelly4pro-4A4D5C-2-energy) Updating device from 0:'1.07;238.43' to have values 0:'0.0;238.43'.
2019-10-21 09:42:39.270 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4D5C/relay/3 off
2019-10-21 09:42:39.271 (Shelly Attuatori) MQTT message: shellies/shelly4pro-4A4D5C/relay/3/power 0.0
2019-10-21 09:42:39.271 (Shelly Attuatori - shelly4pro-4A4D5C-3-energy) Updating device from 0:'0.94;221.71' to have values 0:'0.0;221.71'.
2019-10-21 09:42:39.378 (Shelly Attuatori) Received 41 bytes of data
2019-10-21 09:42:39.378 (Shelly Attuatori) 30 27 00 22 73 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 34 0'."shellies/shelly4
2019-10-21 09:42:39.379 (Shelly Attuatori) 70 72 6f 2d 38 34 39 42 38 37 2f 72 65 6c 61 79 2f 30 6f 66 pro-849B87/relay/0of
2019-10-21 09:42:39.379 (Shelly Attuatori) 66 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. f
2019-10-21 09:42:39.379 (Shelly Attuatori) Received 48 bytes of data
2019-10-21 09:42:39.379 (Shelly Attuatori) 30 2e 00 28 73 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 34 0..(shellies/shelly4
2019-10-21 09:42:39.379 (Shelly Attuatori) 70 72 6f 2d 38 34 39 42 38 37 2f 72 65 6c 61 79 2f 30 2f 70 pro-849B87/relay/0/p
2019-10-21 09:42:39.379 (Shelly Attuatori) 6f 77 65 72 30 2e 30 30 .. .. .. .. .. .. .. .. .. .. .. .. ower0.00
2019-10-21 09:42:39.379 (Shelly Attuatori) Received 41 bytes of data
2019-10-21 09:42:39.379 (Shelly Attuatori) 30 27 00 22 73 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 34 0'."shellies/shelly4
2019-10-21 09:42:39.379 (Shelly Attuatori) 70 72 6f 2d 38 34 39 42 38 37 2f 72 65 6c 61 79 2f 31 6f 66 pro-849B87/relay/1of
2019-10-21 09:42:39.379 (Shelly Attuatori) 66 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. f
2019-10-21 09:42:39.379 (Shelly Attuatori) Received 48 bytes of data
2019-10-21 09:42:39.379 (Shelly Attuatori) 30 2e 00 28 73 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 34 0..(shellies/shelly4
2019-10-21 09:42:39.379 (Shelly Attuatori) 70 72 6f 2d 38 34 39 42 38 37 2f 72 65 6c 61 79 2f 31 2f 70 pro-849B87/relay/1/p
2019-10-21 09:42:39.379 (Shelly Attuatori) 6f 77 65 72 30 2e 30 30 .. .. .. .. .. .. .. .. .. .. .. .. ower0.00
2019-10-21 09:42:39.379 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/0 off
2019-10-21 09:42:39.380 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/0/power 0.0
2019-10-21 09:42:39.380 (Shelly Attuatori - shelly4pro-849B87-0-energy) Updating device from 0:'1.04;246.54' to have values 0:'0.0;246.54'.
2019-10-21 09:42:39.388 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/1 off
2019-10-21 09:42:39.388 (Shelly Attuatori) MQTT message: shellies/shelly4pro-849B87/relay/1/power 0.0
2019-10-21 09:42:39.389 (Shelly Attuatori - shelly4pro-849B87-1-energy) Updating device from 0:'0.93;243.9' to have values 0:'0.0;243.9'.
lwolf
Posts: 216
Joined: Saturday 10 November 2018 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Hungary
Contact:

Re: Python Plugin: Shelly MQTT

Post by lwolf »

mattley30 wrote: Monday 21 October 2019 11:02 Hi, Iwolf
I sent the wrong log, I am attaching the right log, I hope you can.
Thanks

2019-10-21 09:42:38.829 Status: User: Admin initiated a scene/group command
2019-10-21 09:42:39.035 Activating Scene/Group Device: Produzione 3 (Off)
2019-10-21 09:42:39.065 (Shelly Attuatori) Command: Off (99) Color:
2019-10-21 09:42:39.065 (Shelly Attuatori) shellies/shelly4pro-849B87/relay/0/command off
2019-10-21 09:42:39.066 (Shelly Attuatori) MqttClient::publish shellies/shelly4pro-849B87/relay/0/command (off)
2019-10-21 09:42:39.066 (Produzione 3) Updating device from 1:'On' to have values 99:'Off'.
2019-10-21 09:42:39.080 (Shelly Attuatori) Sending 49 bytes of data
2019-10-21 09:42:39.080 (Shelly Attuatori) 30 2f 00 2a 73 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 34 0/.*shellies/shelly4
2019-10-21 09:42:39.080 (Shelly Attuatori) 70 72 6f 2d 38 34 39 42 38 37 2f 72 65 6c 61 79 2f 30 2f 63 pro-849B87/relay/0/c
2019-10-21 09:42:39.080 (Shelly Attuatori) 6f 6d 6d 61 6e 64 6f 66 66 .. .. .. .. .. .. .. .. .. .. .. ommandoff
2019-10-21 09:42:39.086 Activating Scene/Group Device: Produzione 4 (Off)
Yes this logs seems fine, it contains everything necessary.. but i do not see any problem in it.
Can you specify which of the above is "Expo Sottoscala" that you reported first and could you provide an actual screenshot of the Textlog that misses "off" strings AND the same time the verbose log to see what happening at that time?
User avatar
djdevil
Posts: 101
Joined: Friday 26 July 2019 18:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Contact:

Re: Python Plugin: Shelly MQTT

Post by djdevil »

Hi everyone there is someone who managed to integrate Shelly Em? So it is possible to do it with MTTQ server in Home Assistant, would it be possible to do it in domoticz? thanks
lwolf
Posts: 216
Joined: Saturday 10 November 2018 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Hungary
Contact:

Re: Python Plugin: Shelly MQTT

Post by lwolf »

djdevil wrote: Wednesday 13 November 2019 16:41 Hi everyone there is someone who managed to integrate Shelly Em? So it is possible to do it with MTTQ server in Home Assistant, would it be possible to do it in domoticz? thanks
I do not have this device so i am unable to test. But blazoncek implemented it and merged in ShellyMQTT code at 2019 Oct. 2.
https://github.com/enesbcs/Shelly_MQTT/pull/30
https://github.com/enesbcs/Shelly_MQTT/issues/11
elektrikal
Posts: 2
Joined: Thursday 21 November 2019 17:52
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Contact:

Re: Python Plugin: Shelly MQTT

Post by elektrikal »

lwolf wrote: Wednesday 16 October 2019 19:10
snellejellep wrote: Wednesday 16 October 2019 18:33 i sent you 40 euro's via paypal to buy a shelly dimmer sl and a shelly door/window sensor so you can test and implement them into the plugin
Thank you for your contribution, i've ordered 1x shelly dimmer ls +1x shelly door sensor. According to the shop the expected shipping time is November 15.
Hello Iwolf, verry good work, but is there news about the shelly dimmer??
I Hope ther is,
Thanks
elektrikal
Posts: 2
Joined: Thursday 21 November 2019 17:52
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Contact:

Re: Python Plugin: Shelly MQTT

Post by elektrikal »

Thank you asquelt for adding the dimmer in plugin.py, it works fine

https://github.com/enesbcs/Shelly_MQTT
Olgmo
Posts: 23
Joined: Tuesday 28 June 2016 12:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Norway
Contact:

Re: Python Plugin: Shelly MQTT

Post by Olgmo »

I just got the flood sensor, but cannot add this to devices. Any suggestions for finding the fault?

I have a shelly1 and shelly 2.5 which was added successfully for some time ago.
And I am on stable 4.10717

I added the mqtt settings in the flood sensor but no new device added to the domoticz list.
and YES, I have enabled "accept new hardware device" and "Shelly Mqtt" plugin is running.

The log show that the messages are received after restarting the shelly plugin.

Code: Select all

2019-11-27 17:23:13.997 (Shelly) MqttClient::__init__
2019-11-27 17:23:13.998 (Shelly) MqttClient::Open
2019-11-27 17:23:13.627 Status: (Shelly) Stop directive received.
2019-11-27 17:23:13.627 Status: (Shelly) Exiting work loop.
2019-11-27 17:23:13.827 Status: (Shelly) Stopping threads.
2019-11-27 17:23:13.829 Status: (Shelly) Stopped.
2019-11-27 17:23:13.829 Status: (Shelly) Started.
2019-11-27 17:23:13.993 Status: (Shelly) Initialized version 0.3.3
2019-11-27 17:23:13.993 Status: (Shelly) Entering work loop.
2019-11-27 17:23:14.048 (Shelly) MQTT connected successfully.
2019-11-27 17:23:14.048 (Shelly) MqttClient::Connect
2019-11-27 17:23:14.048 (Shelly) MQTT CONNECT ID: 'Domoticz_1574871793_7852'
2019-11-27 17:23:14.099 (Shelly) MqttClient::Subscribe
2019-11-27 17:23:14.150 (Shelly) onMQTTSubscribed
2019-11-27 17:23:14.154 (Shelly) MQTT message: shellies/shellyflood-765367/sensor/temperature 23.38
2019-11-27 17:23:14.155 (Shelly) MQTT message: shellies/shellyflood-765367/sensor/flood False
2019-11-27 17:23:14.155 (Shelly) MQTT message: shellies/shellyflood-765367/sensor/battery 96
2019-11-27 17:23:24.026 (Shelly) Heartbeating...
2019-11-27 17:23:24.026 (Shelly) MqttClient::Ping
Any advice, please?
lwolf
Posts: 216
Joined: Saturday 10 November 2018 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Hungary
Contact:

Re: Python Plugin: Shelly MQTT

Post by lwolf »

elektrikal wrote: Monday 25 November 2019 17:48 Thank you asquelt for adding the dimmer in plugin.py, it works fine
I hope eventually i can also test it.. Shelly postponed my order shipping to december. :(
lwolf
Posts: 216
Joined: Saturday 10 November 2018 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Hungary
Contact:

Re: Python Plugin: Shelly MQTT

Post by lwolf »

Olgmo wrote: Wednesday 27 November 2019 18:15
The log show that the messages are received after restarting the shelly plugin.

Code: Select all

2019-11-27 17:23:14.099 (Shelly) MqttClient::Subscribe
2019-11-27 17:23:14.150 (Shelly) onMQTTSubscribed
2019-11-27 17:23:14.154 (Shelly) MQTT message: shellies/shellyflood-765367/sensor/temperature 23.38
2019-11-27 17:23:14.155 (Shelly) MQTT message: shellies/shellyflood-765367/sensor/flood False
2019-11-27 17:23:14.155 (Shelly) MQTT message: shellies/shellyflood-765367/sensor/battery 96
2019-11-27 17:23:24.026 (Shelly) Heartbeating...
2019-11-27 17:23:24.026 (Shelly) MqttClient::Ping
Any advice, please?
Interesting. I have just tested your MQTT messages and it works to me. (Domoticz V4.11334, Ubuntu Linux 18.04)

Code: Select all

2019-11-29 21:19:01.285 (shelly) Received 48 bytes of data
2019-11-29 21:19:01.285 (shelly) 30 2e 00 28 73 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 66 0..(shellies/shellyf
2019-11-29 21:19:01.285 (shelly) 6c 6f 6f 64 2d 37 36 35 33 36 37 2f 73 65 6e 73 6f 72 2f 66 lood-765367/sensor/f
2019-11-29 21:19:01.285 (shelly) 6c 6f 6f 64 54 72 75 65 .. .. .. .. .. .. .. .. .. .. .. .. loodTrue
2019-11-29 21:19:01.285 (shelly) MQTT message: shellies/shellyflood-765367/sensor/flood True
2019-11-29 21:19:01.285 (shelly) Creating device 'shellyflood-765367-flood'.
2019-11-29 21:19:01.286 (shelly - shellyflood-765367-flood) Updating device from 0:'' to have values 0:'false'.
2019-11-29 21:19:01.288 (shelly - shellyflood-765367-flood) Updating device from 0:'false' to have values 1:'On'.
2019-11-29 21:19:02.093 (shelly) Heartbeating... 
The "updating" section is completely missing from your logs (or your debug level in Domoticz is not high enough to see anything useful), there can be some error finding or creating devices in Domoticz.
How many shelly devices do you already have inside Domoticz?
Olgmo
Posts: 23
Joined: Tuesday 28 June 2016 12:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Norway
Contact:

Re: Python Plugin: Shelly MQTT

Post by Olgmo »

Additional verbose debug info to my post above where device is not added.

Here I first disabled the mqtt in shelly_flood.
Then enabled the verbose debugging, before enable the mqtt again in Shelly.
This is what came in the log (I removed other unit then the one in question)

I'm running on a RPi3
Any advice is welcome.

Code: Select all

2019-11-30 09:45:50.153 Status: (Shelly) Stopping threads.
2019-11-30 09:45:50.153 Status: (Shelly) Stopped.

2019-11-30 09:46:03.925 Status: (Shelly) Started.
2019-11-30 09:46:04.164 (Shelly) Debug logging mask set to: PYTHON PLUGIN DEVICE CONNECTION MESSAGE
2019-11-30 09:46:04.164 (Shelly) MqttClient::__init__
2019-11-30 09:46:04.164 (Shelly) MqttClient::Open
2019-11-30 09:46:04.164 (Shelly) Heartbeat interval set to: 10.
2019-11-30 09:46:04.164 (Shelly) Protocol set to: 'MQTT'.
2019-11-30 09:46:04.164 (Shelly) Transport set to: 'TCP/IP', 127.0.0.1:1883.
2019-11-30 09:46:04.164 (Shelly) Connect directive received, action initiated successfully.
2019-11-30 09:46:04.214 (Shelly) MQTT connected successfully.
2019-11-30 09:46:04.215 (Shelly) MqttClient::Connect
2019-11-30 09:46:04.215 (Shelly) MQTT CONNECT ID: 'Domoticz_1575103564_7798'
2019-11-30 09:46:04.215 (Shelly) Sending 52 bytes of data
2019-11-30 09:46:04.215 (Shelly) 10 32 00 04 4d 51 54 54 04 c2 00 3c 00 18 44 6f 6d 6f 74 69 .2..MQTT.�.<..Domoti
2019-11-30 09:46:04.215 (Shelly) 63 7a 5f 31 35 37 35 31 30 33 35 36 34 5f 37 37 39 38 00 04 cz_1575103564_7798..
2019-11-30 09:46:04.215 (Shelly) 6d 71 74 74 00 06 31 31 31 31 31 31 .. .. .. .. .. .. .. .. mqtt..111111
2019-11-30 09:46:04.215 (Shelly) Received 4 bytes of data
2019-11-30 09:46:04.215 (Shelly) 20 02 00 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ....
2019-11-30 09:46:04.215 (Shelly) MqttClient::Subscribe
2019-11-30 09:46:04.215 (Shelly) Sending 17 bytes of data
2019-11-30 09:46:04.216 (Shelly) 82 0f 00 01 00 0a 73 68 65 6c 6c 69 65 73 2f 23 00 .. .. .. �.....shellies/#.
2019-11-30 09:46:04.216 (Shelly) Received 5 bytes of data
2019-11-30 09:46:04.216 (Shelly) 90 03 00 01 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �....
2019-11-30 09:46:04.216 (Shelly) onMQTTSubscribed
2019-11-30 09:46:04.266 (Shelly) Received 152 bytes of data
2019-11-30 09:46:04.266 (Shelly) 31 35 00 2e 73 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 66 15..shellies/shellyf
2019-11-30 09:46:04.266 (Shelly) 6c 6f 6f 64 2d 37 36 35 33 36 37 2f 73 65 6e 73 6f 72 2f 74 lood-765367/sensor/t
2019-11-30 09:46:04.266 (Shelly) 65 6d 70 65 72 61 74 75 72 65 32 33 2e 33 38 31 2f 00 28 73 emperature23.381/.(s
2019-11-30 09:46:04.266 (Shelly) 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 66 6c 6f 6f 64 2d hellies/shellyflood-
2019-11-30 09:46:04.266 (Shelly) 37 36 35 33 36 37 2f 73 65 6e 73 6f 72 2f 66 6c 6f 6f 64 66 765367/sensor/floodf
2019-11-30 09:46:04.266 (Shelly) 61 6c 73 65 31 2e 00 2a 73 68 65 6c 6c 69 65 73 2f 73 68 65 alse1..*shellies/she
2019-11-30 09:46:04.266 (Shelly) 6c 6c 79 66 6c 6f 6f 64 2d 37 36 35 33 36 37 2f 73 65 6e 73 llyflood-765367/sens
2019-11-30 09:46:04.266 (Shelly) 6f 72 2f 62 61 74 74 65 72 79 39 36 .. .. .. .. .. .. .. .. or/battery96
2019-11-30 09:46:04.269 (Shelly) MQTT message: shellies/shellyflood-765367/sensor/temperature 23.38
2019-11-30 09:46:04.269 (Shelly) MQTT message: shellies/shellyflood-765367/sensor/flood False
2019-11-30 09:46:04.269 (Shelly) MQTT message: shellies/shellyflood-765367/sensor/battery 96
2019-11-30 09:46:04.159 Status: (Shelly) Initialized version 0.3.3
2019-11-30 09:46:04.159 Status: (Shelly) Entering work loop.
2019-11-30 09:46:14.188 (Shelly) Heartbeating...
2019-11-30 09:46:14.188 (Shelly) MqttClient::Ping
2019-11-30 09:46:14.188 (Shelly) Sending 2 bytes of data
2019-11-30 09:46:14.188 (Shelly) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �.
2019-11-30 09:46:14.239 (Shelly) Received 2 bytes of data
2019-11-30 09:46:14.239 (Shelly) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �.
2019-11-30 09:46:24.168 (Shelly) Heartbeating...
2019-11-30 09:46:24.168 (Shelly) MqttClient::Ping
2019-11-30 09:46:24.169 (Shelly) Sending 2 bytes of data
2019-11-30 09:46:24.169 (Shelly) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �.
2019-11-30 09:46:24.219 (Shelly) Received 2 bytes of data
2019-11-30 09:46:24.219 (Shelly) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �.
2019-11-30 09:46:29.078 (Shelly) Received 43 bytes of data
2019-11-30 09:46:29.078 (Shelly) 30 29 00 22 73 68 65 6c 6c 69 65 73 2f 73 68 65 6c 6c 79 66 0)."shellies/shellyf
2019-11-30 09:46:29.078 (Shelly) 6c 6f 6f 64 2d 37 36 35 33 36 37 2f 6f 6e 6c 69 6e 65 66 61 lood-765367/onlinefa
2019-11-30 09:46:29.078 (Shelly) 6c 73 65 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. lse
2019-11-30 09:46:29.079 (Shelly) MQTT message: shellies/shellyflood-765367/online False
2019-11-30 09:46:34.187 (Shelly) Heartbeating...
2019-11-30 09:46:34.188 (Shelly) MqttClient::Ping
2019-11-30 09:46:34.188 (Shelly) Sending 2 bytes of data
2019-11-30 09:46:34.188 (Shelly) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �.
2019-11-30 09:46:34.238 (Shelly) Received 2 bytes of data
2019-11-30 09:46:34.238 (Shelly) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �.
2019-11-30 09:46:44.207 (Shelly) Heartbeating...
2019-11-30 09:46:44.208 (Shelly) MqttClient::Ping
2019-11-30 09:46:44.208 (Shelly) Sending 2 bytes of data
2019-11-30 09:46:44.208 (Shelly) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �.
2019-11-30 09:46:44.258 (Shelly) Received 2 bytes of data
2019-11-30 09:46:44.258 (Shelly) d0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �.

lwolf
Posts: 216
Joined: Saturday 10 November 2018 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Hungary
Contact:

Re: Python Plugin: Shelly MQTT

Post by lwolf »

Olgmo wrote: Friday 29 November 2019 23:27 Then enabled the verbose debugging, before enable the mqtt again in Shelly.
This is what came in the log (I removed other unit then the one in question)
Log seems ok, except that there are no sign of device creation, nor error messages.
Again: do you have any Shelly devices already in domoticz and how many? Can you add any other shelly unit to Domoticz?
Olgmo
Posts: 23
Joined: Tuesday 28 June 2016 12:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Norway
Contact:

Re: Python Plugin: Shelly MQTT

Post by Olgmo »

lwolf wrote: Saturday 30 November 2019 19:07
Olgmo wrote: Friday 29 November 2019 23:27 Then enabled the verbose debugging, before enable the mqtt again in Shelly.
This is what came in the log (I removed other unit then the one in question)
Log seems ok, except that there are no sign of device creation, nor error messages.
Again: do you have any Shelly devices already in domoticz and how many? Can you add any other shelly unit to Domoticz?
Thanks for looking at my logs file.
Yes, I have already for some month ago added two shelly1 og one Shelly2.5 which was added with this plugin.
The "Accept new hardware device" is always ON.
Also checked and updated the plugin.
Olgmo
Posts: 23
Joined: Tuesday 28 June 2016 12:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Norway
Contact:

Re: Python Plugin: Shelly MQTT

Post by Olgmo »

Olgmo wrote: Sunday 01 December 2019 13:47
lwolf wrote: Saturday 30 November 2019 19:07
Olgmo wrote: Friday 29 November 2019 23:27 Then enabled the verbose debugging, before enable the mqtt again in Shelly.
This is what came in the log (I removed other unit then the one in question)
Log seems ok, except that there are no sign of device creation, nor error messages.
Again: do you have any Shelly devices already in domoticz and how many? Can you add any other shelly unit to Domoticz?
Thanks for looking at my logs file.
Yes, I have already for some month ago added two shelly1 og one Shelly2.5 which was added with this plugin.
The "Accept new hardware device" is always ON.
Also checked and updated the plugin.
SOLVED! I had to delete the old plugin and reinstall the latest version. Then every unit was added again, including flood.
lwolf
Posts: 216
Joined: Saturday 10 November 2018 18:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Hungary
Contact:

Re: Python Plugin: Shelly MQTT

Post by lwolf »

Olgmo wrote: Sunday 01 December 2019 14:43 SOLVED! I had to delete the old plugin and reinstall the latest version. Then every unit was added again, including flood.
Thank you for feedback, than maybe the plugin.py was not the newest version, as Flood support added recently.
mozo78
Posts: 22
Joined: Friday 09 June 2017 6:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by mozo78 »

lwolf wrote: Friday 15 November 2019 22:38
djdevil wrote: Wednesday 13 November 2019 16:41 Hi everyone there is someone who managed to integrate Shelly Em? So it is possible to do it with MTTQ server in Home Assistant, would it be possible to do it in domoticz? thanks
I do not have this device so i am unable to test. But blazoncek implemented it and merged in ShellyMQTT code at 2019 Oct. 2.
https://github.com/enesbcs/Shelly_MQTT/pull/30
https://github.com/enesbcs/Shelly_MQTT/issues/11
Hi,Yes implemented it but not properly. It is look like a Shelly 2. With a switch, two voltage measuring (I have only one clip installed), but without Energy and consumption.

In the log there is an error message:

2019-12-01 15:48:54.154 Error: dzVents: Error: (2.5.1) Discarding device. No last update info found: {["data"]={["icon"]="current", ["hardwareType"]="Shelly MQTT", ["voltage"]=220.16000366211, ["hardwareTypeValue"]=94, ["hardwareName"]="Sheely _teszt", ["hardwareID"]=2605168, ["_nValue"]=0, ["protected"]=false, ["unit"]=38, ["_state"]="220.16"}, ["changed"]=true, ["deviceID"]="", ["switchTypeValue"]=0, ["deviceType"]="General", ["subType"]="Voltage", ["name"]="Sheely _teszt - shellyem-B9F3F7-1-voltage", ["lastUpdate"]="", ["lastLevel"]=255, ["id"]=1005, ["description"]="", ["protected"]=true, ["signalLevel"]=13217040, ["switchType"]="On/Off", ["batteryLevel"]=0, ["rawData"]={"220.16"}, ["timedOut"]=false, ["baseType"]="device"}

One more thing. I updated the plugin, and a lot of new previously installed shelly appeared.
hw_shelly.png
hw_shelly.png (29.48 KiB) Viewed 2317 times
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Google [Bot] and 1 guest