Erreur BROADLINK RM Pro+

Forum dédié aux problématiques concernant les scripts pour DomoticZ.
Entourez votre code et les logs avec les balises nommées code grâce au bouton <\>.
georges54
Messages : 105
Inscription : 01 févr. 2018, 18:10

Erreur BROADLINK RM Pro+

Message par georges54 »

Bonjour,
Je viens de recevoir mon BROADLINK RM Pro+.
Ma configuration est la suivante :
Domoticz Version: 3.8153
Version Python : 3.4.4

Comme indiqué dans différents forums, j'ai crée un répertoire "Broadlink" dans "domoticz/plugins/" dans lequel j'ai copié les fichiers :
plugin_http.py, plugin_http.sh, plugin.py et plugin_send.py.

Après avoir relancé DOMOTICZ, celui-ci me propose bien le nouveau matériel : "Broadlink RM2 with Kodi Remote".
Je complète :
- l'adresse IP de l'appareil
- l'adresse MAC de l'appareil
- device type : Remote Control RM2/RM with temperature device
- folder to store ini files : /home/pi/domoticz/plugins/
- generate import device : TRUE

L'installation semble se passer correctement (la ligne apparait dans le tableau des matériels), mais j'ai le message d'erreur : "Error: RMPro hardware (23) thread seems to have ended unexpectedly".

Avez-vous eu le même problème ?
Avez-vous trouvé une solution ?
Komagain
Messages : 5
Inscription : 11 avr. 2018, 22:03

Re: Erreur BROADLINK RM Pro+

Message par Komagain »

as-tu installé broadlink et suivi les étapes?
(je n'ai toujours pas réussi non plus à le faire fonctionner)


https://www.domoticz.com/wiki/Plugins/B ... nformation

Code : Tout sélectionner

domoticz looks lib at

/usr/local/lib/python3.4/dist-packages/


this mean once

sudo pip3 install Crypto
and
sudo pip3 install broadlink
and
sudo pip3 install pyaes

pip3 is use to install lib on Python 3(install pip3: sudo apt-get install python3-pip )

is done, you have to copy lib on the good dir :


sudo cp -r /usr/local/lib/python3.4/dist-packages/Crypto/ /usr/lib/python3.4/
and
sudo cp -r /usr/local/lib/python3.4/dist-packages/broadlink /usr/lib/python3.4/

or

sudo cp -r /usr/local/lib/python3.4/dist-packages/broadlink-0.5-py3.4.egg/broadlink /usr/lib/python3.4/
sudo cp -r /usr/local/lib/python3.4/dist-packages/pyaes /usr/lib/python3.4/


Then restart domoticz


sudo service domoticz restart
starjuice
Messages : 17
Inscription : 12 avr. 2018, 11:53

Re: Erreur BROADLINK RM Pro+

Message par starjuice »

J'ai réussi à avoir les icones "discovery" etc.. Mais depuis que j'ai réinstaller mon rpi3 avec raspbian strech, j'ai broadlink rm2 with remote kodi mais plus d'icone... Je cherche depuis 2 jours.
Et même avant je n'avais que discovery qui fonctionnait.

Si quelqu'un a réussit ca serait vraiment bien de partager les infos car ce RM pro+ me rend dingue
starjuice
Messages : 17
Inscription : 12 avr. 2018, 11:53

Re: Erreur BROADLINK RM Pro+

Message par starjuice »

j'ai finalement decidé de partir sur une nouvelle install avec Jessie et python 3.4.2.
Je peux faire un discovery à nouveau, mais il ne veux pas se connecter au Rmpro+... Donc impossible de faire un learn ou autre.

J'ai tout essayé. Voici mon log si une âme charitable veux bien m'aider j'ai mis des X sur mon addresse Mac.

Code : Tout sélectionner

 2018-04-12 14:54:10.369 Domoticz V3.9208 (c)2012-2018 GizMoCuz
2018-04-12 14:54:10.369 Build Hash: ff40091a, Date: 2018-04-08 17:15:17
2018-04-12 14:54:10.370 Startup Path: /home/pi/domoticz/
2018-04-12 14:54:10.406 Sunrise: 07:06:00 SunSet: 20:23:00
2018-04-12 14:54:10.406 Day length: 13:17:00 Sun at south: 13:05:00
2018-04-12 14:54:10.406 Civil twilight start: 06:37:00 Civil twilight end: 20:53:00
2018-04-12 14:54:10.406 Nautical twilight start: 06:01:00 Nautical twilight end: 21:29:00
2018-04-12 14:54:10.406 Astronomical twilight start: 05:24:00 Astronomical twilight end: 22:06:00
2018-04-12 14:54:10.406 EventSystem: reset all events...
2018-04-12 14:54:10.487 PluginSystem: Started, Python version '3.4.2'.
2018-04-12 14:54:10.496 Active notification Subsystems: (0/14)
2018-04-12 14:54:10.497 WebServer(HTTP) started on address: :: with port 8080
2018-04-12 14:54:10.502 WebServer(SSL) started on address: :: with port 443
2018-04-12 14:54:10.503 Proxymanager started.
2018-04-12 14:54:10.504 Starting shared server on: :::6144
2018-04-12 14:54:10.505 TCPServer: shared server started...
2018-04-12 14:54:10.505 RxQueue: queue worker started...
2018-04-12 14:54:12.505 (Rmpro) Started.
2018-04-12 14:54:12.506 EventSystem: reset all events...
2018-04-12 14:54:12.506 EventSystem: reset all device statuses...
2018-04-12 14:54:12.626 Python EventSystem: Initalizing event module.
2018-04-12 14:54:12.626 EventSystem: Started
2018-04-12 14:54:12.627 EventSystem: Queue thread started...
2018-04-12 14:54:12.907 PluginSystem: Entering work loop.
2018-04-12 14:54:13.115 (Rmpro) Entering work loop.
2018-04-12 14:54:13.116 (Rmpro) Initialized version 4.0.0, author 'zak45'
2018-04-12 14:54:13.169 (Rmpro) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2018-04-12 14:54:13.169 (Rmpro) 'Mode2':'/home/pi/domoticz/plugins/BroadlinkRM2'
2018-04-12 14:54:13.169 (Rmpro) 'Version':'4.0.0'
2018-04-12 14:54:13.169 (Rmpro) 'Mode1':'xxxxxxxxxxx'
2018-04-12 14:54:13.169 (Rmpro) 'DomoticzHash':'ff40091a'
2018-04-12 14:54:13.169 (Rmpro) 'HardwareID':'2'
2018-04-12 14:54:13.169 (Rmpro) 'DomoticzVersion':'3.9208'
2018-04-12 14:54:13.169 (Rmpro) 'Mode4':'yes'
2018-04-12 14:54:13.169 (Rmpro) 'Address':'192.168.0.71'
2018-04-12 14:54:13.169 (Rmpro) 'Port':'0'
2018-04-12 14:54:13.169 (Rmpro) 'Mode6':'Debug'
2018-04-12 14:54:13.169 (Rmpro) 'Key':'BroadlinkRM2'
2018-04-12 14:54:13.169 (Rmpro) 'Mode3':'RM2'
2018-04-12 14:54:13.169 (Rmpro) 'HomeFolder':'/home/pi/domoticz/plugins/BroadlinkRM2/'
2018-04-12 14:54:13.169 (Rmpro) 'DomoticzBuildTime':'2018-04-08 17:15:17'
2018-04-12 14:54:13.169 (Rmpro) 'Name':'Rmpro'
2018-04-12 14:54:13.169 (Rmpro) 'Mode5':'9000'
2018-04-12 14:54:13.169 (Rmpro) 'Author':'zak45'
2018-04-12 14:54:13.169 (Rmpro) Device count: 4
2018-04-12 14:54:13.169 (Rmpro) Device: 1 - ID: 1, Name: 'Rmpro - Command', nValue: 0, sValue: 'Off'
2018-04-12 14:54:13.169 (Rmpro) Device ID: '1'
2018-04-12 14:54:13.169 (Rmpro) Device Name: 'Rmpro - Command'
2018-04-12 14:54:13.169 (Rmpro) Device nValue: 0
2018-04-12 14:54:13.170 (Rmpro) Device sValue: 'Off'
2018-04-12 14:54:13.170 (Rmpro) Device LastLevel: 0
2018-04-12 14:54:13.170 (Rmpro) Device: 2 - ID: 4, Name: 'Rmpro - Temp', nValue: 0, sValue: ''
2018-04-12 14:54:13.170 (Rmpro) Device ID: '4'
2018-04-12 14:54:13.170 (Rmpro) Device Name: 'Rmpro - Temp'
2018-04-12 14:54:13.170 (Rmpro) Device nValue: 0
2018-04-12 14:54:13.170 (Rmpro) Device sValue: ''
2018-04-12 14:54:13.170 (Rmpro) Device LastLevel: 0
2018-04-12 14:54:13.170 (Rmpro) Device: 254 - ID: 2, Name: 'Rmpro - Remote', nValue: 0, sValue: ''
2018-04-12 14:54:13.170 (Rmpro) Device ID: '2'
2018-04-12 14:54:13.170 (Rmpro) Device Name: 'Rmpro - Remote'
2018-04-12 14:54:13.170 (Rmpro) Device nValue: 0
2018-04-12 14:54:13.170 (Rmpro) Device sValue: ''
2018-04-12 14:54:13.170 (Rmpro) Device LastLevel: 0
2018-04-12 14:54:13.170 (Rmpro) Device: 255 - ID: 3, Name: 'Rmpro - Import', nValue: 0, sValue: 'Off'
2018-04-12 14:54:13.170 (Rmpro) Device ID: '3'
2018-04-12 14:54:13.170 (Rmpro) Device Name: 'Rmpro - Import'
2018-04-12 14:54:13.170 (Rmpro) Device nValue: 0
2018-04-12 14:54:13.170 (Rmpro) Device sValue: 'Off'
2018-04-12 14:54:13.170 (Rmpro) Device LastLevel: 0
2018-04-12 14:54:13.170 (Rmpro) Pushing 'PollIntervalDirective' on to queue
2018-04-12 14:54:13.170 (Rmpro - Import) Updating device from 0:'Off' to have values 0:'Off'.
2018-04-12 14:54:13.174 (Rmpro) Update 0:'Off' (Rmpro - Import)
2018-04-12 14:54:13.174 (Rmpro) Connecting to: 192.168.0.71:xxxxxxxxxxxx
2018-04-12 14:54:13.175 Error: (Rmpro) Error Connecting to Broadlink device....192.168.0.71
2018-04-12 14:54:13.218 (Rmpro) No ini file :/home/pi/domoticz/plugins/BroadlinkRM2/remote/plugin_remote_2.ini
2018-04-12 14:54:13.218 (Rmpro) Custom Commands for Remote not managed
2018-04-12 14:54:13.218 (Rmpro) Device Number begin to : 2
2018-04-12 14:54:13.218 (Rmpro) Processing 'PollIntervalDirective' message
2018-04-12 14:54:13.218 (Rmpro) Heartbeat interval set to: 30.
2018-04-12 14:54:22.617 (Rmpro) Pushing 'onHeartbeatCallback' on to queue
2018-04-12 14:54:22.635 (Rmpro) Processing 'onHeartbeatCallback' message
2018-04-12 14:54:22.635 (Rmpro) Calling message handler 'onHeartbeat'.
2018-04-12 14:54:52.622 (Rmpro) Pushing 'onHeartbeatCallback' on to queue
2018-04-12 14:55:22.626 (Rmpro) Pushing 'onHeartbeatCallback' on to queue
2018-04-12 14:55:22.648 (Rmpro) Processing 'onHeartbeatCallback' message
2018-04-12 14:55:22.648 (Rmpro) Calling message handler 'onHeartbeat'.
2018-04-12 14:55:22.649 Error: (Rmpro) Error getting temperature data from Broadlink device....Timeout
2018-04-12 14:55:22.649 Error: (Rmpro) Error Connecting to Broadlink device....192.168.0.71
2018-04-12 14:55:52.631 (Rmpro) Pushing 'onHeartbeatCallback' on to queue
2018-04-12 14:55:52.653 (Rmpro) Processing 'onHeartbeatCallback' message
2018-04-12 14:55:52.653 (Rmpro) Calling message handler 'onHeartbeat'.
2018-04-12 14:56:22.636 (Rmpro) Pushing 'onHeartbeatCallback' on to queue 
Komagain
Messages : 5
Inscription : 11 avr. 2018, 22:03

Re: Erreur BROADLINK RM Pro+

Message par Komagain »

@starjuice
ce sont les seules erreurs qui apparaissent dans la log ?

Code : Tout sélectionner

2018-04-12 14:54:13.175 Error: (Rmpro) Error Connecting to Broadlink device....192.168.0.71
2018-04-12 14:54:13.218 (Rmpro) No ini file :/home/pi/domoticz/plugins/BroadlinkRM2/remote/plugin_remote_2.ini
tu es certain de l'adresse ?
starjuice
Messages : 17
Inscription : 12 avr. 2018, 11:53

Re: Erreur BROADLINK RM Pro+

Message par starjuice »

Oui j'en suis sûr et certains l'ip est bonne.
Et oui je n'ai que ca comme erreur. Ca me rend dingue.
mouk
Messages : 1
Inscription : 04 mai 2018, 18:55

Re: Erreur BROADLINK RM Pro+

Message par mouk »

Bonjour,

j'ai un pb différent. Ca fait 3 jours que je suis dessus...

J'ai suivi le wiki. Le RM Pro ne semble pas être découvert.

Pourtant en utilisant les librairies python broadlink a côté, j'ai réussi à communiquer avec lui.

Voilà les seules traces que j'ai... :(
2018-05-04 19:07:21.375 (Br) Initialized version 4.1.0, author 'zak45'
2018-05-04 19:07:21.380 (Br) Entering work loop.

2018-05-04 19:13:00.222 Error: Br hardware (16) thread seems to have ended unexpectedly

Je ne sais plus ou chercher... :(
Jeff
Messages : 1007
Inscription : 17 nov. 2016, 20:54
Localisation : Rennes (35)

Re: Erreur BROADLINK RM Pro+

Message par Jeff »

starjuice a écrit :j'ai finalement decidé de partir sur une nouvelle install avec Jessie et python 3.4.2.
Je peux faire un discovery à nouveau, mais il ne veux pas se connecter au Rmpro+... Donc impossible de faire un learn ou autre.

J'ai tout essayé. Voici mon log si une âme charitable veux bien m'aider j'ai mis des X sur mon addresse Mac.

Code : Tout sélectionner

 2018-04-12 14:54:10.369 Domoticz V3.9208 (c)2012-2018 GizMoCuz
2018-04-12 14:54:10.369 Build Hash: ff40091a, Date: 2018-04-08 17:15:17
2018-04-12 14:54:10.370 Startup Path: /home/pi/domoticz/
2018-04-12 14:54:10.406 Sunrise: 07:06:00 SunSet: 20:23:00
2018-04-12 14:54:10.406 Day length: 13:17:00 Sun at south: 13:05:00
2018-04-12 14:54:10.406 Civil twilight start: 06:37:00 Civil twilight end: 20:53:00
2018-04-12 14:54:10.406 Nautical twilight start: 06:01:00 Nautical twilight end: 21:29:00
2018-04-12 14:54:10.406 Astronomical twilight start: 05:24:00 Astronomical twilight end: 22:06:00
2018-04-12 14:54:10.406 EventSystem: reset all events...
2018-04-12 14:54:10.487 PluginSystem: Started, Python version '3.4.2'.
2018-04-12 14:54:10.496 Active notification Subsystems: (0/14)
2018-04-12 14:54:10.497 WebServer(HTTP) started on address: :: with port 8080
2018-04-12 14:54:10.502 WebServer(SSL) started on address: :: with port 443
2018-04-12 14:54:10.503 Proxymanager started.
2018-04-12 14:54:10.504 Starting shared server on: :::6144
2018-04-12 14:54:10.505 TCPServer: shared server started...
2018-04-12 14:54:10.505 RxQueue: queue worker started...
2018-04-12 14:54:12.505 (Rmpro) Started.
2018-04-12 14:54:12.506 EventSystem: reset all events...
2018-04-12 14:54:12.506 EventSystem: reset all device statuses...
2018-04-12 14:54:12.626 Python EventSystem: Initalizing event module.
2018-04-12 14:54:12.626 EventSystem: Started
2018-04-12 14:54:12.627 EventSystem: Queue thread started...
2018-04-12 14:54:12.907 PluginSystem: Entering work loop.
2018-04-12 14:54:13.115 (Rmpro) Entering work loop.
2018-04-12 14:54:13.116 (Rmpro) Initialized version 4.0.0, author 'zak45'
2018-04-12 14:54:13.169 (Rmpro) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2018-04-12 14:54:13.169 (Rmpro) 'Mode2':'/home/pi/domoticz/plugins/BroadlinkRM2'
2018-04-12 14:54:13.169 (Rmpro) 'Version':'4.0.0'
2018-04-12 14:54:13.169 (Rmpro) 'Mode1':'xxxxxxxxxxx'
2018-04-12 14:54:13.169 (Rmpro) 'DomoticzHash':'ff40091a'
2018-04-12 14:54:13.169 (Rmpro) 'HardwareID':'2'
2018-04-12 14:54:13.169 (Rmpro) 'DomoticzVersion':'3.9208'
2018-04-12 14:54:13.169 (Rmpro) 'Mode4':'yes'
2018-04-12 14:54:13.169 (Rmpro) 'Address':'192.168.0.71'
2018-04-12 14:54:13.169 (Rmpro) 'Port':'0'
2018-04-12 14:54:13.169 (Rmpro) 'Mode6':'Debug'
2018-04-12 14:54:13.169 (Rmpro) 'Key':'BroadlinkRM2'
2018-04-12 14:54:13.169 (Rmpro) 'Mode3':'RM2'
2018-04-12 14:54:13.169 (Rmpro) 'HomeFolder':'/home/pi/domoticz/plugins/BroadlinkRM2/'
2018-04-12 14:54:13.169 (Rmpro) 'DomoticzBuildTime':'2018-04-08 17:15:17'
2018-04-12 14:54:13.169 (Rmpro) 'Name':'Rmpro'
2018-04-12 14:54:13.169 (Rmpro) 'Mode5':'9000'
2018-04-12 14:54:13.169 (Rmpro) 'Author':'zak45'
2018-04-12 14:54:13.169 (Rmpro) Device count: 4
2018-04-12 14:54:13.169 (Rmpro) Device: 1 - ID: 1, Name: 'Rmpro - Command', nValue: 0, sValue: 'Off'
2018-04-12 14:54:13.169 (Rmpro) Device ID: '1'
2018-04-12 14:54:13.169 (Rmpro) Device Name: 'Rmpro - Command'
2018-04-12 14:54:13.169 (Rmpro) Device nValue: 0
2018-04-12 14:54:13.170 (Rmpro) Device sValue: 'Off'
2018-04-12 14:54:13.170 (Rmpro) Device LastLevel: 0
2018-04-12 14:54:13.170 (Rmpro) Device: 2 - ID: 4, Name: 'Rmpro - Temp', nValue: 0, sValue: ''
2018-04-12 14:54:13.170 (Rmpro) Device ID: '4'
2018-04-12 14:54:13.170 (Rmpro) Device Name: 'Rmpro - Temp'
2018-04-12 14:54:13.170 (Rmpro) Device nValue: 0
2018-04-12 14:54:13.170 (Rmpro) Device sValue: ''
2018-04-12 14:54:13.170 (Rmpro) Device LastLevel: 0
2018-04-12 14:54:13.170 (Rmpro) Device: 254 - ID: 2, Name: 'Rmpro - Remote', nValue: 0, sValue: ''
2018-04-12 14:54:13.170 (Rmpro) Device ID: '2'
2018-04-12 14:54:13.170 (Rmpro) Device Name: 'Rmpro - Remote'
2018-04-12 14:54:13.170 (Rmpro) Device nValue: 0
2018-04-12 14:54:13.170 (Rmpro) Device sValue: ''
2018-04-12 14:54:13.170 (Rmpro) Device LastLevel: 0
2018-04-12 14:54:13.170 (Rmpro) Device: 255 - ID: 3, Name: 'Rmpro - Import', nValue: 0, sValue: 'Off'
2018-04-12 14:54:13.170 (Rmpro) Device ID: '3'
2018-04-12 14:54:13.170 (Rmpro) Device Name: 'Rmpro - Import'
2018-04-12 14:54:13.170 (Rmpro) Device nValue: 0
2018-04-12 14:54:13.170 (Rmpro) Device sValue: 'Off'
2018-04-12 14:54:13.170 (Rmpro) Device LastLevel: 0
2018-04-12 14:54:13.170 (Rmpro) Pushing 'PollIntervalDirective' on to queue
2018-04-12 14:54:13.170 (Rmpro - Import) Updating device from 0:'Off' to have values 0:'Off'.
2018-04-12 14:54:13.174 (Rmpro) Update 0:'Off' (Rmpro - Import)
2018-04-12 14:54:13.174 (Rmpro) Connecting to: 192.168.0.71:xxxxxxxxxxxx
2018-04-12 14:54:13.175 Error: (Rmpro) Error Connecting to Broadlink device....192.168.0.71
2018-04-12 14:54:13.218 (Rmpro) No ini file :/home/pi/domoticz/plugins/BroadlinkRM2/remote/plugin_remote_2.ini
2018-04-12 14:54:13.218 (Rmpro) Custom Commands for Remote not managed
2018-04-12 14:54:13.218 (Rmpro) Device Number begin to : 2
2018-04-12 14:54:13.218 (Rmpro) Processing 'PollIntervalDirective' message
2018-04-12 14:54:13.218 (Rmpro) Heartbeat interval set to: 30.
2018-04-12 14:54:22.617 (Rmpro) Pushing 'onHeartbeatCallback' on to queue
2018-04-12 14:54:22.635 (Rmpro) Processing 'onHeartbeatCallback' message
2018-04-12 14:54:22.635 (Rmpro) Calling message handler 'onHeartbeat'.
2018-04-12 14:54:52.622 (Rmpro) Pushing 'onHeartbeatCallback' on to queue
2018-04-12 14:55:22.626 (Rmpro) Pushing 'onHeartbeatCallback' on to queue
2018-04-12 14:55:22.648 (Rmpro) Processing 'onHeartbeatCallback' message
2018-04-12 14:55:22.648 (Rmpro) Calling message handler 'onHeartbeat'.
2018-04-12 14:55:22.649 Error: (Rmpro) Error getting temperature data from Broadlink device....Timeout
2018-04-12 14:55:22.649 Error: (Rmpro) Error Connecting to Broadlink device....192.168.0.71
2018-04-12 14:55:52.631 (Rmpro) Pushing 'onHeartbeatCallback' on to queue
2018-04-12 14:55:52.653 (Rmpro) Processing 'onHeartbeatCallback' message
2018-04-12 14:55:52.653 (Rmpro) Calling message handler 'onHeartbeat'.
2018-04-12 14:56:22.636 (Rmpro) Pushing 'onHeartbeatCallback' on to queue 
J'ai le même problème de fichier non trouvé sur un rm mini3 :

Code : Tout sélectionner

 (Rmpro) No ini file :/home/pi/domoticz/plugins/BroadlinkRM2/remote/plugin_remote_2.ini
Quand il créé repertoire remote, import et __pycache__ , il les met avec user et groupe "root". J'ai beau changer de user et groupe et attribuer tous les droits, il ne créé jamais de fichier .ini.

Une idée ?
Version: 2023.1 sur VM Synology, docker Zwave Js UI (Z-stick GEN5, Fibaro...), Zigbeefordomoticz. Nextion RGB Led Screen
Jeff
Messages : 1007
Inscription : 17 nov. 2016, 20:54
Localisation : Rennes (35)

Re: Erreur BROADLINK RM Pro+

Message par Jeff »

starjuice a écrit :Oui j'en suis sûr et certains l'ip est bonne.
Et oui je n'ai que ca comme erreur. Ca me rend dingue.
Moi aussi, as tu résolu ton problème ?
Je vais le jeter ce broadlink :lol:
Version: 2023.1 sur VM Synology, docker Zwave Js UI (Z-stick GEN5, Fibaro...), Zigbeefordomoticz. Nextion RGB Led Screen
vil1driver
Messages : 5661
Inscription : 30 janv. 2015, 11:07
Localisation : Rennes (35)

Re: Erreur BROADLINK RM Pro+

Message par vil1driver »

Ne pas jeter.. :D
MAJ = VIDER LE CACHE(<-Clicable)
/!\Les mises à jour de Domoticz sont souvent sources de difficultés, ne sautez pas dessus
modules.lua

Un ex domoticzien
Répondre