Hello to everyone,
I've problem with this python plugin.. for example LGTV plugin works.
Since I installed the stable version of domoticz (V3.8153) I have to use version 3.0 of this plugin.
I've a Broadlink RM Mini3, there are logs of domoticz starting:
Code: Select all
2018-06-11 11:27:11.999 Domoticz V3.8153 (c)2012-2017 GizMoCuz
2018-06-11 11:27:11.999 Build Hash: 494fff7, Date: 2017-07-30 12:19:41
2018-06-11 11:27:11.999 Startup Path: /home/pi/domoticz/
2018-06-11 11:27:12.031 Sunrise: 05:34:00 SunSet:21:11:00
2018-06-11 11:27:12.031 EventSystem: reset all events...
2018-06-11 11:27:12.160 PluginSystem: Started, Python version '3.5.3'.
2018-06-11 11:27:12.169 Active notification Subsystems: (0/12)
2018-06-11 11:27:12.170 WebServer(HTTP) started on address: :: with port 8080
2018-06-11 11:27:12.176 WebServer(SSL) started on address: :: with port 443
2018-06-11 11:27:12.177 Proxymanager started.
2018-06-11 11:27:12.179 Starting shared server on: :::6144
2018-06-11 11:27:12.179 TCPServer: shared server started...
2018-06-11 11:27:12.179 RxQueue: queue worker started...
2018-06-11 11:27:14.181 EventSystem: reset all events...
2018-06-11 11:27:14.181 EventSystem: reset all device statuses...
2018-06-11 11:27:14.379 Python EventSystem: Module not found - Trying to initialize.
2018-06-11 11:27:14.379 Python EventSystem: Initalizing event module.
2018-06-11 11:27:14.380 EventSystem: Started
2018-06-11 11:27:14.533 PluginSystem: Entering work loop.
2018-06-11 11:27:14.841 (IR_Living) Initialized version 3.0.0, author 'zak45'
2018-06-11 11:27:14.845 (IR_Living) Debug log level set to: 'true'.
2018-06-11 11:27:14.845 (IR_Living) 'Key':'BroadlinkRM2'
2018-06-11 11:27:14.845 (IR_Living) 'Mode6':'Debug'
2018-06-11 11:27:14.845 (IR_Living) 'Name':'IR_Living'
2018-06-11 11:27:14.845 (IR_Living) 'Version':'3.0.0'
2018-06-11 11:27:14.845 (IR_Living) 'Mode4':'yes'
2018-06-11 11:27:14.845 (IR_Living) 'Mode3':'RM2'
2018-06-11 11:27:14.845 (IR_Living) 'HomeFolder':'/home/pi/domoticz/plugins/BroadlinkRM2/'
2018-06-11 11:27:14.845 (IR_Living) 'Port':'0'
2018-06-11 11:27:14.845 (IR_Living) 'HardwareID':'5'
2018-06-11 11:27:14.845 (IR_Living) 'Author':'zak45'
2018-06-11 11:27:14.845 (IR_Living) 'Mode1':'780F771A3BF9'
2018-06-11 11:27:14.845 (IR_Living) 'Mode2':'/home/pi/domoticz/broadlink_ini'
2018-06-11 11:27:14.845 (IR_Living) 'Mode5':'9000'
2018-06-11 11:27:14.845 (IR_Living) 'Address':'192.168.8.114'
2018-06-11 11:27:14.845 (IR_Living) Device count: 3
2018-06-11 11:27:14.845 (IR_Living) Device: 1 - ID: 43, Name: 'IR_Living - Command', nValue: 0, sValue: 'Off'
2018-06-11 11:27:14.845 (IR_Living) Device ID: '43'
2018-06-11 11:27:14.845 (IR_Living) Device Name: 'IR_Living - Command'
2018-06-11 11:27:14.845 (IR_Living) Device nValue: 0
2018-06-11 11:27:14.845 (IR_Living) Device sValue: 'Off'
2018-06-11 11:27:14.845 (IR_Living) Device LastLevel: 0
2018-06-11 11:27:14.845 (IR_Living) Device: 254 - ID: 44, Name: 'IR_Living - Remote', nValue: 0, sValue: ''
2018-06-11 11:27:14.845 (IR_Living) Device ID: '44'
2018-06-11 11:27:14.845 (IR_Living) Device Name: 'IR_Living - Remote'
2018-06-11 11:27:14.845 (IR_Living) Device nValue: 0
2018-06-11 11:27:14.845 (IR_Living) Device sValue: ''
2018-06-11 11:27:14.845 (IR_Living) Device LastLevel: 0
2018-06-11 11:27:14.845 (IR_Living) Device: 255 - ID: 45, Name: 'IR_Living - Import', nValue: 0, sValue: 'Off'
2018-06-11 11:27:14.845 (IR_Living) Device ID: '45'
2018-06-11 11:27:14.845 (IR_Living) Device Name: 'IR_Living - Import'
2018-06-11 11:27:14.845 (IR_Living) Device nValue: 0
2018-06-11 11:27:14.845 (IR_Living) Device sValue: 'Off'
2018-06-11 11:27:14.845 (IR_Living) Device LastLevel: 0
2018-06-11 11:27:14.846 (IR_Living) Connecting to: 192.168.8.114:780F771A3BF9
2018-06-11 11:27:14.846 Error: (IR_Living) Error Connecting to Broadlink device....
2018-06-11 11:27:14.846 (IR_Living) Device Number begin to : 1
2018-06-11 11:27:14.849 (IR_Living) No ini file :/home/pi/domoticz/broadlink_ini/remote/plugin_remote_5.ini
2018-06-11 11:27:14.849 (IR_Living) Custom Commands for Remote not managed
2018-06-11 11:27:14.849 (IR_Living) Heartbeat interval set to: 30.
But it always say:
Error Connecting to Broadlink device....
With e-Control app it works perfect.
if I try to make a LEARN command log says:
2018-06-11 11:21:39.697 (IR_Living) When Broadlink led is lit press the button on your remote within 5 seconds
2018-06-11 11:21:39.697 Error: (IR_Living) 'onCommand' failed 'NameError':'name 'device' is not defined'.
2018-06-11 11:21:39.697 Error: (IR_Living) ----> Line 158 in /home/pi/domoticz/plugins/BroadlinkRM2/plugin.py, function onCommand
2018-06-11 11:21:39.697 Error: (IR_Living) ----> Line 417 in /home/pi/domoticz/plugins/BroadlinkRM2/plugin.py, function learn
I have a doubt, my rasp has two network interfaces:
eth0 where it is connected to the internet and a wlan0 where it is connected to the iOT network that has no internet.
The RM3 broadlink is in the iOT network (of course),
from raspberry I correctly ping the broadlink RM3 and it works from the app if I connect my iphone into the iOT wlan.
Is it possible that the plugin can not reach the broadlink for this reason?
Where can I possibly impose to use the wlan0 interface?
Do I have to do something from the Broadlink app to enable the HTTP server?
Thank you very much and congratulations for the excellent work!