Python Plugin : Broadlink RM2 V4

Python and python framework

Moderator: leecollings

Frtoto
Posts: 4
Joined: Monday 06 August 2018 20:17
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Frtoto »

Hello,

I try to install the plugin under windows but I get the following message

Code: Select all

Required Python is missing
.

I have Python 3.8.2 installed, there is no error in the Domoticz log at startup

Code: Select all

Status: PluginSystem: Started, Python version '3.8.2'.
Could you help me?

Thank you
wube
Posts: 10
Joined: Wednesday 18 October 2017 12:56
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by wube »

Hi Everyone,
I'm running Domoticz 4.10717 on QNAP and trying to start using plugins system. Domoticz doesn't say that PluginSystem has been started. I have python2.7 and python3.8 installed via opkg (Entware). Can anyone advise me how to debug this and get it started? Thank you.
arcpaqua
Posts: 16
Joined: Saturday 23 June 2018 20:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10338
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by arcpaqua »

Hi Zak,
I write to you again after almost 1 year. The coronavirus helps me to come back to my domoticz problems! :P

I wrote to you about an issue regarding the plugin that I summerize you:
The switch "Broadlink RM2 [...] - Remote" doesn't work.
- All the learned Boradlink's switches work fine
- If I click on the remote switch I get this result:
2020-03-23 15:36:46.187 Status: User: Admin initiated a switch command (28/Broadlink RM2 Living - Remote/On)
2020-03-23 15:36:46.193 Error: (Broadlink RM2 Living) ini file not found: /home/pi/domoticz/plugins/BroadlinkRM2/ini/BroadlinkRM2-5-254.ini
- As you can see the plugin is searching in the wrong folder the wrong file. How is it possible?
- If I restart the hardware I get the following result:
Spoiler: show
2020-03-23 15:19:49.875 Status: (Broadlink RM2 Living) Stop directive received.
2020-03-23 15:19:49.875 Status: (Broadlink RM2 Living) Exiting work loop.

2020-03-23 15:19:50.506 (Broadlink RM2 Living) Device nValue: 0
2020-03-23 15:19:50.506 (Broadlink RM2 Living) Device sValue: ''
2020-03-23 15:19:50.506 (Broadlink RM2 Living) Device LastLevel: 0
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device: 15 - ID: 49, Name: 'T_Muto', nValue: 0, sValue: ''
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device ID: '49'
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device Name: 'T_Muto'
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device nValue: 0
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device sValue: ''
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device LastLevel: 0
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device: 16 - ID: 50, Name: 'T_Guida', nValue: 0, sValue: ''
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device ID: '50'
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device Name: 'T_Guida'
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device nValue: 0
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device sValue: ''
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device LastLevel: 0
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device: 17 - ID: 51, Name: 'T_1', nValue: 0, sValue: ''
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device ID: '51'
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device Name: 'T_1'
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device nValue: 0
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device sValue: ''
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device LastLevel: 0
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device: 18 - ID: 52, Name: 'T_2', nValue: 0, sValue: ''
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device ID: '52'
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device Name: 'T_2'
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device nValue: 0
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device sValue: ''
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device LastLevel: 0
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device: 19 - ID: 53, Name: 'T_3', nValue: 0, sValue: ''
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device ID: '53'
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device Name: 'T_3'
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device nValue: 0
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device sValue: ''
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device LastLevel: 0
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device: 20 - ID: 54, Name: 'T_4', nValue: 0, sValue: ''
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device ID: '54'
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device Name: 'T_4'
2020-03-23 15:19:50.507 (Broadlink RM2 Living) Device nValue: 0
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device sValue: ''
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device LastLevel: 0
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device: 21 - ID: 55, Name: 'T_5', nValue: 0, sValue: ''
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device ID: '55'
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device Name: 'T_5'
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device nValue: 0
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device sValue: ''
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device LastLevel: 0
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device: 22 - ID: 56, Name: 'T_6', nValue: 0, sValue: ''
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device ID: '56'
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device Name: 'T_6'
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device nValue: 0
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device sValue: ''
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device LastLevel: 0
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device: 23 - ID: 57, Name: 'T_7', nValue: 0, sValue: ''
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device ID: '57'
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device Name: 'T_7'
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device nValue: 0
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device sValue: ''
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device LastLevel: 0
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device: 24 - ID: 58, Name: 'T_8', nValue: 0, sValue: ''
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device ID: '58'
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device Name: 'T_8'
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device nValue: 0
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device sValue: ''
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device LastLevel: 0
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device: 25 - ID: 59, Name: 'T_9', nValue: 0, sValue: ''
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device ID: '59'
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device Name: 'T_9'
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device nValue: 0
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device sValue: ''
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device LastLevel: 0
2020-03-23 15:19:50.508 (Broadlink RM2 Living) Device: 26 - ID: 60, Name: 'T_0', nValue: 0, sValue: ''
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device ID: '60'
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device Name: 'T_0'
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device nValue: 0
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device sValue: ''
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device LastLevel: 0
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device: 27 - ID: 61, Name: 'T_Home', nValue: 1, sValue: 'On-34'
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device ID: '61'
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device Name: 'T_Home'
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device nValue: 1
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device sValue: 'On-34'
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device LastLevel: 0
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device: 254 - ID: 28, Name: 'Broadlink RM2 Living - Remote', nValue: 0, sValue: ''
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device ID: '28'
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device Name: 'Broadlink RM2 Living - Remote'
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device nValue: 0
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device sValue: ''
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device LastLevel: 0
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device: 255 - ID: 29, Name: 'Broadlink RM2 Living - Import', nValue: 0, sValue: 'Off'
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device ID: '29'
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device Name: 'Broadlink RM2 Living - Import'
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device nValue: 0
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device sValue: 'Off'
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Device LastLevel: 0
2020-03-23 15:19:50.509 (Broadlink RM2 Living) Pushing 'PollIntervalDirective' on to queue
2020-03-23 15:19:50.509 (Broadlink RM2 Living - Import) Updating device from 0:'Off' to have values 0:'Off'.
2020-03-23 15:19:50.516 (Broadlink RM2 Living) Update 0:'Off' (Broadlink RM2 Living - Import)
2020-03-23 15:19:50.516 (Broadlink RM2 Living) Connecting to: 192.168.1.15:780F77FD3BB0
2020-03-23 15:19:50.175 Status: (Broadlink RM2 Living) Stopping threads.
2020-03-23 15:19:50.175 Status: (Broadlink RM2 Living) Stopped.
2020-03-23 15:19:50.176 Status: (Broadlink RM2 Living) Started.
2020-03-23 15:19:50.492 Status: (Broadlink RM2 Living) Initialized version 4.2.0, author 'zak45'
2020-03-23 15:19:50.491 Status: (Broadlink RM2 Living) Entering work loop.

2020-03-23 15:19:51.020 (Broadlink RM2 Living) Connected to Broadlink device: 192.168.1.15
2020-03-23 15:19:51.024 (Broadlink RM2 Living) Processing 'PollIntervalDirective' message
2020-03-23 15:19:51.024 (Broadlink RM2 Living) Heartbeat interval set to: 30.
2020-03-23 15:19:51.024 Error: (Broadlink RM2 Living) 'onStart' failed 'MissingSectionHeaderError'.
2020-03-23 15:19:51.024 Error: (Broadlink RM2 Living) ----> Line 218 in '/home/pi/domoticz/plugins/BroadlinkRM2/plugin.py', function onStart
2020-03-23 15:19:51.024 Error: (Broadlink RM2 Living) ----> Line 978 in '/home/pi/domoticz/plugins/BroadlinkRM2/plugin.py', function genRemote
2020-03-23 15:19:51.024 Error: (Broadlink RM2 Living) ----> Line 960 in '/home/pi/domoticz/plugins/BroadlinkRM2/plugin.py', function get_remoteconfig
2020-03-23 15:19:51.024 Error: (Broadlink RM2 Living) ----> Line 698 in '/usr/lib/python3.7/configparser.py', function read
2020-03-23 15:19:51.024 Error: (Broadlink RM2 Living) ----> Line 1079 in '/usr/lib/python3.7/configparser.py', function _read
- So the problem is the remote! Of course, I created an ini file following your instructions and put it in the remote folder. The ini file is perfect and in the good place. What's wrong???


Below some reflection... (maybe stupid)

In the file plugin.py there are these lines:

Code: Select all

def get_remoteconfig():
    global RemoteCommand

    name = Parameters["Mode2"] + "/remote/plugin_remote_"+ str(Parameters["HardwareID"]) + ".ini"

    if os.path.isfile(name):
        try:
            with open(name) as f: # No need to specify 'r': this is the default.                    
                        config = configparser.ConfigParser()
                        config.read(name,encoding='utf-8')
                        RemoteCommand = config.get("Custom", "Command")                        
        except IOError as exc:
            Domoticz.Error('error : ' + str(exc))        
            raise # Propagate other kinds of IOErro

        if Parameters["Mode6"] == "Debug":
            Domoticz.Log( "ini file read...." + name)    
            Domoticz.Log( "Custom Commands: " + RemoteCommand)    
    else:
        if Parameters["Mode6"] == "Debug":
            Domoticz.Log( "No ini file :" + name)    
            Domoticz.Log( "Custom Commands for Remote not managed")
            
    return
and in the plugin_send.py there are these ones:

Code: Select all

if not os.path.exists(path):
    print(' ini file not found: ' + path)
    sys.exit(1)
So, in the plugin.py file if it doesn't find the path it returns "No ini file :" + name, in the plugin_send.py if it doesn't find the path it returns ' ini file not found: ' + path.
My error is "ini file not found: ..." so there is something wrong in plugin_send.py I don't understand.

Could you please help me?

System:
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster

Domoticz:
Version: 2020.1
Build Hash: 77b93f111
Compile Date: 2020-03-22 16:45:56
dzVents Version: 3.0.1
Python Version: 3.7.3 (default, Dec 20 2019, 18:57:59) [GCC 8.3.0]

Broadlink:
Name: broadlink
Version: 0.12.0
Summary: Python API for controlling Broadlink IR controllers
Home-page: http://github.com/mjg59/python-broadlink
Author: Matthew Garrett
Author-email: [email protected]
License: UNKNOWN
Location: /usr/local/lib/python3.7/dist-packages
Requires: cryptography, PyCRC
Required-by:
Gerwin
Posts: 84
Joined: Friday 12 August 2016 13:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Gerwin »

hello everything was working fine until i update to the new domoticz version
can someone tell me step by step how to update the broadlink plugin
maybe everything works fine after updating

Gerwin
ms2076
Posts: 9
Joined: Tuesday 15 March 2016 20:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by ms2076 »

Hi, i have the same issue like Gerwin. I have 3 Broadlink RM mini devices, they worked fine before updating to the latest 2020.1 version. I tried almost everything like reinstalling the plugins, python versions change, pip3 modules.. it just broke.. any help would be appreciated.
thnx!
ms2076
Posts: 9
Joined: Tuesday 15 March 2016 20:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by ms2076 »

thnx to alexstk69 it worked again with:

sudo pip3 uninstall broadlink

sudo -H pip3 install broadlink==0.10

i had to copy the broadlink version 0.10 to the lib folder
sudo cp -r /usr/local/lib/python3.7/dist-packages/broadlink-0.10.dist-info/ /usr/lib/python3.7/
and removed the 0.13 version broadlink folder from /usr/lib/python3.7/

after restarting domoticz, its working again.... happy!
Gerwin
Posts: 84
Joined: Friday 12 August 2016 13:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Gerwin »

Hello
it works again only i can't find the 013 version in (and removed the 0.13 version broadlink folder from /usr/lib/python3.7/)
but it works well

Gerwin
AlessioLorusso
Posts: 9
Joined: Thursday 26 March 2020 20:19
Target OS: Linux
Domoticz version: 2022.1
Location: Italy
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by AlessioLorusso »

Hello
Same error here ...fixed as weel with the same method.
Thanks!
ms2076
Posts: 9
Joined: Tuesday 15 March 2016 20:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by ms2076 »

Gerwin wrote: Thursday 26 March 2020 14:22 Hello
it works again only i can't find the 013 version in (and removed the 0.13 version broadlink folder from /usr/lib/python3.7/)
but it works well

Gerwin
great to hear!
AlessioLorusso wrote: Thursday 26 March 2020 20:21 Hello
Same error here ...fixed as weel with the same method.
Thanks!
Great :)
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 »

arcpaqua wrote: Monday 23 March 2020 16:17 Hi Zak,
I write to you again after almost 1 year. The coronavirus helps me to come back to my domoticz problems! :P

2020-03-23 15:19:51.024 Error: (Broadlink RM2 Living) 'onStart' failed 'MissingSectionHeaderError'.


Hi,
looks like your ini file contains wrong Header : MissingSectionHeaderError
https://stackoverflow.com/questions/132 ... on-headers
desertdog
Posts: 84
Joined: Sunday 14 August 2016 13:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Netherlands
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by desertdog »

Hi,

I am trying to install the Broadlink Plugin (version: 0.13.0).
All goes well until after the discover switch and entering IP address and mac address.

There are two new Switches created 'Broadlink RMmini3 - Import' and 'Broadlink RMmini3 - Remote',
but the 'Broadlink RMmini3 - Command' isn't.

When i click the " - Remote" switch I get in the log:
ini file not found: /home/pi/domoticz/plugins/BroadlinkRM2/BroadlinkRM2-10-254.ini

When I click " - Import"- Webstart: the log:
2020-04-01 15:02:12.634 Error: (Broadlink RMmini3) /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.sh 0.0.0.0 9000 /home/pi/domoticz/plugins/BroadlinkRM2
2020-04-01 15:02:12.669 Error: (Broadlink RMmini3) Not able to start Webserver

When I click " - Generate"- Webstart: the log:
2020-04-01 15:03:30.610 Error: (Broadlink RMmini3) 'onCommand' failed 'FileNotFoundError'.
2020-04-01 15:03:30.610 Error: (Broadlink RMmini3) ----> Line 265 in '/home/pi/domoticz/plugins/BroadlinkRM2/plugin.py', function onCommand
2020-04-01 15:03:30.610 Error: (Broadlink RMmini3) ----> Line 825 in '/home/pi/domoticz/plugins/BroadlinkRM2/plugin.py', function createIniImport

I have read back this thread until 1,5 years ago, but can't find anything on this. except for faulty beta versions or out of date OS problems. I am running latest and stable versions of all.

The log also show a lot of "2020-04-01 15:05:16.058 Error: (Broadlink RMmini3) Error Connecting to Broadlink device....192.168.1.51", but the deviuce is up when i ping
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Thuis »

Well once it was all working, but now i updated to the newest files from that dropbox on the wiki, replaced the old file restarted domoticz and the whole plugin is gone. Not to find in the list.

Then i removed everything that gad to do with broadlinkrm2 and started fresh, same i can not ever get the plugin to show at the hardware list.

I made a bakcup of the ld files, put them all back and, the broadlinkRM2 is back in the hardware list. I fill out all the data, restart domoticz, i get an error, it is not finding my ir device.

What am i doing wrong ?
I Love Domoticz ! And the community around it :-)
desertdog
Posts: 84
Joined: Sunday 14 August 2016 13:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Netherlands
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by desertdog »

Are the currently people that have the latest Domiticz en Broadlink plugin working.
I keep getting these connection errors in my logs
2020-04-02 10:02:11.961 Error: (Broadlink Remote) Error Connecting to Broadlink device....192.168.1.59
2020-04-02 10:02:11.961 Error: (Broadlink Remote) Not able to learn command
When I trigger the Broadlink device via IFTTT it works, when I ping it i see it too
Gerwin
Posts: 84
Joined: Friday 12 August 2016 13:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Gerwin »

@ desertdog

yes it works great ,see early post

Gerwin
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Thuis »

Gerwin wrote: Thursday 02 April 2020 10:10 @ desertdog

yes it works great ,see early post

Gerwin
Indeed thanks, it works again.
Spoiler: show
2020-04-02 13:05:24.537 (Broadlink IR) Pushing 'onHeartbeatCallback' on to queue
2020-04-02 13:05:24.560 (Broadlink IR) Processing 'onHeartbeatCallback' message
2020-04-02 13:05:24.560 (Broadlink IR) Calling message handler 'onHeartbeat'.
2020-04-02 13:05:24.592 (Broadlink IR) Connected to Broadlink device: 192.168.10.78
I Love Domoticz ! And the community around it :-)
desertdog
Posts: 84
Joined: Sunday 14 August 2016 13:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Netherlands
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by desertdog »

Works here too! Thanks. Since the plug-in had a later date than the solution in the post I assumed it was fixed there
arcpaqua
Posts: 16
Joined: Saturday 23 June 2018 20:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10338
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by arcpaqua »

zak45 wrote: Monday 30 March 2020 18:47
arcpaqua wrote: Monday 23 March 2020 16:17 Hi Zak,
I write to you again after almost 1 year. The coronavirus helps me to come back to my domoticz problems! :P

2020-03-23 15:19:51.024 Error: (Broadlink RM2 Living) 'onStart' failed 'MissingSectionHeaderError'.


Hi,
looks like your ini file contains wrong Header : MissingSectionHeaderError
https://stackoverflow.com/questions/132 ... on-headers


Thanks Zak,

the ini file contains the correct header, it is executable for anybody and it's in the correct place.

Code: Select all

[Custom]
command = 61,5,2,8,4,9,10,6,16,13,,11,16,,15,14,,12,,,,,
I tried to change the encoding from utf-8 to ansi, but same error.

What's wrong?????


EDIT:
I cancelled the encoding (so no encoding at all) and now no more error, the switch turns on!!!!!! Alleluja!!!!

Thanks a lot Zak!
...what a pain.... it has been really hard find the issue!
idradu
Posts: 2
Joined: Tuesday 14 April 2020 21:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Broadlink

Post by idradu »

Hi, I have a Broadlink S1 smart alarm security kit. How to integrate it in Domoticz?
Thanks a lot.
idradu
Posts: 2
Joined: Tuesday 14 April 2020 21:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by idradu »

Hello,
I have a small problem. Can you help me with a solution?
Thanks.


2020-04-15 10:54:24.051 Status: Domoticz V2020.1 (build 11930) (c)2012-2020 GizMoCuz
2020-04-15 10:54:24.053 Status: Build Hash: 423448b7e, Date: 2020-04-10 07:53:38
2020-04-15 10:54:24.054 Status: Startup Path: /home/pi/domoticz/
2020-04-15 10:54:24.256 Status: PluginSystem: Started, Python version '3.7.3'.
2020-04-15 10:54:24.266 Status: WebServer(HTTP) started on address: :: with port 8080
2020-04-15 10:54:24.273 Status: WebServer(SSL) started on address: :: with port 443
2020-04-15 10:54:24.276 Status: Camera: settings (re)loaded
2020-04-15 10:54:24.277 Status: TCPServer: shared server started...
2020-04-15 10:54:24.278 Status: RxQueue: queue worker started...
2020-04-15 10:54:26.279 Status: (a1) Started.
2020-04-15 10:54:26.280 Status: Darksky: Started...
2020-04-15 10:54:26.281 Status: OpenWeatherMap: Started
2020-04-15 10:54:26.281 Status: (bridge_broadlink) Started.
2020-04-15 10:54:26.281 Status: Darksky: Started...
2020-04-15 10:54:26.281 Status: NotificationSystem: thread started...
2020-04-15 10:54:26.282 Status: EventSystem: reset all events...
2020-04-15 10:54:26.283 Status: EventSystem: reset all device statuses...
2020-04-15 10:54:26.288 Status: Darksky: Started...
2020-04-15 10:54:26.424 Status: Python EventSystem: Initalizing event module.
2020-04-15 10:54:26.424 Status: EventSystem: Started
2020-04-15 10:54:26.424 Status: EventSystem: Queue thread started...
2020-04-15 10:54:26.598 Status: PluginSystem: Entering work loop.
2020-04-15 10:54:27.280 Status: MQTT: Connecting to 192.168.1.5:1883
2020-04-15 10:54:27.474 Status: (a1) Entering work loop.
2020-04-15 10:54:27.475 Status: (a1) Initialized version 4.2.0, author 'zak45'
2020-04-15 10:54:27.483 Status: MQTT: connected to: 192.168.1.5:1883
2020-04-15 10:54:27.684 Status: MQTT: Subscribed
2020-04-15 10:54:28.749 (bridge_broadlink) Device nValue: 0
2020-04-15 10:54:28.749 (bridge_broadlink) Device sValue: ''
2020-04-15 10:54:28.749 (bridge_broadlink) Device LastLevel: 0
2020-04-15 10:54:28.749 (bridge_broadlink) Device: 255 - ID: 28, Name: 'bridge_broadlink - Import', nValue: 0, sValue: 'Off'
2020-04-15 10:54:28.749 (bridge_broadlink) Device ID: '28'
2020-04-15 10:54:28.749 (bridge_broadlink) Device Name: 'bridge_broadlink - Import'
2020-04-15 10:54:28.749 (bridge_broadlink) Device nValue: 0
2020-04-15 10:54:28.749 (bridge_broadlink) Device sValue: 'Off'
2020-04-15 10:54:28.749 (bridge_broadlink) Device LastLevel: 0
2020-04-15 10:54:28.750 (bridge_broadlink) Pushing 'PollIntervalDirective' on to queue
2020-04-15 10:54:28.750 (bridge_broadlink - Import) Updating device from 0:'Off' to have values 0:'Off'.
2020-04-15 10:54:28.765 (bridge_broadlink) Update 0:'Off' (bridge_broadlink - Import)
2020-04-15 10:54:28.765 (bridge_broadlink) Connecting to: 192.168.1.2:34ea348f8ce9
2020-04-15 10:54:28.200 Status: (bridge_broadlink) Entering work loop.
2020-04-15 10:54:28.201 Status: (bridge_broadlink) Initialized version 4.2.0, author 'zak45'
2020-04-15 10:54:28.209 Error: Error parsing http request.
2020-04-15 10:54:29.431 (bridge_broadlink) Connected to Broadlink device: 192.168.1.2
2020-04-15 10:54:29.436 (bridge_broadlink) No ini file :/home/pi/domoticz/plugins/BroadlinkRM2/remote/plugin_remote_19.ini :shock: :shock: :shock: :shock: :shock:
2020-04-15 10:54:29.436 (bridge_broadlink) Custom Commands for Remote not managed
2020-04-15 10:54:29.436 (bridge_broadlink) Device Number begin to : 1
2020-04-15 10:54:29.436 (a1) Processing 'PollIntervalDirective' message
2020-04-15 10:54:29.436 (a1) Heartbeat interval set to: 30.
2020-04-15 10:54:29.436 (bridge_broadlink) Processing 'PollIntervalDirective' message
2020-04-15 10:54:29.437 (bridge_broadlink) Heartbeat interval set to: 30.
2020-04-15 10:54:35.263 Error: Error parsing http request.
2020-04-15 10:54:38.939 (a1) Pushing 'onHeartbeatCallback' on to queue
2020-04-15 10:54:38.939 (bridge_broadlink) Pushing 'onHeartbeatCallback' on to queue
2020-04-15 10:54:38.958 (a1) Processing 'onHeartbeatCallback' message
2020-04-15 10:54:38.958 (a1) Calling message handler 'onHeartbeat'.
2020-04-15 10:54:38.958 (a1) A1 called
2020-04-15 10:54:39.446 (a1) {'temperature': 25.3, 'humidity': 52.3, 'light': 'normal', 'air_quality': 'good', 'noise': 'quiet'}
2020-04-15 10:54:39.521 (a1) {'temperature': 25.3, 'humidity': 52.3, 'light': 2, 'air_quality': 1, 'noise': 0}
2020-04-15 10:54:39.522 (a1 - A1 - Temperature) Updating device from 0:'25.3' to have values 0:'25.3'.
2020-04-15 10:54:39.531 EventSystem: Event triggered: Script #5_2
2020-04-15 10:54:39.535 (a1) Update 0:'25.3' (a1 - A1 - Temperature)
2020-04-15 10:54:39.535 (a1 - A1 - Humidity) Updating device from 52:'1' to have values 52:'1'.
2020-04-15 10:54:39.547 (a1) Update 52:'1' (a1 - A1 - Humidity)
2020-04-15 10:54:39.547 (a1 - A1 - Air Quality) Updating device from 800:'good' to have values 800:'good'.
2020-04-15 10:54:39.559 (a1) Update 800:'good' (a1 - A1 - Air Quality)
2020-04-15 10:54:39.559 (a1 - A1 - Noise) Updating device from 0:'60' to have values 0:'20'.
2020-04-15 10:54:39.572 (a1) Update 0:'20' (a1 - A1 - Noise)
2020-04-15 10:54:39.572 (a1 - A1 - Light) Updating device from 0:'400' to have values 0:'400'.
2020-04-15 10:54:39.575 (sonoff) Light/Switch (Centrala)
2020-04-15 10:54:39.589 (a1) Update 0:'400' (a1 - A1 - Light)
2020-04-15 10:54:39.589 (a1 - A1 - Status) Updating device from 1:'10' to have values 1:'Get Data From Sensors'.
2020-04-15 10:54:39.604 (a1) Update 1:'Get Data From Sensors' (a1 - A1 - Status)
2020-04-15 10:54:39.604 (bridge_broadlink) Processing 'onHeartbeatCallback' message
2020-04-15 10:54:39.605 (bridge_broadlink) Calling message handler 'onHeartbeat'.
2020-04-15 10:54:47.877 Error: Error parsing http request.
2020-04-15 10:55:04.715 Error: Error parsing http request.
2020-04-15 10:55:07.088 (bridge_broadlink) Pushing 'onCommandCallback' on to queue
2020-04-15 10:55:07.113 (bridge_broadlink) Processing 'onCommandCallback' message
2020-04-15 10:55:07.113 (bridge_broadlink) Calling message handler 'onCommand'.
2020-04-15 10:55:07.113 (bridge_broadlink) onCommand called for Unit 254: Parameter 'On', Level: 0 , Connected : True
2020-04-15 10:55:07.113 (bridge_broadlink) Generate on Command for learned code stored on unit/ini :254
2020-04-15 10:55:07.087 Status: User: idradu initiated a switch command (27/bridge_broadlink - Remote/On)
2020-04-15 10:55:07.113 Error: (bridge_broadlink) ini file not found: /home/pi/domoticz/plugins/BroadlinkRM2/BroadlinkRM2-19-254.ini
[/b][/b]
2020-04-15 10:55:09.110 (bridge_broadlink) Pushing 'onHeartbeatCallback' on to queue
2020-04-15 10:55:09.111 (a1) Pushing 'onHeartbeatCallback' on to queue
2020-04-15 10:55:09.117 (bridge_broadlink) Processing 'onHeartbeatCallback' message
2020-04-15 10:55:09.117 (bridge_broadlink) Calling message handler 'onHeartbeat'.
2020-04-15 10:55:09.586 (bridge_broadlink) Connected to Broadlink device: 192.168.1.2
2020-04-15 10:55:09.586 (a1) Processing 'onHeartbeatCallback' message
2020-04-15 10:55:09.586 (a1) Calling message handler 'onHeartbeat'.
2020-04-15 10:55:09.586 (a1) A1 called
2020-04-15 10:55:10.070 (a1) {'temperature': 25.3, 'humidity': 52.2, 'light': 'normal', 'air_quality': 'good', 'noise': 'quiet'}
2020-04-15 10:55:10.554 (a1) {'temperature': 25.3, 'humidity': 52.2, 'light': 2, 'air_quality': 1, 'noise': 1}
2020-04-15 10:55:10.554 (a1 - A1 - Temperature) Updating device from 0:'25.3' to have values 0:'25.3'.
2020-04-15 10:55:10.563 EventSystem: Event triggered: Script #5_2
2020-04-15 10:55:10.567 (a1) Update 0:'25.3' (a1 - A1 - Temperature)
2020-04-15 10:55:10.567 (a1 - A1 - Humidity) Updating device from 52:'1' to have values 52:'1'.
2020-04-15 10:55:10.580 (sonoff) Light/Switch (Centrala)
2020-04-15 10:55:10.582 (a1) Update 52:'1' (a1 - A1 - Humidity)
2020-04-15 10:55:10.583 (a1 - A1 - Air Quality) Updating device from 800:'good' to have values 800:'good'.
2020-04-15 10:55:10.596 (a1) Update 800:'good' (a1 - A1 - Air Quality)
2020-04-15 10:55:10.596 (a1 - A1 - Noise) Updating device from 0:'20' to have values 0:'60'.
2020-04-15 10:55:10.608 (a1) Update 0:'60' (a1 - A1 - Noise)
2020-04-15 10:55:10.608 (a1 - A1 - Light) Updating device from 0:'400' to have values 0:'400'.
2020-04-15 10:55:10.620 (a1) Update 0:'400' (a1 - A1 - Light)
2020-04-15 10:55:32.005 Error: Error parsing http request.
2020-04-15 10:55:39.113 Error: Error parsing http request.
2020-04-15 10:55:40.127 (bridge_broadlink) Pushing 'onHeartbeatCallback' on to queue
2020-04-15 10:55:40.127 (a1) Pushing 'onHeartbeatCallback' on to queue
2020-04-15 10:55:40.176 (bridge_broadlink) Processing 'onHeartbeatCallback' message
2020-04-15 10:55:40.177 (bridge_broadlink) Calling message handler 'onHeartbeat'.
2020-04-15 10:55:40.177 (a1) Processing 'onHeartbeatCallback' message
2020-04-15 10:55:40.177 (a1) Calling message handler 'onHeartbeat'.
2020-04-15 10:55:40.177 (a1) A1 called
2020-04-15 10:55:40.650 (a1) {'temperature': 25.3, 'humidity': 52.2, 'light': 'normal', 'air_quality': 'good', 'noise': 'quiet'}
2020-04-15 10:55:40.732 (a1) {'temperature': 25.3, 'humidity': 52.2, 'light': 2, 'air_quality': 1, 'noise': 0}
2020-04-15 10:55:40.733 (a1 - A1 - Temperature) Updating device from 0:'25.3' to have values 0:'25.3'.
2020-04-15 10:55:40.741 EventSystem: Event triggered: Script #5_2
2020-04-15 10:55:40.746 (a1) Update 0:'25.3' (a1 - A1 - Temperature)
2020-04-15 10:55:40.746 (a1 - A1 - Humidity) Updating device from 52:'1' to have values 52:'1'.
2020-04-15 10:55:40.759 (a1) Update 52:'1' (a1 - A1 - Humidity)
2020-04-15 10:55:40.759 (a1 - A1 - Air Quality) Updating device from 800:'good' to have values 800:'good'.
2020-04-15 10:55:40.778 (sonoff) Light/Switch (Centrala)
2020-04-15 10:55:40.779 (a1) Update 800:'good' (a1 - A1 - Air Quality)
2020-04-15 10:55:40.779 (a1 - A1 - Noise) Updating device from 0:'60' to have values 0:'20'.
2020-04-15 10:55:40.794 (a1) Update 0:'20' (a1 - A1 - Noise)
2020-04-15 10:55:40.794 (a1 - A1 - Light) Updating device from 0:'400' to have values 0:'400'.
2020-04-15 10:55:40.806 (a1) Update 0:'400' (a1 - A1 - Light)
2020-04-15 10:55:58.509 (bridge_broadlink) Pushing 'onCommandCallback' on to queue
2020-04-15 10:55:58.541 (bridge_broadlink) Processing 'onCommandCallback' message
2020-04-15 10:55:58.542 (bridge_broadlink) Calling message handler 'onCommand'.
2020-04-15 10:55:58.542 (bridge_broadlink) onCommand called for Unit 1: Parameter 'Set Level', Level: 10 , Connected : True
2020-04-15 10:55:58.542 (bridge_broadlink) All plugin system is on pause for 5s...
2020-04-15 10:55:58.542 (bridge_broadlink) When Broadlink led is lit press the button on your remote within 5 seconds
2020-04-15 10:55:58.508 Status: User: idradu initiated a switch command (26/bridge_broadlink - Command/Set Level)
2020-04-15 10:56:04.478 (bridge_broadlink) None
2020-04-15 10:56:04.478 (bridge_broadlink) Command not received
knielen
Posts: 46
Joined: Sunday 10 September 2017 9:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by knielen »

Hi all,

Last week I did an upgrade to Buster and last stable of Domoticz. Since then, my RM2 is down. I allready reinstalled the plugin, but no luck. Anyone had this issue too?

Code: Select all

2020-04-17 11:40:23.842 Status: (BlackBean) Started.
2020-04-17 11:40:24.736 (BlackBean) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2020-04-17 11:40:24.737 (BlackBean) 'HardwareID':'21'
2020-04-17 11:40:24.737 (BlackBean) 'HomeFolder':'/home/pi/domoticz/plugins/BroadlinkRM2/'
2020-04-17 11:40:24.737 (BlackBean) 'StartupFolder':'/home/pi/domoticz/'
2020-04-17 11:40:24.737 (BlackBean) 'UserDataFolder':'/home/pi/domoticz/'
2020-04-17 11:40:24.737 (BlackBean) 'Database':'/home/pi/domoticz/domoticz.db'
2020-04-17 11:40:24.737 (BlackBean) 'Language':'en'
2020-04-17 11:40:24.737 (BlackBean) 'Version':'4.2.0'
2020-04-17 11:40:24.737 (BlackBean) 'Author':'zak45'
2020-04-17 11:40:24.737 (BlackBean) 'Name':'BlackBean'
2020-04-17 11:40:24.737 (BlackBean) 'Address':'-correct-'
2020-04-17 11:40:24.737 (BlackBean) 'Port':'0'
2020-04-17 11:40:24.737 (BlackBean) 'Key':'BroadlinkRM2'
2020-04-17 11:40:24.737 (BlackBean) 'Mode1':'-correct-'
2020-04-17 11:40:24.737 (BlackBean) 'Mode2':'/home/pi/Bean_ini'
2020-04-17 11:40:24.738 (BlackBean) 'Mode3':'RM2'
2020-04-17 11:40:24.738 (BlackBean) 'Mode4':'no'
2020-04-17 11:40:24.738 (BlackBean) 'Mode5':'9000'
2020-04-17 11:40:24.738 (BlackBean) 'Mode6':'Debug'
2020-04-17 11:40:24.738 (BlackBean) 'DomoticzVersion':'2020.1'
2020-04-17 11:40:24.738 (BlackBean) 'DomoticzHash':'63fa969e4'
2020-04-17 11:40:24.738 (BlackBean) 'DomoticzBuildTime':'2020-03-22 15:16:16'
2020-04-17 11:40:24.738 (BlackBean) Device count: 3
2020-04-17 11:40:24.738 (BlackBean) Device: 1 - ID: 441, Name: 'BlackBean - Discovery', nValue: 0, sValue: 'Off'
2020-04-17 11:40:24.738 (BlackBean) Device ID: '441'
2020-04-17 11:40:24.738 (BlackBean) Device Name: 'BlackBean - Discovery'
2020-04-17 11:40:24.738 (BlackBean) Device nValue: 0
2020-04-17 11:40:24.738 (BlackBean) Device sValue: 'Off'
2020-04-17 11:40:24.739 (BlackBean) Device LastLevel: 0
2020-04-17 11:40:24.739 (BlackBean) Device: 2 - ID: 442, Name: 'BlackBean - Discovery Info', nValue: 1, sValue: '[Device 1 Host address = '-correct-', 8][Device 1 MAC address = -correct- Type: RM2]'
2020-04-17 11:40:24.739 (BlackBean) Device ID: '442'
2020-04-17 11:40:24.739 (BlackBean) Device Name: 'BlackBean - Discovery Info'
2020-04-17 11:40:24.739 (BlackBean) Device nValue: 1
2020-04-17 11:40:24.739 (BlackBean) Device sValue: '[Device 1 Host address = '192.168.3.114', 8][Device 1 MAC address = 780f775ac24e Type: RM2]'
2020-04-17 11:40:24.739 (BlackBean) Device LastLevel: 0
2020-04-17 11:40:24.739 (BlackBean) Device: 254 - ID: 443, Name: 'BlackBean - Remote', nValue: 0, sValue: ''
2020-04-17 11:40:24.739 (BlackBean) Device ID: '443'
2020-04-17 11:40:24.739 (BlackBean) Device Name: 'BlackBean - Remote'
2020-04-17 11:40:24.739 (BlackBean) Device nValue: 0
2020-04-17 11:40:24.739 (BlackBean) Device sValue: ''
2020-04-17 11:40:24.740 (BlackBean) Device LastLevel: 0
2020-04-17 11:40:24.740 (BlackBean) Pushing 'PollIntervalDirective' on to queue
2020-04-17 11:40:24.740 (BlackBean) Connecting to: -correct-
2020-04-17 11:40:24.728 Status: (BlackBean) Initialized version 4.2.0, author 'zak45'
2020-04-17 11:40:24.727 Status: (BlackBean) Entering work loop.
2020-04-17 11:40:35.517 (BlackBean) Pushing 'onHeartbeatCallback' on to queue
2020-04-17 11:40:35.519 (BlackBean) Processing 'onHeartbeatCallback' message
2020-04-17 11:40:35.519 (BlackBean) Calling message handler 'onHeartbeat'.
2020-04-17 11:40:35.521 Error: (BlackBean) Error Connecting to Broadlink device....192.168.3.114
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest