Python Plugin : Broadlink RM2 V4

Python and python framework

Moderator: leecollings

Velly
Posts: 20
Joined: Sunday 22 October 2017 19:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Velly »

Hi @Zak45

Could you please clarify following :

1) Power State of my two Multiplugs is not syncronized with Domoticz: eg when I switch ON/OFF by key on Multiplug or use native broadlink or Alexa app - all current power states of each plug are not in sync with Domoticz dashboard state.
However I always see CORRECT power plug states in LOG check string.
This is big point for me, cause I am using plugs for UV lamps, Ozone generator, fans, humidifier etc - all this stuff is On by schedule when nobody home (ozone generator... UV...). I really care about working Ozone and UV for days...

2) When I turned DEBUG off I get
2018-02-06 19:42:45.220 Error: (Broadlink MP1 A3) check power error
2018-02-06 19:42:45.232 Error: (Broadlink MP1 70) check power error
every hour. Before (Debug ON) - only on startup once.

3) Now tried to use your pluging.py from Dropbox again (was using attached to post version):
2018-02-06 20:05:05.005 Error: (Broadlink MP1 A3) check power error
2018-02-06 20:05:05.012 Error: (Broadlink MP1 70) check power error
2018-02-06 20:05:31.104 Error: (Broadlink MP1 A3) Error getting temperature data from Broadlink device....Timeout
2018-02-06 20:05:31.210 Error: (Broadlink MP1 70) Error getting temperature data from Broadlink device....Timeout
every 5 mins

Is it trying to get TEMP info from multiplug devices?

I Have RM mini 3 without TEMP chosen..

Thank you!
Last edited by Velly on Friday 09 February 2018 14:14, edited 4 times in total.
Kruu
Posts: 49
Joined: Tuesday 17 January 2017 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Kruu »

zak45 wrote: Tuesday 06 February 2018 17:01 @Kruu

do you have selected the right device type ??
Capture.JPG
Yes, but when I set it like that, and after that double click that device that option is blank again (It wont be saved like that). And always I get like I have humidity sensor but I dont.
peterredl
Posts: 6
Joined: Saturday 03 February 2018 12:42
Target OS: Windows
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by peterredl »

@Zak45

Thank you very, very much.
Now it works!

Best Regards from Austria.
Peter
Kruu
Posts: 49
Joined: Tuesday 17 January 2017 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Kruu »

When I want to add device I get this:

https://www.dropbox.com/s/wy3t41bkdry96 ... 9.png?dl=0
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by zak45 »

Kruu wrote: Thursday 08 February 2018 19:53 When I want to add device I get this:

https://www.dropbox.com/s/wy3t41bkdry96 ... 9.png?dl=0
what is your Domoticz version ?
leandrosaltori
Posts: 23
Joined: Tuesday 06 February 2018 20:04
Target OS: Windows
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by leandrosaltori »

Guys, I do not know what else to do. I was thrilled with the idea of controlling the broadlink and syncing with Xiaomi cameras and gateways, but exhausted all my test possibilities.

I have already tried to install on 2 computers (Notebook / Desktop), with Windows 10 Pro, both to no avail.

The entire installation was in administrator mode.
After all installation, the HARDWARE / BROADLINK option does not appear.

Installed Items:
- Domoticz 3.8892
- Python-3.4.0
- pycrypto-2.6.1.win32-py3.4
- setup ( broadlink )

Note: in Windows 10 several versions of Python have been tested.

Windows 10:

Picture 1

---------------------------------------------------------------------------------------------------------------------
I also created a virtual machine and tried with Windows 8.1 and Windows 7: Note: in Windows 10 several versions of Python were tested.

Picture 2
-----------------------------------------------------------------------------------------------------------------
In Windows 8.1 when I went to install "setup.exe" it presents an error:

"This application can not be run on your PC
To locate a version for your PC, consult your software vendor.

Even with the error, I opened Domoticz, and of course, I do not find the broadlink hardware.

Picture 3
--------------------------------------------------------------------------------------------------------
In Windows 7, every installation seems to go well.
The "setup.exe" only opens and closes quickly, it does not display any error screen as in Windows 10:

Picture 4
Picture 5

But when I open Domoticz, the broadlink hardware does not appear either ...

Should I give up, I know the forum discussion is already old. Does anyone still use this Domoticz with broadlink?
ATTACHMENTS
1.png
Windows 10 - Picture 1
1.png (57.05 KiB) Viewed 9 times
Attachments
3.png
3.png (226.45 KiB) Viewed 3876 times
2.png
2.png (85.62 KiB) Viewed 3876 times
1.png
1.png (57.05 KiB) Viewed 3876 times
Kruu
Posts: 49
Joined: Tuesday 17 January 2017 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Kruu »

zak45 wrote: Friday 09 February 2018 17:45
Kruu wrote: Thursday 08 February 2018 19:53 When I want to add device I get this:

https://www.dropbox.com/s/wy3t41bkdry96 ... 9.png?dl=0
what is your Domoticz version ?
Version: 3.8153
CLEMENT99
Posts: 36
Joined: Friday 26 January 2018 9:18
Target OS: Windows
Domoticz version: BETA
Location: Brussels
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by CLEMENT99 »

Windows 10 -> copy the new plugin + change hardware (device type) -> works perfect.

Now I try to setup the A1 but I get the following error:
2018-02-09 19:19:29.365 Error: (Br-A1) Error Connecting to Broadlink device....192.xxx.xxx.xxx

I'm sure that the IP address is working (respond to the ping).
Have I forgotten something?

EDIT: Yes mac address was wrong, needs to be without ::::: :oops:
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by zak45 »

Kruu wrote: Friday 09 February 2018 18:37
zak45 wrote: Friday 09 February 2018 17:45
Kruu wrote: Thursday 08 February 2018 19:53 When I want to add device I get this:

https://www.dropbox.com/s/wy3t41bkdry96 ... 9.png?dl=0
what is your Domoticz version ?
Version: 3.8153
you need 3.87xx or +
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by zak45 »

@leandrosaltori
you need python 3.5.4 x86 installed for all users & include in the path
show me output of this command :
pip --version
Kruu
Posts: 49
Joined: Tuesday 17 January 2017 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Kruu »

zak45 wrote: Friday 09 February 2018 19:46
Kruu wrote: Friday 09 February 2018 18:37
zak45 wrote: Friday 09 February 2018 17:45

what is your Domoticz version ?
Version: 3.8153
you need 3.87xx or +
Uh, sorry missed that out. Do I need to replace only plugin.py and restart domoticz?

Thanks
lplugo
Posts: 14
Joined: Sunday 11 February 2018 13:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by lplugo »

Hello guys,

I've updated the newest version of standalon and beta on raspberry pi3 and want to setup my broadlink rm3 pro but it's not in the HW list.
The log file show this:
Domoticz - Broadlink log:

2018-02-10 17:28:49.665 Error: PluginList: Parsing '/home/pi/domoticz/plugins/BroadlinkRM2/', 'Error document empty.' at line 0 column 0 in XML ''.

Do you have any idea?

Thank you!
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by zak45 »

lplugo wrote: Sunday 11 February 2018 13:12 Hello guys,

I've updated the newest version of standalon and beta on raspberry pi3 and want to setup my broadlink rm3 pro but it's not in the HW list.
The log file show this:
Domoticz - Broadlink log:

2018-02-10 17:28:49.665 Error: PluginList: Parsing '/home/pi/domoticz/plugins/BroadlinkRM2/', 'Error document empty.' at line 0 column 0 in XML ''.

Do you have any idea?

Thank you!
maybe check rights ...?
lplugo
Posts: 14
Joined: Sunday 11 February 2018 13:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by lplugo »

zak45 wrote: Sunday 11 February 2018 14:03
lplugo wrote: Sunday 11 February 2018 13:12 Hello guys,

I've updated the newest version of standalon and beta on raspberry pi3 and want to setup my broadlink rm3 pro but it's not in the HW list.
The log file show this:
Domoticz - Broadlink log:

2018-02-10 17:28:49.665 Error: PluginList: Parsing '/home/pi/domoticz/plugins/BroadlinkRM2/', 'Error document empty.' at line 0 column 0 in XML ''.

Do you have any idea?

Thank you!
maybe check rights ...?
What do you mean "check rights"? Where and how? (Sorry I'm beginner)
And in other case there isn't any xml in this folder.
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by zak45 »

lplugo wrote: Sunday 11 February 2018 14:15 What do you mean "check rights"? Where and how? (Sorry I'm beginner)
on the plugin folder, with the chmod command..I work on windows so not same problem.

lplugo wrote: Sunday 11 February 2018 14:15 And in other case there isn't any xml in this folder.
Normal, included into the plugin.py
lplugo
Posts: 14
Joined: Sunday 11 February 2018 13:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by lplugo »

zak45 wrote: Sunday 11 February 2018 15:06
lplugo wrote: Sunday 11 February 2018 14:15 What do you mean "check rights"? Where and how? (Sorry I'm beginner)
on the plugin folder, with the chmod command..I work on windows so not same problem.

lplugo wrote: Sunday 11 February 2018 14:15 And in other case there isn't any xml in this folder.
Normal, included into the plugin.py
Good Idea, I will check the permission.

...and could you copy to me what is in your xml 0 line?
lplugo
Posts: 14
Joined: Sunday 11 February 2018 13:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by lplugo »

lplugo wrote: Sunday 11 February 2018 15:11
zak45 wrote: Sunday 11 February 2018 15:06
lplugo wrote: Sunday 11 February 2018 14:15 What do you mean "check rights"? Where and how? (Sorry I'm beginner)
on the plugin folder, with the chmod command..I work on windows so not same problem.

lplugo wrote: Sunday 11 February 2018 14:15 And in other case there isn't any xml in this folder.
Normal, included into the plugin.py
Good Idea, I will check the permission.

...and could you copy to me what is in your xml 0 line?
I found an xml on https://pypi.python.org/pypi/broadlink ( https://pypi.python.org/pypi?:action=do ... ersion=0.6)
and put into the Pi/domoticz/plugins/BroadlinkRM2 folder but the error message is same. :(
lplugo
Posts: 14
Joined: Sunday 11 February 2018 13:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by lplugo »

lplugo wrote: Sunday 11 February 2018 20:55
lplugo wrote: Sunday 11 February 2018 15:11
zak45 wrote: Sunday 11 February 2018 15:06
on the plugin folder, with the chmod command..I work on windows so not same problem.



Normal, included into the plugin.py
Good Idea, I will check the permission.

...and could you copy to me what is in your xml 0 line?
I found an xml on https://pypi.python.org/pypi/broadlink ( https://pypi.python.org/pypi?:action=do ... ersion=0.6)
and put into the Pi/domoticz/plugins/BroadlinkRM2 folder but the error message is same. :(
So no idea :cry:
Velly
Posts: 20
Joined: Sunday 22 October 2017 19:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Velly »

Anybody with MP1 on V4 (Raspberry, Python 3.4):
are your MP1 plugs POWER STATE synced well with Domoticz?
Thanks!
lplugo
Posts: 14
Joined: Sunday 11 February 2018 13:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by lplugo »

lplugo wrote: Monday 12 February 2018 15:41
lplugo wrote: Sunday 11 February 2018 20:55
lplugo wrote: Sunday 11 February 2018 15:11

Good Idea, I will check the permission.

...and could you copy to me what is in your xml 0 line?
I found an xml on https://pypi.python.org/pypi/broadlink ( https://pypi.python.org/pypi?:action=do ... ersion=0.6)
and put into the Pi/domoticz/plugins/BroadlinkRM2 folder but the error message is same. :(
So no idea :cry:
I installed it on another Pi but the problem is the same. No Broadlink device in Hardware list.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest