Python Plugin : Broadlink RM2 V4

Python and python framework

Moderator: leecollings

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 »

Xfiles wrote: Saturday 28 April 2018 10:17 Can anyone help me with problem described few posts above? (domoticz doesn't work after I add broadlink hardware). Do you have any idea what can be a reason of that?
put the plugin on debug mode and provide the log output
Xfiles
Posts: 15
Joined: Saturday 31 March 2018 23:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Xfiles »

[/quote]

put the plugin on debug mode and provide the log output
[/quote]

The problem is that I add hardware in debug mode and then Domoticz stops working.
After update to release version domoticz starts so I have log only from this version. If I'm adding hardware when Device is switched off Domoticz works correctly until system restart

Code: Select all

 
2018-04-28 22:27:46.855 Build Hash: 494fff7, Date: 2017-07-30 12:19:41
2018-04-28 22:27:46.856 Startup Path: /home/pi/domoticz/
2018-04-28 22:27:46.894 Sunrise: 05:19:00 SunSet:20:00:00
2018-04-28 22:27:46.894 EventSystem: reset all events...
2018-04-28 22:27:47.016 PluginSystem: Started, Python version '3.5.3'.
2018-04-28 22:27:47.026 Active notification Subsystems: pushover (1/12)
2018-04-28 22:27:47.027 WebServer(HTTP) started on address: :: with port 8080
2018-04-28 22:27:47.032 WebServer(SSL) started on address: :: with port 443
2018-04-28 22:27:47.034 Proxymanager started.
2018-04-28 22:27:47.035 Camera: settings (re)loaded
2018-04-28 22:27:47.035 Accepting shared server connections via MyDomotiz (see settings menu).
2018-04-28 22:27:47.036 Starting shared server on: :::6144
2018-04-28 22:27:47.036 TCPServer: shared server started...
2018-04-28 22:27:47.036 RxQueue: queue worker started...
2018-04-28 22:27:49.037 YeeLight Worker started...
2018-04-28 22:27:49.037 Wunderground: Worker started...
2018-04-28 22:27:49.037 XiaomiGateway: will listen on 9898 for hardware id 11
2018-04-28 22:27:49.037 XiaomiGateway: Delaying worker startup...
2018-04-28 22:27:54.038 XiaomiGateway: Worker started...
2018-04-28 22:27:54.038 XiaomiGateway: Using 192.168.8.120 for local IP address.
2018-04-28 22:27:54.038 EventSystem: reset all events...
2018-04-28 22:27:54.040 EventSystem: reset all device statuses...
2018-04-28 22:27:54.048 XiaomiGateway: RGB Gateway Detected
2018-04-28 22:27:54.071 XiaomiGateway: unhandled model: sensor_motion.aq2
2018-04-28 22:27:54.081 XiaomiGateway: unhandled model: sensor_wleak.aq1
2018-04-28 22:27:54.082 XiaomiGateway: unhandled model: sensor_motion.aq2
2018-04-28 22:27:54.164 Error: EventSystem: in dzVents.lua: cannot open dzVents.lua: No such file or directory
2018-04-28 22:27:54.184 (Xiaomi gateway ) Temp (Sypialnia)
2018-04-28 22:27:54.185 (Xiaomi gateway ) Humidity (Xiaomi Humidity)
2018-04-28 22:27:54.185 (Xiaomi gateway ) General/Pressure (Sypialnia)
2018-04-28 22:27:54.186 (Xiaomi gateway ) General/Voltage (Xiaomi Voltage)
2018-04-28 22:27:54.187 (Xiaomi gateway ) General/Voltage (Xiaomi Voltage)
2018-04-28 22:27:54.196 Error: EventSystem: in dzVents.lua: cannot open dzVents.lua: No such file or directory
2018-04-28 22:27:54.215 (Xiaomi gateway ) Temp (Łazienka - góra)
2018-04-28 22:27:54.216 (Xiaomi gateway ) Humidity (Xiaomi Humidity)
2018-04-28 22:27:54.217 (Xiaomi gateway ) General/Voltage (Xiaomi Voltage)
2018-04-28 22:27:54.227 Error: EventSystem: in dzVents.lua: cannot open dzVents.lua: No such file or directory
2018-04-28 22:27:54.232 YeeLight: New Light Found (192.168.8.201/YeeLight LED (Color))
2018-04-28 22:27:54.246 (Xiaomi gateway ) Temp (Pokój skos)
2018-04-28 22:27:54.247 (Xiaomi gateway ) Humidity (Xiaomi Humidity)
2018-04-28 22:27:54.248 (Xiaomi gateway ) General/Pressure (Xiaomi Humidity)
2018-04-28 22:27:54.248 (Xiaomi gateway ) General/Voltage (Xiaomi Voltage)
2018-04-28 22:27:54.249 (Xiaomi gateway ) General/Voltage (Xiaomi Voltage)
2018-04-28 22:27:54.249 (Xiaomi gateway ) General/Voltage (Xiaomi Voltage)
2018-04-28 22:27:54.250 (Xiaomi gateway ) General/Voltage (Xiaomi Voltage)
2018-04-28 22:27:54.260 Error: EventSystem: in dzVents.lua: cannot open dzVents.lua: No such file or directory
2018-04-28 22:27:54.267 Python EventSystem: Module not found - Trying to initialize.
2018-04-28 22:27:54.267 Python EventSystem: Initalizing event module.
2018-04-28 22:27:54.267 EventSystem: Started
2018-04-28 22:27:54.277 (Xiaomi gateway ) Temp (Przedpokój góra)
2018-04-28 22:27:54.278 (Xiaomi gateway ) Humidity (Xiaomi Humidity)
2018-04-28 22:27:54.279 (Xiaomi gateway ) General/Pressure (Xiaomi Pressure)
2018-04-28 22:27:54.357 (Xiaomi gateway ) Temp (Pokój dziecięcy)
2018-04-28 22:27:54.357 (Xiaomi gateway ) Humidity (Xiaomi Humidity)
2018-04-28 22:27:54.358 (Xiaomi gateway ) General/Pressure (Xiaomi Humidity)
2018-04-28 22:27:54.363 (Yeelight) Lighting Limitless/Applamp (Unknown)
2018-04-28 22:27:54.397 PluginSystem: Entering work loop.
2018-04-28 22:27:54.538 OpenZWave: using config in: /home/pi/domoticz/Config/
2018-04-28 22:27:54.541 OpenZWave: Starting...
2018-04-28 22:27:54.541 OpenZWave: Version: 1.4-2501-g5af6780-dirty
2018-04-28 22:27:54.719 OpenZWave: Driver Ready
2018-04-28 22:27:54.726 OpenZWave: Value_Added: Node: 3 (0x03), CommandClass: SWITCH MULTILEVEL, Label: Level, Instance: 1
2018-04-28 22:27:54.726 OpenZWave: Value_Added: Node: 3 (0x03), CommandClass: SWITCH MULTILEVEL, Label: Bright, Instance: 1
2018-04-28 22:27:54.726 OpenZWave: Value_Added: Node: 3 (0x03), CommandClass: SWITCH MULTILEVEL, Label: Dim, Instance: 1
2018-04-28 22:27:54.726 OpenZWave: Value_Added: Node: 3 (0x03), CommandClass: SENSOR MULTILEVEL, Label: Temperature, Instance: 1
2018-04-28 22:27:54.727 OpenZWave: Value_Added: Node: 3 (0x03), CommandClass: THERMOSTAT MODE, Label: Mode, Instance: 1
2018-04-28 22:27:54.727 OpenZWave: Value_Added: Node: 3 (0x03), CommandClass: THERMOSTAT SETPOINT, Label: Heat Setpoint, Instance: 1
2018-04-28 22:27:54.727 OpenZWave: Value_Added: Node: 3 (0x03), CommandClass: THERMOSTAT SETPOINT, Label: Heat Econ Setpoint, Instance: 11
2018-04-28 22:27:54.727 OpenZWave: Value_Added: Node: 3 (0x03), CommandClass: ALARM, Label: Alarm Type, Instance: 1
2018-04-28 22:27:54.728 OpenZWave: Value_Added: Node: 3 (0x03), CommandClass: ALARM, Label: Alarm Level, Instance: 1
2018-04-28 22:27:54.728 OpenZWave: Value_Added: Node: 3 (0x03), CommandClass: ALARM, Label: SourceNodeId, Instance: 1
2018-04-28 22:27:54.728 OpenZWave: Value_Added: Node: 3 (0x03), CommandClass: ALARM, Label: Power Management, Instance: 1
2018-04-28 22:27:54.728 OpenZWave: Value_Added: Node: 3 (0x03), CommandClass: ALARM, Label: System, Instance: 1
2018-04-28 22:27:54.729 OpenZWave: Value_Added: Node: 3 (0x03), CommandClass: BATTERY, Label: Battery Level, Instance: 1
2018-04-28 22:27:54.826 (Z-wave hub) General/Thermostat Mode (Mode)
2018-04-28 22:27:54.931 (Z-wave hub) Thermostat (Termostat sypialnia)
2018-04-28 22:27:54.931 (Z-wave hub) Thermostat (Heat Econ Setpoint)
2018-04-28 22:27:55.122 (Broadlink) Initialized version 4.1.0, author 'zak45'
2018-04-28 22:27:56.022 OpenZWave: Awake Nodes queried
2018-04-28 22:27:56.272 (Z-wave hub) Thermostat (Termostat sypialnia)
2018-04-28 22:27:56.272 (Z-wave hub) Thermostat (Heat Econ Setpoint)
2018-04-28 22:27:56.533 (Z-wave hub) Temp (Temperatura sypialnia SPIRIT)
2018-04-28 22:27:56.617 (Z-wave hub) General/Thermostat Mode (Mode)
2018-04-28 22:27:56.618 (Z-wave hub) Light/Switch (Alarm Type)
2018-04-28 22:27:56.619 (Z-wave hub) Light/Switch (Alarm Level)
2018-04-28 22:27:56.620 (Z-wave hub) General/Alarm (Alarm Type: Power Management 8 (0x08))
2018-04-28 22:27:56.621 (Z-wave hub) Light/Switch (Power Management)
2018-04-28 22:27:56.622 (Z-wave hub) Light/Switch (Alarm Type)
2018-04-28 22:27:56.623 (Z-wave hub) Light/Switch (Alarm Level)
2018-04-28 22:27:56.624 (Z-wave hub) General/Alarm (Alarm Type: System 9 (0x09))
2018-04-28 22:27:56.625 (Z-wave hub) Light/Switch (System)
2018-04-28 22:27:56.684 OpenZWave: All Nodes queried
2018-04-28 22:27:59.717 (Stacja pogodowa) Temp + Humidity + Baro (Pogoda)
2018-04-28 22:27:59.718 (Stacja pogodowa) Wind (Unknown)
2018-04-28 22:27:59.718 (Stacja pogodowa) UV (UV)
2018-04-28 22:27:59.719 (Stacja pogodowa) Rain (Unknown)
2018-04-28 22:27:59.720 (Stacja pogodowa) General/Visibility (Unknown)
2018-04-28 22:27:59.720 (Stacja pogodowa) General/Solar Radiation (Unknown)
2018-04-28 22:28:02.535 PROXY: Authenticate result: success.
2018-04-28 22:29:02.955 Incoming connection from: 192.168.8.102
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 »

Xfiles wrote: Saturday 28 April 2018 22:34 2018-04-28 22:27:46.855 Build Hash: 494fff7, Date: 2017-07-30 12:19:41
what is your Domoticz version ?? looks like not beta one ...
Xfiles
Posts: 15
Joined: Saturday 31 March 2018 23:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Xfiles »

Normally I use beta but if I add Broadlink in hardware section domoticz doesn't work. Service is running but web page can't be displayed. After update to release version I'm able to remove added hardware and update one more time to beta. Currently I'm use:
Version: 3.9379
Build Hash: 5a186ddc
Compile Date: 2018-04-28 09:18:07
dzVents Version: 2.4.5
Python Version: 3.5.3 (default, Jan 19 2017, 14:11:04) [GCC 6.3.0 20170124]
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 »

Xfiles wrote: Saturday 28 April 2018 23:05 Normally I use beta but if I add Broadlink in hardware section domoticz doesn't work. Service is running but web page can't be displayed. After update to release version I'm able to remove added hardware and update one more time to beta. Currently I'm use:
Version: 3.9379
Build Hash: 5a186ddc
Compile Date: 2018-04-28 09:18:07
dzVents Version: 2.4.5
Python Version: 3.5.3 (default, Jan 19 2017, 14:11:04) [GCC 6.3.0 20170124]
This version looks like problem to add device and crash. Wait to have another one which correct that.
https://github.com/domoticz/domoticz/issues/2355
viewtopic.php?f=6&t=23225
Xfiles
Posts: 15
Joined: Saturday 31 March 2018 23:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Xfiles »

So I will wait. Previous beta versions had the same problem.
Jufo
Posts: 28
Joined: Friday 17 February 2017 13:24
Target OS: Linux
Domoticz version: 3.9389
Location: Poland
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Jufo »

Hi,

I'm using stable version 3.8153 on Debian Stretch (virtual machine). Device: RM mini3.

I installed according to the following steps:

Code: Select all

sudo apt-get install python3-pip
sudo pip3 install broadlink
sudo pip3 install pyaes

mkdir -p /home/robert/domoticz/plugins/BroadlinkRM2
copy file plugin:  plugin_http.sh plugin_http.py plugin_send.py plugin.py to /home/robert/domoticz/plugins/BroadlinkRM2
chmod +x /home/robert/domoticz/plugins/BroadlinkRM2/*

mkdir /home/robert/domoticz/plugins/BroadlinkRM2/import
copy file from e-control app jsonSubIr jsonIrCode jsonButton to /home/robert/domoticz/plugins/BroadlinkRM2/import
chmod +x /home/robert/domoticz/plugins/BroadlinkRM2/import/*

modify file plugin_http.sh with path /home/robert/domoticz/plugins/BroadlinkRM2/

sudo cp -r /usr/local/lib/python3.5/dist-packages/Crypto/ /usr/lib/python3.5/
sudo cp -r /usr/local/lib/python3.5/dist-packages/broadlink /usr/lib/python3.5/
Add hardware:
Image

But I do not see any virtual devices :(
In logs:

Code: Select all

2018-04-30 10:03:39.050 Incoming connection from: 192.168.3.5
2018-04-30 10:03:39.186 PluginSystem: Entering work loop.
2018-04-30 10:03:39.508 (RM mini3) Initialized version 4.1.0, author 'zak45'
2018-04-30 10:03:44.011 Incoming connection from: 192.168.3.8
2018-04-30 10:04:08.048 Incoming connection from: 192.168.3.37 
When I switched to the beta version, system is constantly restarting.

Please help

Best Regards
Robert
Last edited by Jufo on Monday 30 April 2018 12:24, edited 1 time in total.
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 »

Jufo wrote: Monday 30 April 2018 10:21 Hi,

I'm using stable version 3.8153 on Debian Stretch (virtual machine). Device: RM mini3.

When I switched to the beta version, system is constantly restarting.

Please help

Best Regards
Robert
Unfortunately, no choice.. you need to be on version 3.90xx or > to have it running.
There is some problem with last beta, so you can wait for a more stable one or take a look here :
viewtopic.php?f=6&t=23225&start=20#p179258
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 »

Xfiles wrote: Sunday 29 April 2018 12:53 So I will wait. Previous beta versions had the same problem.
take a look here :
viewtopic.php?f=6&t=23225&start=20#p179258
Jufo
Posts: 28
Joined: Friday 17 February 2017 13:24
Target OS: Linux
Domoticz version: 3.9389
Location: Poland
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Jufo »

zak45 wrote: Monday 30 April 2018 11:27 Unfortunately, no choice.. you need to be on version 3.90xx or > to have it running.
There is some problem with last beta, so you can wait for a more stable one or take a look here :
viewtopic.php?f=6&t=23225&start=20#p179258
I am now using beta, newer version 3.9381 has been released. Unfortunately, the same problem is still with the stable version, and new version still rebooting :(

Any chance to run on stable version ?

Best Regards,
Robert
Jufo
Posts: 28
Joined: Friday 17 February 2017 13:24
Target OS: Linux
Domoticz version: 3.9389
Location: Poland
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Jufo »

@zak45

Version 3.9389 is working reasonably stable. But I do not see any virtual devices.
How to check why this is happening? In log:

Code: Select all

2018-05-02 15:07:24.995 (RM mini 3) Entering work loop.
2018-05-02 15:07:24.995 (RM mini 3) Initialized version 4.1.0, author 'zak45' 
Best Regards,
Robert
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 »

Jufo wrote: Wednesday 02 May 2018 16:38 @zak45

Version 3.9389 is working reasonably stable. But I do not see any virtual devices.
How to check why this is happening? In log:

Code: Select all

2018-05-02 15:07:24.995 (RM mini 3) Entering work loop.
2018-05-02 15:07:24.995 (RM mini 3) Initialized version 4.1.0, author 'zak45' 
Best Regards,
Robert
Great! put the plugin on debug mode, restart Domoticz and provide the log.
Jufo
Posts: 28
Joined: Friday 17 February 2017 13:24
Target OS: Linux
Domoticz version: 3.9389
Location: Poland
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Jufo »

zak45 wrote: Wednesday 02 May 2018 18:05 Great! put the plugin on debug mode, restart Domoticz and provide the log.
I set debug mode, but that's all I have in domoticz logs ?. Are there any other logs somewhere ?
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 »

Jufo wrote: Wednesday 02 May 2018 18:10
zak45 wrote: Wednesday 02 May 2018 18:05 Great! put the plugin on debug mode, restart Domoticz and provide the log.
I set debug mode, but that's all I have in domoticz logs ?. Are there any other logs somewhere ?
Nope.. you should have something like that on the Domoticz log:
Spoiler: show
Filter: X
2018-05-02 18:19:59.941 Domoticz V3.9056 (c)2012-2018 GizMoCuz
2018-05-02 18:19:59.941 Build Hash: 010981cd, Date: 2018-03-26 10:20:51
2018-05-02 18:19:59.988 Sunrise: 06:31:00 SunSet: 21:04:00
2018-05-02 18:19:59.988 Day length: 14:33:00 Sun at south: 13:05:00
2018-05-02 18:19:59.988 Civil twilight start: 05:56:00 Civil twilight end: 21:39:00
2018-05-02 18:19:59.988 Nautical twilight start: 05:13:00 Nautical twilight end: 22:22:00
2018-05-02 18:19:59.988 Astronomical twilight start: 04:22:00 Astronomical twilight end: 23:13:00
2018-05-02 18:19:59.988 EventSystem: reset all events...
2018-05-02 18:20:00.072 PluginSystem: Started, Python version '3.5.3'.
2018-05-02 18:20:00.072 Active notification Subsystems: email, kodi, pushbullet (3/14)
2018-05-02 18:20:00.072 WebServer(HTTP) started on address: :: with port 8080
2018-05-02 18:20:00.357 WebServer(SSL) started on address: :: with port 443
2018-05-02 18:20:00.357 Proxymanager started.
2018-05-02 18:20:00.357 Camera: settings (re)loaded
2018-05-02 18:20:00.357 Starting shared server on: :::6144
2018-05-02 18:20:00.357 TCPServer: shared server started...
2018-05-02 18:20:00.357 RxQueue: queue worker started...
2018-05-02 18:20:02.844 (Samsung TV Salon) Started.
2018-05-02 18:20:02.844 Wunderground: Worker started...
2018-05-02 18:20:02.844 Http: Worker started...
2018-05-02 18:20:02.844 (RM2 Salon) Started.
2018-05-02 18:20:02.844 (Orange) Started.
2018-05-02 18:20:02.844 (BGAPI) Started.
2018-05-02 18:20:02.844 (PSexec) Started.
2018-05-02 18:20:02.844 (esensor) Started.
2018-05-02 18:20:02.844 (sp3) Started.
2018-05-02 18:20:02.844 (RGB) Started.
2018-05-02 18:20:02.844 (sp3s) Started.
2018-05-02 18:20:02.844 Arilux Worker started...
2018-05-02 18:20:02.844 EventSystem: reset all events...
2018-05-02 18:20:02.844 EventSystem: reset all device statuses...
2018-05-02 18:20:02.875 Python EventSystem: Initalizing event module.
2018-05-02 18:20:02.891 EventSystem: Started
2018-05-02 18:20:02.891 EventSystem: Queue thread started...
2018-05-02 18:20:03.044 PluginSystem: Entering work loop.
2018-05-02 18:20:03.129 (Samsung TV Salon) Initialized version 2.0.0, author 'zak45'
2018-05-02 18:20:03.129 (Samsung TV Salon) Entering work loop.
2018-05-02 18:20:03.207 (RM2 Salon) Initialized version 4.1.0, author 'zak45'
2018-05-02 18:20:03.207 (RM2 Salon) Entering work loop.
2018-05-02 18:20:03.207 Incoming connection from: 192.168.1.76
2018-05-02 18:20:04.431 (RM2 Salon) Device Name: 'RM2 Salon - Command'
2018-05-02 18:20:04.431 (RM2 Salon) Device nValue: 1
2018-05-02 18:20:04.431 (RM2 Salon) Device sValue: '10'
2018-05-02 18:20:04.431 (RM2 Salon) Device LastLevel: 10
2018-05-02 18:20:04.431 (RM2 Salon) Device: 2 - ID: 768, Name: 'RM2 Salon - Temp', nValue: 1, sValue: '22.7'
2018-05-02 18:20:04.431 (RM2 Salon) Device ID: '768'
2018-05-02 18:20:04.431 (RM2 Salon) Device Name: 'RM2 Salon - Temp'
2018-05-02 18:20:04.431 (RM2 Salon) Device nValue: 1
2018-05-02 18:20:04.431 (RM2 Salon) Device sValue: '22.7'
2018-05-02 18:20:04.431 (RM2 Salon) Device LastLevel: 0
2018-05-02 18:20:04.431 (RM2 Salon) Device: 4 - ID: 773, Name: 'RM2 Salon - 13-4 IR/RF RM2 Salon TV On', nValue: 1, sValue: 'On-1'
2018-05-02 18:20:04.431 (RM2 Salon) Device ID: '773'
2018-05-02 18:20:04.431 (RM2 Salon) Device Name: 'RM2 Salon - 13-4 IR/RF RM2 Salon TV On'
2018-05-02 18:20:04.431 (RM2 Salon) Device nValue: 1
2018-05-02 18:20:04.431 (RM2 Salon) Device sValue: 'On-1'
2018-05-02 18:20:04.431 (RM2 Salon) Device LastLevel: 0
2018-05-02 18:20:04.431 (RM2 Salon) Device: 10 - ID: 779, Name: 'RM2 Salon - 13-10 Tri par ordre ecran bas', nValue: 1, sValue: 'On-3'
2018-05-02 18:20:04.431 (RM2 Salon) Device ID: '779'
2018-05-02 18:20:04.431 (RM2 Salon) Device Name: 'RM2 Salon - 13-10 Tri par ordre ecran bas'
2018-05-02 18:20:04.431 (RM2 Salon) Device nValue: 1
2018-05-02 18:20:04.431 (RM2 Salon) Device sValue: 'On-3'
2018-05-02 18:20:04.431 (RM2 Salon) Device LastLevel: 0
2018-05-02 18:20:04.431 (RM2 Salon) Device: 50 - ID: 819, Name: 'RM2 Salon - 13-50 tv on', nValue: 0, sValue: 'Off'
2018-05-02 18:20:04.431 (RM2 Salon) Device ID: '819'
2018-05-02 18:20:04.431 (RM2 Salon) Device Name: 'RM2 Salon - 13-50 tv on'
2018-05-02 18:20:04.431 (RM2 Salon) Device nValue: 0
2018-05-02 18:20:04.431 (RM2 Salon) Device sValue: 'Off'
2018-05-02 18:20:04.431 (RM2 Salon) Device LastLevel: 0
2018-05-02 18:20:04.431 (RM2 Salon) Device: 51 - ID: 820, Name: 'RM2 Salon - 13-51 bibliotheque on', nValue: 0, sValue: 'Off'
2018-05-02 18:20:04.431 (RM2 Salon) Device ID: '820'
2018-05-02 18:20:04.431 (RM2 Salon) Device Name: 'RM2 Salon - 13-51 bibliotheque on'
2018-05-02 18:20:04.431 (RM2 Salon) Device nValue: 0
2018-05-02 18:20:04.431 (RM2 Salon) Device sValue: 'Off'
2018-05-02 18:20:04.431 (RM2 Salon) Device LastLevel: 0
2018-05-02 18:20:04.446 (RM2 Salon) Device: 52 - ID: 821, Name: 'RM2 Salon - 13-52 bibliotheque off', nValue: 1, sValue: 'On-5'
2018-05-02 18:20:04.446
2018-05-02 18:20:04.446 (RM2 Salon) Device ID: '821'
2018-05-02 18:20:04.446 (RM2 Salon) Device Name: 'RM2 Salon - 13-52 bibliotheque off'
2018-05-02 18:20:04.446 (RM2 Salon) Device nValue: 1
2018-05-02 18:20:04.446 (RM2 Salon) Device sValue: 'On-5'
2018-05-02 18:20:04.446 (RM2 Salon) Device LastLevel: 0
2018-05-02 18:20:04.446 (RM2 Salon) Device: 54 - ID: 911, Name: 'RM2 Salon - 13-54 Video projecteur On', nValue: 0, sValue: 'Off'
2018-05-02 18:20:04.446 (RM2 Salon) Device ID: '911'
2018-05-02 18:20:04.446 (RM2 Salon) Device Name: 'RM2 Salon - 13-54 Video projecteur On'
2018-05-02 18:20:04.446 (RM2 Salon) Device nValue: 0
2018-05-02 18:20:04.446 (RM2 Salon) Device sValue: 'Off'
2018-05-02 18:20:04.446 (RM2 Salon) Device LastLevel: 0
2018-05-02 18:20:04.446 (RM2 Salon) Device: 55 - ID: 912, Name: 'RM2 Salon - 13-55 Video Projecteur off', nValue: 0, sValue: 'Off'
2018-05-02 18:20:04.446 (RM2 Salon) Device ID: '912'
2018-05-02 18:20:04.446 (RM2 Salon) Device Name: 'RM2 Salon - 13-55 Video Projecteur off'
2018-05-02 18:20:04.446 (RM2 Salon) Device nValue: 0
2018-05-02 18:20:04.446 (RM2 Salon) Device sValue: 'Off'
2018-05-02 18:20:04.446 (RM2 Salon) Device LastLevel: 0
2018-05-02 18:20:04.446 (RM2 Salon) Device: 28 - ID: 797, Name: 'RM2 Salon - 13-28 bibliotheque', nValue: 0, sValue: 'Off'
2018-05-02 18:20:04.446 (RM2 Salon) Device ID: '797'
2018-05-02 18:20:04.446 (RM2 Salon) Device Name: 'RM2 Salon - 13-28 bibliotheque'
2018-05-02 18:20:04.446 (RM2 Salon) Device nValue: 0
2018-05-02 18:20:04.446 (RM2 Salon) Device sValue: 'Off'
2018-05-02 18:20:04.446 (RM2 Salon) Device LastLevel: 0
2018-05-02 18:20:04.446 (RM2 Salon) Device: 254 - ID: 769, Name: 'RM2 Salon - Remote', nValue: 0, sValue: 'Off'
2018-05-02 18:20:04.446 (RM2 Salon) Device ID: '769'
2018-05-02 18:20:04.446 (RM2 Salon) Device Name: 'RM2 Salon - Remote'
2018-05-02 18:20:04.446 (RM2 Salon) Device nValue: 0
2018-05-02 18:20:04.446 (RM2 Salon) Device sValue: 'Off'
2018-05-02 18:20:04.446 (RM2 Salon) Device LastLevel: 0
2018-05-02 18:20:04.446 (RM2 Salon) Device: 255 - ID: 770, Name: 'RM2 Salon - Import', nValue: 0, sValue: 'Off'
2018-05-02 18:20:04.446 (RM2 Salon) Device ID: '770'
2018-05-02 18:20:04.446 (RM2 Salon) Device Name: 'RM2 Salon - Import'
2018-05-02 18:20:04.446 (RM2 Salon) Device nValue: 0
2018-05-02 18:20:04.446 (RM2 Salon) Device sValue: 'Off'
2018-05-02 18:20:04.446 (RM2 Salon) Device LastLevel: 30
2018-05-02 18:20:04.446 (RM2 Salon) Pushing 'PollIntervalDirective' on to queue
2018-05-02 18:20:04.446 (RM2 Salon - Import) Updating device from 0:'Off' to have values 0:'Off'.
2018-05-02 18:20:04.462 (RM2 Salon) Update 0:'Off' (RM2 Salon - Import)
2018-05-02 18:20:04.462 (RM2 Salon) Connecting to:xxxxxxxxxxxxxxxxxxxxxxxx
2018-05-02 18:20:04.509 (RM2 Salon) Connected to Broadlink device: xxxxxxxxxxxx
2018-05-02 18:20:04.509 (RM2 Salon) ini file read....C:/BroadlinkRM2/remote/plugin_remote_13.ini
2018-05-02 18:20:04.509 (RM2 Salon) Custom Commands: 4,70,72,74,86
2018-05-02 18:20:04.509 (RM2 Salon) Device Number begin to : 10
2018-05-02 18:20:04.509 (Orange) Connecting to: 192.168.1.1:80
2018-05-02 18:20:04.509 (BGAPI) Listen on BTLeWebserver - Port: 9001
2018-05-02 18:20:04.509 (BGAPI) HWID:18
2018-05-02 18:20:04.509 (BGAPI) Infolevel:1
2018-05-02 18:20:04.531 Incoming connection from: 127.0.0.1
2018-05-02 18:20:04.531 subtype = Interface Response
Sequence nbr = 2
response on cmnd = Get Status
Transceiver type = 433.92MHz
Firmware version = 1017
Firmware type = Ext
Hardware version = 1.3
Undec off
X10 disabled
ARC enabled
AC enabled
HomeEasy EU disabled
Meiantech/Atlantic disabled
Oregon Scientific enabled
ATI/Cartelectronic disabled
Visonic disabled
Mertik disabled
AD disabled
Hideki disabled
La Crosse disabled
FS20/Legrand disabled
ProGuard disabled
BlindsT0 disabled
BlindsT1 disabled
AE enabled
RUBiCSON disabled
FineOffset disabled
Lighting4 enabled
Conrad RSL disabled
ByronSX disabled
IMAGINTRONIX disabled
KEELOQ disabled
Home Confort enabled
2018-05-02 18:20:04.562 (PSexec) Listen on PSexecWebserver - Port: 9002
2018-05-02 18:20:04.562 (esensor) Connecting to: xxxxxxxxxxxxxxxxxxxxxx
2018-05-02 18:20:04.593 (esensor) Connected to Broadlink device: xxxxxxxxx
2018-05-02 18:20:04.627 (esensor) Update 1:'10' (esensor - A1 - Status)
2018-05-02 18:20:04.628 (esensor) Device Number begin to : 5
2018-05-02 18:20:04.630 (sp3) Connecting to: xxxxxxxxxxxxxxxxxx
2018-05-02 18:20:04.647 (sp3) Connected to Broadlink device: xxxxxxxxxx
2018-05-02 18:20:04.693 (sp3) Device Number begin to : 1
2018-05-02 18:20:04.693 (sp3s) Connecting to: xxxxxxxxxxxxxxxxxxxxxxxxx
2018-05-02 18:20:04.747 (sp3s) Connected to Broadlink device: xxxxxxxxxx
2018-05-02 18:20:04.809 (sp3s) Device Number begin to : 3
2018-05-02 18:20:04.863 (RM2 Salon) Processing 'PollIntervalDirective' message
2018-05-02 18:20:04.863 (RM2 Salon) Heartbeat interval set to: 30.
2018-05-02 18:20:04.925 (Orange) Connected successfully to: 192.168.1.1:80
2018-05-02 18:20:05.179 Error: (BGAPI) Error status : Error to start :COM7
2018-05-02 18:20:12.787 (RM2 Salon) Pushing 'onHeartbeatCallback' on to queue
2018-05-02 18:20:12.834 (RM2 Salon) Processing 'onHeartbeatCallback' message
2018-05-02 18:20:12.834 (RM2 Salon) Calling message handler 'onHeartbeat'.
2018-05-02 18:20:13.272 (RM2 Salon - Temp) Updating device from 1:'22.7' to have values 1:'22.7'.
2018-05-02 18:20:13.756 (RM2 Salon) Update 1:'22.7' (RM2 Salon - Temp)
2018-05-02 18:20:13.787 (Meteo Underground) Temp + Humidity + Baro (WWW-THB)
2018-05-02 18:20:13.818 (Meteo Underground) Wind (WWW-Vent)
2018-05-02 18:20:13.841 (Meteo Underground) UV (WWW-Ultra Violet)
2018-05-02 18:20:13.856 (Meteo Underground) General/Visibility (WWW-Visibilite)
2018-05-02 18:20:13.872 (esensor) Update 0:'20.8' (esensor - A1 - Temperature)
2018-05-02 18:20:13.887 (esensor) Update 46:'0' (esensor - A1 - Humidity)
2018-05-02 18:20:13.903 (esensor) Update 400:'excellent' (esensor - A1 - Air Quality)
2018-05-02 18:20:13.919 (esensor) Update 0:'60' (esensor - A1 - Noise)
2018-05-02 18:20:13.937 (esensor) Update 0:'400' (esensor - A1 - Light)
2018-05-02 18:20:13.956 (esensor) Update 1:'Get Data From Sensors' (esensor - A1 - Status)
2018-05-02 18:20:14.172 (sp3s) Update 0:'0.0' (sp3s - SP3S current)
2018-05-02 18:20:14.172 Warning: Notification NOT handled (type: F3 - General, subtype: 29 - kWh), please report on GitHub!
2018-05-02 18:20:14.172 (sp3s) Update 0:'0.0' (sp3s - SP3S usage)
2018-05-02 18:20:14.889 (RFX433E) Energy (Compteur EDF)
2018-05-02 18:20:16.706 (RFX433E) Temp + Humidity (433-TempSalon)
Jufo
Posts: 28
Joined: Friday 17 February 2017 13:24
Target OS: Linux
Domoticz version: 3.9389
Location: Poland
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Jufo »

I only see this :(

Code: Select all

 Filter: X
2018-05-02 17:10:40.668 Domoticz V3.9389 (c)2012-2018 GizMoCuz
2018-05-02 17:10:40.669 Build Hash: 28d24885, Date: 2018-05-01 00:17:26
2018-05-02 17:10:40.669 Startup Path: /home/robert/domoticz/
2018-05-02 17:10:40.744 Sunrise: 05:03:00 SunSet: 20:03:00
2018-05-02 17:10:40.744 Day length: 14:59:00 Sun at south: 12:05:00
2018-05-02 17:10:40.744 Civil twilight start: 04:24:00 Civil twilight end: 20:42:00
2018-05-02 17:10:40.744 Nautical twilight start: 03:33:00 Nautical twilight end: 21:33:00
2018-05-02 17:10:40.744 Astronomical twilight start: 02:27:00 Astronomical twilight end: 22:39:00
2018-05-02 17:10:40.744 EventSystem: reset all events...
2018-05-02 17:10:40.909 PluginSystem: Started, Python version '3.5.3'.
2018-05-02 17:10:40.909 Active notification Subsystems: (0/14)
2018-05-02 17:10:40.916 WebServer(HTTP) started on address: :: with port 8080
2018-05-02 17:10:40.924 WebServer(SSL) started on address: :: with port 443
2018-05-02 17:10:40.924 Proxymanager started.
2018-05-02 17:10:40.924 Starting shared server on: :::6144
2018-05-02 17:10:40.924 TCPServer: shared server started...
2018-05-02 17:10:40.924 RxQueue: queue worker started...
2018-05-02 17:10:40.965 Incoming connection from: 192.168.3.37
2018-05-02 17:10:41.996 Incoming connection from: 192.168.3.8
2018-05-02 17:10:42.925 Hardware Monitor: Started
2018-05-02 17:10:42.948 (RM mini 3) Started.
2018-05-02 17:10:42.948 EventSystem: reset all events...
2018-05-02 17:10:42.948 EventSystem: reset all device statuses...
2018-05-02 17:10:42.967 Python EventSystem: Initalizing event module.
2018-05-02 17:10:42.968 EventSystem: Started
2018-05-02 17:10:42.968 EventSystem: Queue thread started...
2018-05-02 17:10:43.332 PluginSystem: Entering work loop.
2018-05-02 17:10:43.650 Incoming connection from: 192.168.3.5
2018-05-02 17:10:43.668 (RM mini 3) Entering work loop.
2018-05-02 17:10:43.668 (RM mini 3) Initialized version 4.1.0, author 'zak45'
2018-05-02 17:11:02.070 Incoming connection from: 192.168.3.7 
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 »

Jufo wrote: Wednesday 02 May 2018 18:26 I only see this :(
2018-05-02 17:10:43.332 PluginSystem: Entering work loop.
2018-05-02 17:10:43.650 Incoming connection from: 192.168.3.5
2018-05-02 17:10:43.668 (RM mini 3) Entering work loop.
2018-05-02 17:10:43.668 (RM mini 3) Initialized version 4.1.0, author 'zak45'
2018-05-02 17:11:02.070 Incoming connection from: 192.168.3.7 [/code]
Just configure another HW in Domoticz for this plugin and select type as 'Discovery', see Wiki
Made a discovery to show us the broadlink devices detected on your network.
Jufo
Posts: 28
Joined: Friday 17 February 2017 13:24
Target OS: Linux
Domoticz version: 3.9389
Location: Poland
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Jufo »

zak45 wrote: Wednesday 02 May 2018 18:34 Just configure another HW in Domoticz for this plugin and select type as 'Discovery', see Wiki
Made a discovery to show us the broadlink devices detected on your network.
The logs are the same. But when I dropped the hardware, I noticed it in the logs:

Code: Select all

2018-05-02 18:38:36.856 (RM mini 3) Stop directive received.
2018-05-02 18:38:37.256 (RM mini 3) Exiting work loop.
2018-05-02 18:38:41.861 Error: (RM mini 3) Plugin did not stop after 5 seconds, flushing event queue...
2018-05-02 18:38:41.861 Error: (RM mini 3) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-05-02 18:38:41.861 Error: (RM mini 3) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-05-02 18:38:41.861 Error: (RM mini 3) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-05-02 18:38:41.861 Error: (RM mini 3) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-05-02 18:38:41.861 Error: (RM mini 3) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-05-02 18:38:41.861 Error: (RM mini 3) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-05-02 18:38:41.861 Error: (RM mini 3) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-05-02 18:38:41.861 Error: (RM mini 3) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-05-02 18:38:41.861 Error: (RM mini 3) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-05-02 18:38:41.861 Error: (RM mini 3) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-05-02 18:38:41.861 Error: (RM mini 3) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-05-02 18:38:41.861 Error: (RM mini 3) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-05-02 18:38:41.861 Error: (RM mini 3) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-05-02 18:38:41.861 Error: (RM mini 3) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2018-05-02 18:38:41.861 Error: (RM mini 3) Callback event 'onStopCallback' (Python call 'onStop') discarded.
2018-05-02 18:38:41.861 (RM mini 3) Stopping threads.
2018-05-02 18:38:41.861 (RM mini 3) Stopped. 
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 »

Jufo wrote: Wednesday 02 May 2018 20:39 The logs are the same. But when I dropped the hardware, I noticed it in the logs:
Do not have enough information to help. And on my side I work on Windows !!!

What you need to do:
Do not use the plugin until you do not have been able to connect to your RM Mini 3 manually.
You will found all information on Github.
Once you have been able to connect manually, lets reconfigure the plugin, this should work.. this work for others.
Jufo
Posts: 28
Joined: Friday 17 February 2017 13:24
Target OS: Linux
Domoticz version: 3.9389
Location: Poland
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Jufo »

zak45 wrote: Wednesday 02 May 2018 22:43 What you need to do:
Do not use the plugin until you do not have been able to connect to your RM Mini 3 manually.
You will found all information on Github.
Once you have been able to connect manually, lets reconfigure the plugin, this should work.. this work for others.
Can you give a link to github?
HarleyZard
Posts: 9
Joined: Tuesday 24 April 2018 22:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by HarleyZard »

Hi Jufo,

I've the same issue (viewtopic.php?f=65&t=21645&hilit=broadl ... 60#p178764).
- no device add in devices tab
- no log after start of the plugin
- no log with ip addresse from broadlink (I've Broadlink RM2+)
- and the same log as you when I close domoticz

I tried to install Python 3.6, but when I start domoticz, it only load library 3.5 in the log ; I don't understand to load library 3.6 in Domoticz... perhaps it's the solution...
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest