Python Plugin: Shelly MQTT

Python and python framework

Moderator: leecollings

Post Reply
salvacalatayud
Posts: 112
Joined: Monday 26 June 2017 21:16
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Spain
Contact:

Re: Python Plugin: Shelly MQTT

Post by salvacalatayud »

minime wrote:I don't think so:

Code: Select all

Supported devices

Tested and working with:

    Shelly 1 Open Source (relay)
    Shelly Plug (relay and power consumption reporting)
    Shelly2 Switch (relay and roller shutter mode, positioning)
    Shelly4 Pro (relay and power consumption reporting)
    Shelly H&T
...
Ok, thanks

Enviado desde mi Mi A2 mediante Tapatalk

Gerwin
Posts: 84
Joined: Friday 12 August 2016 13:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by Gerwin »

hello,
i have a problem if i installed this plugin domoticz stop working right away

domoticz installed on raspberry
version 4.9700
python 3.4.4

is there someone they can help me

Gerwin
salopette
Posts: 187
Joined: Tuesday 07 March 2017 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Germany
Contact:

Re: Python Plugin: Shelly MQTT

Post by salopette »

You have to use the last beta and Python version from 3.5.
Gerwin
Posts: 84
Joined: Friday 12 August 2016 13:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by Gerwin »

That's strange ,
Look the picture
Here looks that it is possible with my preference
Gerwin
Attachments
Screenshot_20190316-082906.png
Screenshot_20190316-082906.png (157.64 KiB) Viewed 4707 times
leby
Posts: 98
Joined: Monday 28 July 2014 9:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Stockholm
Contact:

Re: Python Plugin: Shelly MQTT

Post by leby »

Anyone that have got the Shelly RGBW to be discovered with the plugin? I know its not listed but, still?
/lennart
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 »

Gerwin wrote: Wednesday 13 March 2019 19:24 That's strange ,
Look the picture
Here looks that it is possible with my preference
Gerwin
I have tested this plugin with Ubuntu 18.04 and Raspbian Stretch Linux, Python3.4.2 and Python 3.5.3 with Domoticz 4.9700 and 4.10427.
(However, for example Python 3.4.4 is published in 2015 and when i last checked my calendar it is 2019 now)

So it is up to you to debug the Verbose log file, that the Domoticz provides, than you will have some clue why your python environment does not work properly.
https://github.com/enesbcs/Shelly_MQTT/issues/5
Gerwin
Posts: 84
Joined: Friday 12 August 2016 13:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by Gerwin »

Iwolf

thanks for your answer

Gerwin
minime
Posts: 18
Joined: Thursday 15 November 2018 15:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by minime »

Lwolf
do you plan to integrate shelly RGBW2 and the smoke (when its available) too?
I'ld like to see it supported too.

thanks in advance
minime
Posts: 18
Joined: Thursday 15 November 2018 15:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by minime »

@lwolf, thanks alot! Happy to see RGBW2 support
I'll test this evening
rafek
Posts: 7
Joined: Tuesday 24 April 2018 10:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Contact:

Re: Python Plugin: Shelly MQTT

Post by rafek »

Hello,
first of all i thanks lwolf for your job on the Shelly MQTT Plugin.
Yesterday i configured Selly 2.5 like roller shutter and i have question:
Is it possible to reverse the open / close function in domoticz switches ?

My observation:
- when push close blinds - Venetian Blinds EU
2019-04-14 09:42:33.018 Status: User: Admin initiated a switch command (1598/Shelly-MQTT - shellyswitch25-5DBB09-0-roller/On)
2019-04-14 09:42:33.046 (Shelly-MQTT) Command: On (0) Color:
2019-04-14 09:42:33.047 (Shelly-MQTT) MqttClient::publish shellies/shellyswitch25-5DBB09/roller/0/command (open)
2019-04-14 09:42:33.098 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/roller/0/command open
2019-04-14 09:42:33.299 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/roller/0 open
2019-04-14 09:42:35.509 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/roller/0 stop

- when push close blinds - Blinds Percentage
2019-04-14 09:43:41.802 Status: User: Admin initiated a switch command (1599/Shelly-MQTT - shellyswitch25-5DBB09-0-pos/On)
2019-04-14 09:43:41.816 (Shelly-MQTT) Command: On (100) Color:
2019-04-14 09:43:41.817 (Shelly-MQTT) MqttClient::publish shellies/shellyswitch25-5DBB09/roller/0/command (open)
2019-04-14 09:43:41.868 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/roller/0/command open
2019-04-14 09:43:42.069 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/roller/0 open
2019-04-14 09:43:44.480 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/roller/0 stop

- status when roroller shutter is opened
2019-04-14 09:44:14.488 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/roller/0 stop
2019-04-14 09:44:14.489 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/roller/0/pos 100
2019-04-14 09:44:14.496 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/relay/power 0.0
2019-04-14 09:44:14.500 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/relay/energy 528
2019-04-14 09:44:14.504 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/input/0 1
2019-04-14 09:44:14.505 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/input/1 1
2019-04-14 09:44:14.505 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/temperature 51.61
2019-04-14 09:44:14.506 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/overtemperature 0

Domoticz installed on raspberry
version 4.9700
pi@rpi3:~ $ /usr/bin/python3 -V
Python 3.5.3


best regards
rafek
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 »

rafek wrote: Sunday 14 April 2019 10:10 Hello,
first of all i thanks lwolf for your job on the Shelly MQTT Plugin.
Yesterday i configured Selly 2.5 like roller shutter and i have question:
Is it possible to reverse the open / close function in domoticz switches ?

My observation:
- when push close blinds - Venetian Blinds EU
2019-04-14 09:42:33.018 Status: User: Admin initiated a switch command (1598/Shelly-MQTT - shellyswitch25-5DBB09-0-roller/On)
2019-04-14 09:42:33.046 (Shelly-MQTT) Command: On (0) Color:
2019-04-14 09:42:33.047 (Shelly-MQTT) MqttClient::publish shellies/shellyswitch25-5DBB09/roller/0/command (open)
2019-04-14 09:42:33.098 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/roller/0/command open
2019-04-14 09:42:33.299 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/roller/0 open
2019-04-14 09:42:35.509 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/roller/0 stop

- when push close blinds - Blinds Percentage
2019-04-14 09:43:41.802 Status: User: Admin initiated a switch command (1599/Shelly-MQTT - shellyswitch25-5DBB09-0-pos/On)
2019-04-14 09:43:41.816 (Shelly-MQTT) Command: On (100) Color:
2019-04-14 09:43:41.817 (Shelly-MQTT) MqttClient::publish shellies/shellyswitch25-5DBB09/roller/0/command (open)
2019-04-14 09:43:41.868 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/roller/0/command open
2019-04-14 09:43:42.069 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/roller/0 open
2019-04-14 09:43:44.480 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/roller/0 stop

- status when roroller shutter is opened
2019-04-14 09:44:14.488 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/roller/0 stop
2019-04-14 09:44:14.489 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/roller/0/pos 100
2019-04-14 09:44:14.496 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/relay/power 0.0
2019-04-14 09:44:14.500 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/relay/energy 528
2019-04-14 09:44:14.504 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/input/0 1
2019-04-14 09:44:14.505 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/input/1 1
2019-04-14 09:44:14.505 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/temperature 51.61
2019-04-14 09:44:14.506 (Shelly-MQTT) MQTT message: shellies/shellyswitch25-5DBB09/overtemperature 0

Domoticz installed on raspberry
version 4.9700
pi@rpi3:~ $ /usr/bin/python3 -V
Python 3.5.3


best regards
rafek
I could do that, but it is specifically asked to work in this way initially:
https://www.domoticz.com/forum/viewtopi ... 20#p202345

As i know, inverting can be setted in the Shelly2-2.5 web GUI.
minime
Posts: 18
Joined: Thursday 15 November 2018 15:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by minime »

Hi there,

I'm using this plugin for a time now.
Now I want to do some Lua programming to interact with other devices, but I'm not as familar with it.

I'm able to turn an RGB Stripe on and off when another shelly device is switching by using

commandArray['RGBWTestdevice] = 'On'
commandArray['RGBWTestdevice] = 'Off'

I'm searching for someting like setBrightness or changing the Color. Can you give me some hints doing that?

Thanks in advance
sic79
Posts: 5
Joined: Thursday 12 January 2017 12:32
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by sic79 »

Great plugin, but I cant seem to get on/off working on my ”Shelly Plug s”. Anyone tried to get that working?
KnatteAnka
Posts: 1
Joined: Tuesday 28 May 2019 17:35
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by KnatteAnka »

Hi is it possible to add Shelly2led ?
(mqtt commands)
Brightness levels:
Topic: shellies/Shelly2LED-1EF9D5/color/0/set payload: { "brightness":number}
and on/off
Topic: shellies/Shelly2LED-1EF9D5/color/0/command payload: "on" or "off"

unit typ should be switch dimmer (not RGBW as it detects right now)

(can detect currently if its on/off + brightness)
minime
Posts: 18
Joined: Thursday 15 November 2018 15:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by minime »

@sic79 as far as I know, Plug S is not supported at the moment, also Smoke is not.
Maybe Lwolf will add this some time!?

That'd be wonderful :)
minime
Posts: 18
Joined: Thursday 15 November 2018 15:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by minime »

by the way lwolf, is there any chance to get the "longpush" Event supported by your plugin for Shelly1 and/or 2?
I've seen this in the mqtt debug lines?
2019-05-28 22:14:02.369 (Shelly_MQTT) MQTT message: shellies/shelly1-XXXXX/longpush/0 1

Maybe it is supported as well, than I'ld like to ask how to use it in blockly?

Thanks in advance
sic79
Posts: 5
Joined: Thursday 12 January 2017 12:32
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by sic79 »

minime wrote:@sic79 as far as I know, Plug S is not supported at the moment, also Smoke is not.
Maybe Lwolf will add this some time!?

That'd be wonderful :)
Ok, well then lets just wait and see :).
Masure
Posts: 35
Joined: Sunday 22 April 2018 11:23
Target OS: Windows
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by Masure »

Hi,

Do you plan to support Shelly EM for energy monitoring ?
https://shelly.cloud/product/wifi-smart ... rgy-meter/
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 »

Masure wrote: Wednesday 29 May 2019 19:19 Do you plan to support Shelly EM for energy monitoring ?
https://bitekmindenhol.blog.hu/2019/05/02/support_236
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 »

minime wrote: Tuesday 28 May 2019 22:11 @sic79 as far as I know, Plug S is not supported at the moment, also Smoke is not.
Maybe Lwolf will add this some time!?
Sorry, I asked Smoke earlier from Allterco, but they could not send me one. So it falls under wontfix category.
https://github.com/enesbcs/Shelly_MQTT/issues/4
About new device support:
https://bitekmindenhol.blog.hu/2019/05/02/support_236
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests