Python Plugin : Broadlink RM2 V4

Python and python framework

Moderator: leecollings

corederoma82
Posts: 85
Joined: Saturday 14 January 2017 21:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by corederoma82 »

corederoma82 wrote: Wednesday 16 January 2019 9:56
zak45 wrote: Sunday 06 January 2019 1:11
corederoma82 wrote: Sunday 06 January 2019 0:20 I select device "discovery" and Domoticz says me that I will found it in device tab..... But there is nothing in device tab and in switches tab....
Discovery scan the network and display information into the Domoticz log.
Nothing....the only information that log give me is this:
Some ideas for this?
Raspberry PI 3, 3x Yeelight bulbs, 1x Yeeligh led strip, 1x Sonoff with ESP826, Controlicz, Kodi
welby
Posts: 36
Joined: Monday 20 November 2017 3:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Australia
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by welby »

Mine actually works with IR devices i've just worked out but not RF which is what i wanted it for. So i've been playing around a bit and managed to import an already learned RF device. As per the wiki grab these three files jsonSubIr jsonButton jsonIrCode from /broadlink/newremote/SharedData/ on your phone. Put the files into the import directory of the Broadlink plugin then hit the generate button in the Broadlink import selector switch in domoticz, then the import button which is right next to it and they should appear in unused devices.
saulysss
Posts: 2
Joined: Sunday 06 November 2016 22:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by saulysss »

2019-01-19 20:14:36.800 Status: Domoticz V4.9700 (c)2012-2018 GizMoCuz
2019-01-19 20:14:36.800 Status: Build Hash: a3a45906, Date: 2018-06-23 15:24:51
2019-01-19 20:14:36.801 Status: Startup Path: /home/pi/domoticz/
2019-01-19 20:14:37.097 Active notification Subsystems: gcm, http (2/13)
2019-01-19 20:14:37.120 Starting shared server on: :::6144
2019-01-19 20:14:37.085 Status: PluginSystem: Started, Python version '3.5.3'.
2019-01-19 20:14:37.099 Status: WebServer(HTTP) started on address: :: with port 8080
2019-01-19 20:14:37.116 Status: WebServer(SSL) started on address: :: with port 443
2019-01-19 20:14:37.118 Status: Proxymanager started.
2019-01-19 20:14:37.121 Status: TCPServer: shared server started...
2019-01-19 20:14:37.121 Status: RxQueue: queue worker started...
2019-01-19 20:14:39.122 Status: (Remote) Started.
2019-01-19 20:14:39.123 Status: EventSystem: reset all events...
2019-01-19 20:14:39.124 Status: EventSystem: reset all device statuses...
2019-01-19 20:14:39.326 Status: Python EventSystem: Initalizing event module.
2019-01-19 20:14:39.326 Status: EventSystem: Started
2019-01-19 20:14:39.326 Status: EventSystem: Queue thread started...
2019-01-19 20:14:39.359 Status: PluginSystem: Entering work loop.
2019-01-19 20:14:40.560 Status: (Remote) Entering work loop.
2019-01-19 20:14:40.560 Status: (Remote) Initialized version 4.1.0, author 'zak45'

Here is my log , Raspberry PI Raspbian OS based system , any ideas to make it work ? (no device appears , when i add hardware , also when try to remove hardware Domoticz hangs)
Edit: Finaly works , solution is just older 2018-04-18-raspbian-stretch-lite , and all works ....
NomenNescio
Posts: 8
Joined: Saturday 01 July 2017 13:43
Target OS: Windows
Domoticz version: v4.9700
Location: Nederland
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by NomenNescio »

Since a couple of days I cannot control a Broadlink RM2 anymore with Domoticz.
The RM2 responds on IHC app but no responds with this plugin.
a piece of the log:

2019-01-22 07:12:06.320 Status: User: Ruud initiated a switch command (31/Broadlink versterker - power/On)

2019-01-22 07:12:07.336 (Broadlink versterker) Pushing 'onCommandCallback' on to queue

2019-01-22 07:12:07.398 (Broadlink versterker) Processing 'onCommandCallback' message

2019-01-22 07:12:07.398 (Broadlink versterker) Calling message handler 'onCommand'.

2019-01-22 07:12:07.398 (Broadlink versterker) onCommand called for Unit 6: Parameter 'On', Level: 0 , Connected : False

2019-01-22 07:12:07.398 (Broadlink versterker) Generate on Command for learned code stored on unit/ini :6

2019-01-22 07:12:07.398 (Broadlink versterker) Code loaded : 260098000001299313371312141114111436141213121411141114361437133713121436143614361412133713371436141114111412133713371411141114111437133713371411140005150001294913000c550001294914000c540001294914000c550001284914000c550001294913000c560001284914000c550001294913000c550001294914000c550001294814000c550001294913000d05

2019-01-22 07:12:07.398 (Broadlink versterker) <b> Command line : "C:\Program Files (x86)\Domoticz\plugins\BroadlinkRM2\plugin_send.py" C:/BroadlinkRM2/BroadlinkRM2-6-6.ini </b>

2019-01-22 07:12:07.398 (Broadlink versterker - power) Updating device from 0:'Off' to have values 1:'On-73'.

2019-01-22 07:12:07.476 (Broadlink versterker) Update 1:'On-73' (Broadlink versterker - power)

2019-01-22 07:12:08.461 (Broadlink versterker) Pushing 'onCommandCallback' on to queue

2019-01-22 07:12:08.476 (Broadlink versterker) Processing 'onCommandCallback' message

2019-01-22 07:12:08.476 (Broadlink versterker) Calling message handler 'onCommand'.

2019-01-22 07:12:08.476 (Broadlink versterker) onCommand called for Unit 6: Parameter 'Off', Level: 0 , Connected : False

2019-01-22 07:12:08.476 (Broadlink versterker - power) Updating device from 1:'On-73' to have values 0:'Off'.

2019-01-22 07:12:08.539 (Broadlink versterker) Update 0:'Off' (Broadlink versterker - power)

2019-01-22 07:12:12.070 (Broadlink versterker) Pushing 'onHeartbeatCallback' on to queue

2019-01-22 07:12:12.117 (Broadlink versterker) Processing 'onHeartbeatCallback' message

2019-01-22 07:12:12.117 (Broadlink versterker) Calling message handler 'onHeartbeat'.

2019-01-22 07:12:43.055 (Broadlink versterker) Pushing 'onHeartbeatCallback' on to queue

2019-01-22 07:12:43.086 (Broadlink versterker) Processing 'onHeartbeatCallback' message

2019-01-22 07:12:43.086 (Broadlink versterker) Calling message handler 'onHeartbeat'.

2019-01-22 07:13:14.039 (Broadlink versterker) Pushing 'onHeartbeatCallback' on to queue

2019-01-22 07:13:14.101 (Broadlink versterker) Processing 'onHeartbeatCallback' message

2019-01-22 07:13:14.101 (Broadlink versterker) Calling message handler 'onHeartbeat'.

2019-01-22 07:13:45.070 (Broadlink versterker) Pushing 'onHeartbeatCallback' on to queue

2019-01-22 07:13:45.101 (Broadlink versterker) Processing 'onHeartbeatCallback' message

2019-01-22 07:13:45.101 (Broadlink versterker) Calling message handler 'onHeartbeat'.



Verstuurd vanaf mijn ASUS Chromebook Flip C101PA met Tapatalk

NomenNescio
Posts: 8
Joined: Saturday 01 July 2017 13:43
Target OS: Windows
Domoticz version: v4.9700
Location: Nederland
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by NomenNescio »

and in red:
2019-01-22 07:20:59.133 Error: (Broadlink versterker) 'onHeartbeat' failed 'TypeError':'unorderable types: NoneType() > int()'.

2019-01-22 07:20:59.133 Error: (Broadlink versterker) ----> Line 473 in C:\Program Files (x86)\Domoticz\plugins\BroadlinkRM2\plugin.py, function onHeartbeat

2019-01-22 07:20:59.133 Error: (Broadlink versterker) ----> Line 757 in C:\Program Files (x86)\Domoticz\plugins\BroadlinkRM2\plugin.py, function checkTemp



Verstuurd vanaf mijn ASUS Chromebook Flip C101PA met Tapatalk

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 »

NomenNescio wrote: Tuesday 22 January 2019 7:23 and in red:
2019-01-22 07:20:59.133 Error: (Broadlink versterker) 'onHeartbeat' failed 'TypeError':'unorderable types: NoneType() > int()'.

2019-01-22 07:20:59.133 Error: (Broadlink versterker) ----> Line 473 in C:\Program Files (x86)\Domoticz\plugins\BroadlinkRM2\plugin.py, function onHeartbeat

2019-01-22 07:20:59.133 Error: (Broadlink versterker) ----> Line 757 in C:\Program Files (x86)\Domoticz\plugins\BroadlinkRM2\plugin.py, function checkTemp



Verstuurd vanaf mijn ASUS Chromebook Flip C101PA met Tapatalk
Do you have made any update on your Domoticz version ?
NomenNescio
Posts: 8
Joined: Saturday 01 July 2017 13:43
Target OS: Windows
Domoticz version: v4.9700
Location: Nederland
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by NomenNescio »

zak45 wrote:
NomenNescio wrote: Tuesday 22 January 2019 7:23 and in red:
2019-01-22 07:20:59.133 Error: (Broadlink versterker) 'onHeartbeat' failed 'TypeError':'unorderable types: NoneType() > int()'.

2019-01-22 07:20:59.133 Error: (Broadlink versterker) ----> Line 473 in C:\Program Files (x86)\Domoticz\plugins\BroadlinkRM2\plugin.py, function onHeartbeat

2019-01-22 07:20:59.133 Error: (Broadlink versterker) ----> Line 757 in C:\Program Files (x86)\Domoticz\plugins\BroadlinkRM2\plugin.py, function checkTemp



Verstuurd vanaf mijn ASUS Chromebook Flip C101PA met Tapatalk
Do you have made any update on your Domoticz version ?
No same version of Domoticz and your plugin.
NomenNescio
Posts: 8
Joined: Saturday 01 July 2017 13:43
Target OS: Windows
Domoticz version: v4.9700
Location: Nederland
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by NomenNescio »

NomenNescio wrote: Tuesday 22 January 2019 15:41
zak45 wrote:
NomenNescio wrote: Tuesday 22 January 2019 7:23 and in red:
2019-01-22 07:20:59.133 Error: (Broadlink versterker) 'onHeartbeat' failed 'TypeError':'unorderable types: NoneType() > int()'.

2019-01-22 07:20:59.133 Error: (Broadlink versterker) ----> Line 473 in C:\Program Files (x86)\Domoticz\plugins\BroadlinkRM2\plugin.py, function onHeartbeat

2019-01-22 07:20:59.133 Error: (Broadlink versterker) ----> Line 757 in C:\Program Files (x86)\Domoticz\plugins\BroadlinkRM2\plugin.py, function checkTemp



Verstuurd vanaf mijn ASUS Chromebook Flip C101PA met Tapatalk
Do you have made any update on your Domoticz version ?
No same version of Domoticz and your plugin.
stopped and activated Broadlink in hardware and it is working again. A reboot of the windows 10 machine did not solve it.

2019-01-24 07:35:21.309 Status: (Broadlink versterker) Stop directive received.
2019-01-24 07:35:21.412 Status: (Broadlink versterker) Stopping threads.
2019-01-24 07:35:21.502 Status: (Broadlink versterker) Exiting work loop.
2019-01-24 07:35:21.502 Status: (Broadlink versterker) Stopped.
2019-01-24 07:36:31.153 Status: (Broadlink versterker) Started.
2019-01-24 07:36:32.856 Status: (Broadlink versterker) Initialized version 4.1.0, author 'zak45'
hiretabletuk
Posts: 1
Joined: Thursday 24 January 2019 8:15
Target OS: Linux
Domoticz version:
Location: United Kingdom
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by hiretabletuk »

Hi Zak
This is the complete Domoticz log, afterward the resume

2018-01-30 15:16:55.189 Domoticz V3.8153 (c)2012-2017 GizMoCuz
2018-01-30 15:16:55.189 Build Hash: 494fff7-modified, Date: 2017-07-30 12:19:41
2018-01-30 15:16:55.190 Startup Path: /usr/local/domoticz/
2018-01-30 15:16:55.277 Sunrise: 07:39:00 SunSet:17:15:00
2018-01-30 15:16:55.277 EventSystem: reset all events...
2018-01-30 15:16:55.461 PluginSystem: Started, Python version '3.5.1'.
2018-01-30 15:16:55.471 Active notification Subsystems: pushover (1/12)
2018-01-30 15:16:55.484 WebServer(HTTP) started on address: :: with port 8084
2018-01-30 15:16:55.512 WebServer(SSL) started on address: :: with port 8443
2018-01-30 15:16:55.514 Proxymanager started.
2018-01-30 15:16:55.515 Starting shared server on: :::6150
2018-01-30 15:16:55.516 RxQueue: queue worker started...
2018-01-30 15:16:55.516 TCPServer: shared server started...
2018-01-30 15:16:55.590 Incoming connection from: 217.xx.xx.xx
2018-01-30 15:16:57.517 EventSystem: reset all events...
2018-01-30 15:16:57.518 EventSystem: reset all device statuses...
2018-01-30 15:16:57.518 Netatmo: Worker started...
2018-01-30 15:16:57.518 Logitech Media Server: Worker started...
2018-01-30 15:16:57.554 Logitech Media Server: 2 player-switch(es) found.
2018-01-30 15:16:57.757 Python EventSystem: Module not found - Trying to initialize.
2018-01-30 15:16:57.757 Python EventSystem: Initalizing event module.
2018-01-30 15:16:57.758 EventSystem: Started
2018-01-30 15:16:57.859 PluginSystem: Entering work loop.
2018-01-30 15:16:58.224 Logitech Media Server: 279 playlist(s) found.
2018-01-30 15:16:58.520 RFXCOM: Using serial port: /dev/ttyUSB0
2018-01-30 15:16:58.775 (My br- Discover) Initialized version 4.0.0, author 'zak45'
2018-01-30 15:16:58.836 (My br- Discover) Debug log level set to: 'true'.
2018-01-30 15:16:58.836 (My br- Discover) 'Mode2':'C:/BroadlinkRM2'
2018-01-30 15:16:58.836 (My br- Discover) 'HomeFolder':'/usr/local/domoticz/var/plugins/BroadlinkRM2/'
2018-01-30 15:16:58.836 (My br- Discover) 'Mode3':'DIS'
2018-01-30 15:16:58.836 (My br- Discover) 'Mode1':'000000000000'
2018-01-30 15:16:58.836 (My br- Discover) 'Author':'zak45'
2018-01-30 15:16:58.836 (My br- Discover) 'Name':'My br- Discover'
2018-01-30 15:16:58.836 (My br- Discover) 'Port':'0'
2018-01-30 15:16:58.836 (My br- Discover) 'HardwareID':'17'
2018-01-30 15:16:58.836 (My br- Discover) 'Version':'4.0.0'
2018-01-30 15:16:58.837 (My br- Discover) 'Mode6':'Debug'
2018-01-30 15:16:58.837 (My br- Discover) 'Mode4':'no'
2018-01-30 15:16:58.837 (My br- Discover) 'Mode5':'9000'
2018-01-30 15:16:58.837 (My br- Discover) 'Key':'BroadlinkRM2'
2018-01-30 15:16:58.837 (My br- Discover) 'Address':'127.0.0.1'
2018-01-30 15:16:58.837 (My br- Discover) Device count: 2
2018-01-30 15:16:58.837 (My br- Discover) Device: 1 - ID: 79, Name: 'My br- Discover - Discovery', nValue: 0, sValue: ''
2018-01-30 15:16:58.837 (My br- Discover) Device ID: '79'
2018-01-30 15:16:58.837 (My br- Discover) Device Name: 'My br- Discover - Discovery'
2018-01-30 15:16:58.837 (My br- Discover) Device nValue: 0
2018-01-30 15:16:58.837 (My br- Discover) Device sValue: ''
2018-01-30 15:16:58.838 (My br- Discover) Device LastLevel: 0
2018-01-30 15:16:58.838 (My br- Discover) Device: 2 - ID: 80, Name: 'My br- Discover - Discovery Info', nValue: 0, sValue: ''
2018-01-30 15:16:58.838 (My br- Discover) Device ID: '80'
2018-01-30 15:16:58.838 (My br- Discover) Device Name: 'My br- Discover - Discovery Info'
2018-01-30 15:16:58.838 (My br- Discover) Device nValue: 0
2018-01-30 15:16:58.838 (My br- Discover) Device sValue: ''
2018-01-30 15:16:58.838 (My br- Discover) Device LastLevel: 0
2018-01-30 15:16:58.838 (My br- Discover) Connecting to: 127.0.0.1:000000000000
2018-01-30 15:16:58.838 (My br- Discover) Device Number begin to : 1
2018-01-30 15:16:58.838 (My br- Discover) Heartbeat interval set to: 30.
2018-01-30 15:16:59.095
2018-01-30 15:16:59.173 subtype = Interface Response
Bigya
Posts: 1
Joined: Saturday 26 January 2019 18:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Bigya »

Hi All,

I'm new in Domoticz. I was trying to get a Broadlink RM2 to work with the domoticz on a Pi3+/Raspbian.
I have spent a day, but the only thing I can get is the broadlink device is showing up at the Hardware menu, but failed to show up in the Devices menu.

Now I really messed up my file system, but there is my log:
2019-01-26 18:36:14.625 Error: (BroadlinkRM2) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/-link/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.
2019-01-26 18:36:14.625 Error: (gateway) Module Import failed, exception: 'NameError'

Can You please help me how to solve the issue?
(meantime I switch back to hassio... :D)
jon205
Posts: 39
Joined: Monday 05 November 2018 16:17
Target OS: Linux
Domoticz version: 2022.2
Location: @home
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by jon205 »

Same here.
I've added the hardware, but I keep getting an error in the log:

Code: Select all

2019-01-29 21:06:14.392 Error: (BroadlinkRM2) failed to load 'plugin.py', Python Path used was '/usr/local/domoticz/var/plugins/BroadlinkRM2/:/volume1/@appstore/py3k/usr/local/lib/python35.zip:/volume1/@appstore/py3k/usr/local/lib/python3.5/:/volume1/@appstore/py3k/usr/local/lib/python3.5/plat-linux:/volume1/@appstore/py3k/usr/local/lib/python3.5/lib-dynload'.
2019-01-29 21:06:14.392 Error: (Broadlink) Module Import failed, exception: 'ImportError'
2019-01-29 21:06:14.392 Error: (Broadlink) Module Import failed: ' Name: broadlink'
I've copied the plugin.py file to several locations, nothing seems to help.
I'm running Domoticz:
Version: 4.9700
Build Hash: a3a4590-modified
Compile Date: 2018-06-23 16:24:51
dzVents Version: 2.4.6
Python Version: 3.5.1 (default, Dec 9 2016, 00:20:03) [GCC 4.9.3 20150311 (prerelease)]

on Xpenology.

Any ideas?

I've tried to follow the tutorial, but it's not working on DSM.

Regards, Jon.
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 »

jon205 wrote: Tuesday 29 January 2019 21:15 Same here.
I've added the hardware, but I keep getting an error in the log:

Code: Select all

2019-01-29 21:06:14.392 Error: (BroadlinkRM2) failed to load 'plugin.py', Python Path used was '/usr/local/domoticz/var/plugins/BroadlinkRM2/:/volume1/@appstore/py3k/usr/local/lib/python35.zip:/volume1/@appstore/py3k/usr/local/lib/python3.5/:/volume1/@appstore/py3k/usr/local/lib/python3.5/plat-linux:/volume1/@appstore/py3k/usr/local/lib/python3.5/lib-dynload'.
2019-01-29 21:06:14.392 Error: (Broadlink) Module Import failed, exception: 'ImportError'
2019-01-29 21:06:14.392 Error: (Broadlink) Module Import failed: ' Name: broadlink'
I've copied the plugin.py file to several locations, nothing seems to help.
I'm running Domoticz:
Version: 4.9700
Build Hash: a3a4590-modified
Compile Date: 2018-06-23 16:24:51
dzVents Version: 2.4.6
Python Version: 3.5.1 (default, Dec 9 2016, 00:20:03) [GCC 4.9.3 20150311 (prerelease)]

on Xpenology.

Any ideas?

I've tried to follow the tutorial, but it's not working on DSM.

Regards, Jon.
This is not related to plugin.py but to broadlink module, framework not able to find it.
to verify , try to copy broadlink folder under /usr/local/domoticz/var/plugins/BroadlinkRM2/
jon205
Posts: 39
Joined: Monday 05 November 2018 16:17
Target OS: Linux
Domoticz version: 2022.2
Location: @home
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by jon205 »

Hey Zak, thanks for taking the time to respond. It is very much appreciated.

This is the content of the folder you are referring to:

Code: Select all

admin@NAS:/usr/local/domoticz/var/plugins$ ls
BroadlinkRM2  python-broadlink-master
Isn't this what you are suggesting? The broadlink folder is already there.
Or do you mean there's a broadlink folder that should be in the BroadlinkRM2 folder?

This is currently in there:

Code: Select all

admin@NAS:/usr/local/domoticz/var/plugins/BroadlinkRM2$ ls
ini  plugin_http.py  plugin_http.sh  plugin.py  plugin_send.py  __pycache__
Thanks in advance!

Jon.
jon205
Posts: 39
Joined: Monday 05 November 2018 16:17
Target OS: Linux
Domoticz version: 2022.2
Location: @home
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by jon205 »

Okay, so I did copy the broadlink folder to the /BroadlinkRM2 folder:

Code: Select all

admin@NAS:/usr/local/domoticz/var/plugins/BroadlinkRM2$ ls
broadlink  plugin_http.py  plugin.py       __pycache__
ini        plugin_http.sh  plugin_send.py

Code: Select all

admin@NAS:/usr/local/domoticz/var/plugins/BroadlinkRM2/broadlink$ ls
__init__.py  __pycache__
Now the error in the logging has changed indeed, so you were right. This is now in the log:

Code: Select all

2019-01-31 21:14:45.808 Error: (BroadlinkRM2) failed to load 'plugin.py', Python Path used was '/usr/local/domoticz/var/plugins/BroadlinkRM2/:/volume1/@appstore/py3k/usr/local/lib/python35.zip:/volume1/@appstore/py3k/usr/local/lib/python3.5/:/volume1/@appstore/py3k/usr/local/lib/python3.5/plat-linux:/volume1/@appstore/py3k/usr/local/lib/python3.5/lib-dynload'.
2019-01-31 21:14:45.808 Error: (Broadlink) Module Import failed, exception: 'ImportError'
2019-01-31 21:14:45.808 Error: (Broadlink) Module Import failed: ' Name: pyaes'
2019-01-31 21:14:45.808 Error: (Broadlink) Error Line details not available.
Now I think I have to copy pyaes to that folder as well. Am I right or am I thinking too simple?

Thanks for taking the time.

Jon.

----EDIT----

I wasn't thinking too simple. You've found your way into my logfile:

Code: Select all

 Status: (Broadlink) Initialized version 4.1.0, author 'zak45'
I now only get an connection error.

Code: Select all

 (Broadlink) Error Connecting to Broadlink device....192.168.1.100
The address is pingable and a static dhcp has been configured for the Broadlink.
I'll continue my puzzle :-)

Jon.

----EDIT----

Another edit (almost a live-blog now :lol: )

The MAC address has to be entered in small caps, not like I would expect in BIG CAPS.
Connection is working now.

Jon.
Last edited by jon205 on Thursday 31 January 2019 22:14, edited 1 time in total.
jon205
Posts: 39
Joined: Monday 05 November 2018 16:17
Target OS: Linux
Domoticz version: 2022.2
Location: @home
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by jon205 »

Okay, last question (for today)...

According to the manual, a switch called xxx- command should have been created. I only see Broadlink Discovery, Broadlink Remote and Broadlink Import. No command switch. It's not in the unused switches list, it's just not there. Could this be a missing file in the plugin folder?

Jon.
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 »

jon205 wrote: Thursday 31 January 2019 22:13 Okay, last question (for today)...

According to the manual, a switch called xxx- command should have been created. I only see Broadlink Discovery, Broadlink Remote and Broadlink Import. No command switch. It's not in the unused switches list, it's just not there. Could this be a missing file in the plugin folder?

Jon.
remove all created devices, go to HW, choose the right device type and reload the plugin.
jon205
Posts: 39
Joined: Monday 05 November 2018 16:17
Target OS: Linux
Domoticz version: 2022.2
Location: @home
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by jon205 »

Thanks! That did the job.

Jon.
Bogey
Posts: 1
Joined: Wednesday 24 October 2018 22:21
Target OS: Linux
Domoticz version:
Contact:

Re: Check Temp

Post by Bogey »

RueDesButtes wrote: Monday 07 January 2019 9:22 Update to Version: 4.10329
no more issue



Hello,
Since few days I am facing these errors:

2019-01-07 08:55:20.789 Error: (RMPRO) Error Connecting to Broadlink device....192.168.1.26
2019-01-07 08:56:09.975 Error: (RMPRO) Error getting temperature data from Broadlink device....Timeout
2019-01-07 08:56:19.987 Error: (RMPRO) Error Connecting to Broadlink device....192.168.1.26
2019-01-07 09:00:19.962 Error: (RMPRO) 'onHeartbeat' failed 'TypeError':'unorderable types: NoneType() > int()'.
2019-01-07 09:00:19.962 Error: (RMPRO) ----> Line 475 in '/domoticz/plugins/BroadlinkRM2/plugin.py', function onHeartbeat
2019-01-07 09:00:19.963 Error: (RMPRO) ----> Line 759 in '/domoticz/plugins/BroadlinkRM2/plugin.py', function checkTemp

My RM is set as "Remote Control RM2/RM mini3" value="RM2",
it should not check temp
rm plugin 475.PNG
rm plugin 759.PNG

Thanks
I have the same issue occasionally with RM mini3, I have two minis, called "Broadlink MH remote"and "Broadlink OH remote" .
Yesterday I restarted WiFi what I think triggered the issue. Workaround is to restart Domoticz and it will be fine.

Domoticz Version: 4.10159
Broadlink Plugin version 4.1

Edit, yes problem started after WiFi restart.
Why it goes to lines 473, 757 even for this device should not check temps?

Code: Select all

2019-02-05 21:30:17.150 Error: (Broadlink MH remote) Error getting temperature data from Broadlink device....Timeout
2019-02-05 21:30:27.179 Error: (Broadlink MH remote) Error Connecting to Broadlink device....192.168.107.190
2019-02-05 21:30:37.198 Error: (Broadlink OH remote) Error getting temperature data from Broadlink device....Timeout
2019-02-05 21:30:47.215 Error: (Broadlink OH remote) Error Connecting to Broadlink device....192.168.107.130
2019-02-05 21:31:14.788 Error: Broadlink OH remote hardware (10) thread seems to have ended unexpectedly
2019-02-05 21:31:14.788 Error: Broadlink MH remote hardware (11) thread seems to have ended unexpectedly
2019-02-05 21:35:16.788 Error: (Broadlink MH remote) 'onHeartbeat' failed 'TypeError':''>' not supported between instances of 'NoneType' and 'int''.
2019-02-05 21:35:16.788 Error: (Broadlink MH remote) ----> Line 473 in '/data2/domoticz/plugins/BroadlinkRM2/plugin.py', function onHeartbeat
2019-02-05 21:35:16.788 Error: (Broadlink MH remote) ----> Line 757 in '/data2/domoticz/plugins/BroadlinkRM2/plugin.py', function checkTemp
2019-02-05 21:35:17.297 Error: (Broadlink OH remote) 'onHeartbeat' failed 'TypeError':''>' not supported between instances of 'NoneType' and 'int''.
2019-02-05 21:35:17.298 Error: (Broadlink OH remote) ----> Line 473 in '/data2/domoticz/plugins/BroadlinkRM2/plugin.py', function onHeartbeat
2019-02-05 21:35:17.298 Error: (Broadlink OH remote) ----> Line 757 in '/data2/domoticz/plugins/BroadlinkRM2/plugin.py', function checkTemp
2019-02-05 21:35:46.807 Error: (Broadlink MH remote) 'onHeartbeat' failed 'TypeError':''>' not supported between instances of 'NoneType' and 'int''.
2019-02-05 21:35:46.807 Error: (Broadlink MH remote) ----> Line 473 in '/data2/domoticz/plugins/BroadlinkRM2/plugin.py', function onHeartbeat
2019-02-05 21:35:46.807 Error: (Broadlink MH remote) ----> Line 757 in '/data2/domoticz/plugins/BroadlinkRM2/plugin.py', function checkTemp
2019-02-05 21:35:47.317 Error: (Broadlink OH remote) 'onHeartbeat' failed 'TypeError':''>' not supported between instances of 'NoneType' and 'int''.
2019-02-05 21:35:47.317 Error: (Broadlink OH remote) ----> Line 473 in '/data2/domoticz/plugins/BroadlinkRM2/plugin.py', function onHeartbeat
2019-02-05 21:35:47.317 Error: (Broadlink OH remote) ----> Line 757 in '/data2/domoticz/plugins/BroadlinkRM2/plugin.py', function checkTemp
Edit2: Reproduced the issue by restarting wifi

Code: Select all

2019-02-06 12:25:20.004 Error: (Broadlink OH remote) Error getting temperature data from Broadlink device....Timeout
2019-02-06 12:25:30.016 Error: (Broadlink OH remote) Error Connecting to Broadlink device....192.168.107.130
2019-02-06 12:25:40.027 Error: (Broadlink MH remote) Error getting temperature data from Broadlink device....Timeout
2019-02-06 12:25:50.040 Error: (Broadlink MH remote) Error Connecting to Broadlink device....192.168.107.190
2019-02-06 12:26:11.084 Error: Broadlink OH remote hardware (10) thread seems to have ended unexpectedly
2019-02-06 12:26:11.084 Error: Broadlink MH remote hardware (11) thread seems to have ended unexpectedly
2019-02-06 12:30:19.619 Error: (Broadlink OH remote) 'onHeartbeat' failed 'TypeError':''>' not supported between instances of 'NoneType' and 'int''.
2019-02-06 12:30:19.619 Error: (Broadlink OH remote) ----> Line 473 in '/data2/domoticz/plugins/BroadlinkRM2/plugin.py', function onHeartbeat
2019-02-06 12:30:19.619 Error: (Broadlink OH remote) ----> Line 757 in '/data2/domoticz/plugins/BroadlinkRM2/plugin.py', function checkTemp
2019-02-06 12:30:20.129 Error: (Broadlink MH remote) 'onHeartbeat' failed 'TypeError':''>' not supported between instances of 'NoneType' and 'int''.
2019-02-06 12:30:20.129 Error: (Broadlink MH remote) ----> Line 473 in '/data2/domoticz/plugins/BroadlinkRM2/plugin.py', function onHeartbeat
2019-02-06 12:30:20.129 Error: (Broadlink MH remote) ----> Line 757 in '/data2/domoticz/plugins/BroadlinkRM2/plugin.py', function checkTemp

Edit3:
Here diff to reconnect, worked fine in quick testing.

Code: Select all

--- plugin-4.1.py       2019-02-06 12:53:05.305188810 +0200
+++ plugin.py   2019-02-06 12:52:12.662811142 +0200
@@ -470,12 +470,14 @@
 # for RM2 we try to connect every 5 minutes if checkTemp is False
     else:
         if (now.minute % 5 == 0):
-            if not checkTemp():
-                UpdateDevice(1,0,'Off')
-                if broadlinkConnect():
-                    UpdateDevice(1,1,'10')
-            bypass = True
-
+            if isConnected:
+                if not checkTemp():
+                    UpdateDevice(1,0,'Off')
+                    if broadlinkConnect():
+                        UpdateDevice(1,1,'10')
+                bypass = True
+            else:
+                broadlinkConnect()
     return True

 # executed once when HW updated/removed
fvdp80
Posts: 69
Joined: Tuesday 14 August 2018 8:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10303
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by fvdp80 »

I can confirm the issue Bogey has found. Same for me.
Whatsek
Posts: 16
Joined: Saturday 31 May 2014 23:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest B
Location: Hilversum, The Netherlands
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Whatsek »

I have the same behavior after a wifi restart. If I disable the rm3 pro in domoticz, and enable it again all iss working again. Will test the data timeout function in domoticz now.

Verstuurd vanaf mijn MI MAX 3 met Tapatalk

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest