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 »

pvklink wrote: Friday 08 March 2019 21:11 Only things that dont work are
- switch remote. When i click on the button it does nothing, its greyed-out.
- switch import/webstart.
ini folder /home/pi/domoticz
- if the button is greyed-out, you need to create the ini file and put on it devices idx (see wiki)
- be sure to have put your script with +x
- not good idea to put your ini under domoticz folder, better outside it.
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by pvklink »

ok, i made a seperated ini folder and moved the ini files.

ANybody an idea what i put in the ini-file that is missing for my greyed remote
he errorlog gives: 2019-03-08 21:00:14.967 Error: (broadlink2) ini file not found: /home/pi/domoticz/BroadlinkRM2-26-254.ini

i made a
- BroadlinkRM2-26-254.ini in the ini folder
- and BroadlinkRM2-26.ini and
- plugin_remote_26.ini in /remote folder

In all three ini files i put
[Custom]
command = 2
and now my errors are gone!
and the remote is not greyed out anymore!

Do i have to make three ini files for my remote (rm pro+) ?
What do i put in these file(s)
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
Darkneo
Posts: 24
Joined: Sunday 10 February 2019 16:22
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by Darkneo »

Hi,
Hereunder the issue I am facing.

The app does not seem to be able to learn more than one command.

I try to create a new button, but when pressing "Test" nothing happens. I tried also to learn other remotes, same issue.

And no error in log.


initiated a switch command (16/Broadlink - Command/Set Level)
2019-03-09 08:02:57.078 (Broadlink) Pushing 'onHeartbeatCallback' on to queue
2019-03-09 08:02:57.093 (Broadlink) Processing 'onHeartbeatCallback' message
2019-03-09 08:02:57.093 (Broadlink) Calling message handler 'onHeartbeat'.
2019-03-09 08:03:22.701 (Broadlink) Pushing 'onCommandCallback' on to queue
2019-03-09 08:03:22.721 (Broadlink) Processing 'onCommandCallback' message
2019-03-09 08:03:22.721 (Broadlink) Calling message handler 'onCommand'.
2019-03-09 08:03:22.721 (Broadlink) onCommand called for Unit 1: Parameter 'Set Level', Level: 10 , Connected : True
2019-03-09 08:03:22.721 (Broadlink) All plugin system is on pause for 5s...
2019-03-09 08:03:22.721 (Broadlink) When Broadlink led is lit press the button on your remote within 5 seconds
2019-03-09 08:03:22.701 Status: User: Darkneo initiated a switch command (16/Broadlink - Command/Set Level)
2019-03-09 08:03:27.081 (Broadlink) Pushing 'onHeartbeatCallback' on to queue
2019-03-09 08:03:27.728 (Broadlink) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2019-03-09 08:03:27.728 (Broadlink) 000000000000000000000000
2019-03-09 08:03:27.728 (Broadlink) Code stored in memory
2019-03-09 08:03:27.728 (Broadlink - Command) Updating device from 1:'10' to have values 1:'20'.
2019-03-09 08:03:27.729 (Broadlink) Update 1:'20' (Broadlink - Command)
2019-03-09 08:03:27.779 (Broadlink) Processing 'onHeartbeatCallback' message
2019-03-09 08:03:27.779 (Broadlink) Calling message handler 'onHeartbeat'.
2019-03-09 08:03:46.024 (Broadlink) Pushing 'onCommandCallback' on to queue
2019-03-09 08:03:46.049 (Broadlink) Processing 'onCommandCallback' message
2019-03-09 08:03:46.049 (Broadlink) Calling message handler 'onCommand'.
2019-03-09 08:03:46.049 (Broadlink) onCommand called for Unit 1: Parameter 'Set Level', Level: 20 , Connected : True
2019-03-09 08:03:46.049 (Broadlink) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2019-03-09 08:03:46.050 (Broadlink) Code Sent....
2019-03-09 08:03:46.024 Status: User: Darkneo initiated a switch command (16/Broadlink - Command/Set Level)
judaca
Posts: 8
Joined: Saturday 09 March 2019 9:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Python Plugin : Broadlink RM mini 3

Post by judaca »

Same problems here...installed everything correctly.... but when i try to import ...and start WebStart i get this in log

2019-03-09 10:59:17.351 Status: User: Admin initiated a switch command (439/Broadlink - Import/Set Level)
2019-03-09 10:59:17.493 Error: (Broadlink) 127
2019-03-09 10:59:17.494 Error: (Broadlink) /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.sh 0.0.0.0 1024 /home/pi/BroadlinkRM2
2019-03-09 10:59:17.494 Error: (Broadlink) None
2019-03-09 10:59:17.598 Error: (Broadlink) Not able to start Web server

Wen i try to learn a new button with the learn switch

2019-03-09 11:04:16.531 (Broadlink) When Broadlink led is lit press the button on your remote within 5 seconds
2019-03-09 11:04:16.501 Status: User: Admin initiated a switch command (437/Broadlink - Command/Set Level)
2019-03-09 11:04:21.547 (Broadlink) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2019-03-09 11:04:21.547 (Broadlink) 000000000000000000000000
2019-03-09 11:04:21.548 (Broadlink) Code stored in memory

But when i hit "Test" nothing happens.....
I can only make one button working...
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink RM mini 3

Post by zak45 »

judaca wrote: Saturday 09 March 2019 11:05 Same problems here...installed everything correctly.... but when i try to import ...and start WebStart i get this in log

2019-03-09 10:59:17.351 Status: User: Admin initiated a switch command (439/Broadlink - Import/Set Level)
2019-03-09 10:59:17.493 Error: (Broadlink) 127
2019-03-09 10:59:17.494 Error: (Broadlink) /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.sh 0.0.0.0 1024 /home/pi/BroadlinkRM2
2019-03-09 10:59:17.494 Error: (Broadlink) None
2019-03-09 10:59:17.598 Error: (Broadlink) Not able to start Web server

Wen i try to learn a new button with the learn switch

2019-03-09 11:04:16.531 (Broadlink) When Broadlink led is lit press the button on your remote within 5 seconds
2019-03-09 11:04:16.501 Status: User: Admin initiated a switch command (437/Broadlink - Command/Set Level)
2019-03-09 11:04:21.547 (Broadlink) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2019-03-09 11:04:21.547 (Broadlink) 000000000000000000000000
2019-03-09 11:04:21.548 (Broadlink) Code stored in memory

But when i hit "Test" nothing happens.....
I can only make one button working...
- chmod +x to /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.sh
- for the learn problem need some investigation but already reported by few others; you can still use the Android application for learning and do the import after to create Domoticz switchs.
luizcarlosnery
Posts: 12
Joined: Saturday 28 April 2018 17:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by luizcarlosnery »

zak45 wrote: Wednesday 06 March 2019 17:19
luizcarlosnery wrote: Wednesday 06 March 2019 14:27 My domoticz works perfectly, but I have been trying to use this plugin for a long time, but I never got it!
Hi,
to be able to try to help you, please provide these informations:
Domoticz version/ plugin version/ python version
Do you have other python plugin that is working ?
post the output of : sudo pip3 list modules
Put the plugin on Debug mode and post the output

Thanks for helping...

Version: 4.9700
Build Hash: a3a45906
Compile Date: 2018-06-23 11:24:51
dzVents Version: 2.4.6
Python Version: 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]

plugin.py => 4.2.0


I have spotify plugin and it works

the output of : sudo pip3 list modules

pi@raspberrypi:~ $ sudo pip3 list modules
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the
  • section) to disable this warning.
    automationhat (0.1.0)
    blinker (1.3)
    blinkt (0.1.2)
    broadlink (0.9)
    buttonshim (0.0.2)
    Cap1xxx (0.1.3)
    chardet (2.3.0)
    click (6.6)
    colorama (0.3.7)
    crypto (1.4.1)
    cryptography (1.7.1)
    drumhat (0.1.0)
    envirophat (1.0.0)
    ExplorerHAT (0.4.2)
    Flask (0.12.1)
    fourletterphat (0.1.0)
    gpiozero (1.4.1)
    idna (2.2)
    itsdangerous (0.24)
    jedi (0.10.2)
    Jinja2 (2.8)
    keyring (10.1)
    keyrings.alt (1.3)
    MarkupSafe (0.23)
    mcpi (0.1.1)
    microdotphat (0.2.1)
    mote (0.0.4)
    motephat (0.0.2)
    Naked (0.1.31)
    numpy (1.12.1)
    oauthlib (2.0.1)
    pantilthat (0.0.7)
    pgzero (1.2)
    phatbeat (0.1.1)
    pianohat (0.1.0)
    picamera (1.13)
    picraft (1.0)
    piglow (1.2.4)
    pigpio (1.38)
    Pillow (4.0.0)
    pip (9.0.1)
    pyaes (1.6.1)
    pyasn1 (0.1.9)
    PyCRC (1.21)
    pycrypto (2.6.1)
    pygame (1.9.3)
    pygobject (3.22.0)
    pyinotify (0.9.6)
    PyJWT (1.4.2)
    pyOpenSSL (16.2.0)
    pyserial (3.2.1)
    python-apt (1.1.0b5)
    pyxdg (0.25)
    PyYAML (3.13)
    rainbowhat (0.1.0)
    requests (2.12.4)
    requests-oauthlib (0.7.0)
    RPi.GPIO (0.6.5)
    RTIMULib (7.2.1)
    scrollphat (0.0.7)
    scrollphathd (1.2.1)
    SecretStorage (2.3.1)
    sense-emu (1.1)
    sense-hat (2.2.0)
    setuptools (33.1.1)
    shellescape (3.4.1)
    simplejson (3.10.0)
    six (1.12.0)
    skywriter (0.0.7)
    sn3218 (1.2.7)
    spidev (3.3)
    thonny (2.1.16)
    touchphat (0.0.1)
    twython (3.4.0)
    unicornhathd (0.0.4)
    urllib3 (1.19.1)
    virtualenv (15.1.0)
    Werkzeug (0.11.15)
    wheel (0.29.0)
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by pvklink »

Hi Zak45, can you help me too?

I got everything working except for the default remote switch...

I added my tv by learning, saving and generating etc. i have a separate switch for this now that works but i like
to use the on/off button or some off the remote buttons of the default remote switch to send these ir commands.
I dont want to have seperated switches for each button of a remote...

can you help me with one button? When i get the trick i found out te rest my self...
this is de ini file that is executed by the added tv onoff switch

Code: Select all

[DEFAULT]
hardwareid = 26
pluginname = broadlink2
unit = 3
customname = tv aanuit
pluginkey = BroadlinkRM2
pluginfolder = /home/pi/domoticz/plugins/BroadlinkRM2/

[Device]
mac = xxxx
host = 192.168.20.61

[LearnedCode]
3 = 2600a4019594133713371337131213121312131213121337133713371312131213121312131213121337131213121312131213121312133713121337133713371337133713371300060a9494133713371337131213121312131213121337133713371312131213121312131213121337131213121312131213121312123713121337133713371337133713371300060a9594133713371338121213121312131213121237133713371313121213121313121213121337131213121312131213121212133713121337133713371337133713371300060a9494133713371337131312121312131213121337133713371313121213121312131212121337131213121312131213121312123713121337133713371337133713371300060a9494133713371337131213131212131213121337133713371212131213121312131213121337131212121312131213121312133712131237133713371337133713371300060a94941337133713371312131213121312131213361337143613121312131213121312131113371312131213121312121213121337131213371337133614361337133812000d0500000000

Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
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 »

pvklink wrote: Saturday 09 March 2019 14:56 Hi Zak45, can you help me too?

I got everything working except for the default remote switch...

I added my tv by learning, saving and generating etc. i have a separate switch for this now that works but i like
to use the on/off button or some off the remote buttons of the default remote switch to send these ir commands.
I dont want to have seperated switches for each button of a remote...

can you help me with one button? When i get the trick i found out te rest my self...
this is de ini file that is executed by the added tv onoff switch

Code: Select all

[DEFAULT]
hardwareid = 26
pluginname = broadlink2
unit = 3
customname = tv aanuit
pluginkey = BroadlinkRM2
pluginfolder = /home/pi/domoticz/plugins/BroadlinkRM2/

[Device]
mac = xxxx
host = 192.168.20.61

[LearnedCode]
3 = 2600a4019594133713371337131213121312131213121337133713371312131213121312131213121337131213121312131213121312133713121337133713371337133713371300060a9494133713371337131213121312131213121337133713371312131213121312131213121337131213121312131213121312123713121337133713371337133713371300060a9594133713371338121213121312131213121237133713371313121213121313121213121337131213121312131213121212133713121337133713371337133713371300060a9494133713371337131312121312131213121337133713371313121213121312131212121337131213121312131213121312123713121337133713371337133713371300060a9494133713371337131213131212131213121337133713371212131213121312131213121337131212121312131213121312133712131237133713371337133713371300060a94941337133713371312131213121312131213361337143613121312131213121312131113371312131213121312121213121337131213371337133614361337133812000d0500000000

you need to create this file :
/home/pi/domoticz/plugins/BroadlinkRM2/remote/plugin_remote_26.ini

with this inside:

[Custom]
command = 3 etc ....
e.g. 3,5,7 if we suppose that you have also unit 5 & unit 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 »

@luizcarlosnery

put debug on and post the output plz.
judaca
Posts: 8
Joined: Saturday 09 March 2019 9:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM mini 3

Post by judaca »

zak45 wrote: Saturday 09 March 2019 12:47
judaca wrote: Saturday 09 March 2019 11:05 Same problems here...installed everything correctly.... but when i try to import ...and start WebStart i get this in log

2019-03-09 10:59:17.351 Status: User: Admin initiated a switch command (439/Broadlink - Import/Set Level)
2019-03-09 10:59:17.493 Error: (Broadlink) 127
2019-03-09 10:59:17.494 Error: (Broadlink) /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.sh 0.0.0.0 1024 /home/pi/BroadlinkRM2
2019-03-09 10:59:17.494 Error: (Broadlink) None
2019-03-09 10:59:17.598 Error: (Broadlink) Not able to start Web server

Wen i try to learn a new button with the learn switch

2019-03-09 11:04:16.531 (Broadlink) When Broadlink led is lit press the button on your remote within 5 seconds
2019-03-09 11:04:16.501 Status: User: Admin initiated a switch command (437/Broadlink - Command/Set Level)
2019-03-09 11:04:21.547 (Broadlink) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2019-03-09 11:04:21.547 (Broadlink) 000000000000000000000000
2019-03-09 11:04:21.548 (Broadlink) Code stored in memory

But when i hit "Test" nothing happens.....
I can only make one button working...
- chmod +x to /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.sh
- for the learn problem need some investigation but already reported by few others; you can still use the Android application for learning and do the import after to create Domoticz switchs.
Thanks Zak45 but is there any guide for that last ? "you can still use the Android application for learning and do the import after to create Domoticz switchs" ???
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by pvklink »

Ok @zak45, it works!

Do the numbers after the command= in the plugin_remote_26.ini have to correspond with the ini files and unit-id ?
so number 3 = is a broadlinkRM2-26-3.ini and in the ini is has a unitid = 3 ?

Another thing is that new ini file dont have the +x (execute) by default, is there a way that every new ini file has the right security ?
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink RM mini 3

Post by zak45 »

judaca wrote: Sunday 10 March 2019 7:25 Thanks Zak45 but is there any guide for that last ? "you can still use the Android application for learning and do the import after to create Domoticz switchs" ???
wiki should have ;-)
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 »

pvklink wrote: Sunday 10 March 2019 9:34 Ok @zak45, it works!

Do the numbers after the command= in the plugin_remote_26.ini have to correspond with the ini files and unit-id ?
so number 3 = is a broadlinkRM2-26-3.ini and in the ini is has a unitid = 3 ?

Another thing is that new ini file dont have the +x (execute) by default, is there a way that every new ini file has the right security ?
yes & +x not necessary.
garycooper
Posts: 21
Joined: Sunday 10 March 2019 20:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by garycooper »

Hi, sorry for my english, I'm French ...

I looked for on french forum but I didn't find issue. Like someone, I installed the pluing as described in the wiki:
----
For others
sudo pip3 install broadlink --> mandatory
sudo pip3 install pyaes --> pycrypto no more mandatory, pyaes will be used instead
----
Copied the files plugin.py, plugin_send.py, plugin_http.py, plugin_http.sh in /domoticz/plugins/BroadlinkRM2 folder
restarted domoticz

Then added hardware Type: Broadlink RM2 with Kodi Remote, with fixed IP address, MAC wihout the ":" (thanks to this forum) and no majuscule. I can Add the hardware and it says devices will be found on devices tab, but i don't see any devices added. My device si Multiplug MP1
Also, if i try to update anything (or delete) the entry to start again - domoticz freezes so I have to restart. It also put off several python script (freebox, Mi flora and Sony bravia).

I don't know how to manage my device. I did some script find here :
http://domo-attitude.fr/broadlink-domoticz/
but it doesn't work. I'm using version 4.9700 on Domoticz and 3.5.3 python.
Darkneo
Posts: 24
Joined: Sunday 10 February 2019 16:22
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM mini 3

Post by Darkneo »

zak45 wrote: Saturday 09 March 2019 12:47
judaca wrote: Saturday 09 March 2019 11:05 Same problems here...installed everything correctly.... but when i try to import ...and start WebStart i get this in log

2019-03-09 10:59:17.351 Status: User: Admin initiated a switch command (439/Broadlink - Import/Set Level)
2019-03-09 10:59:17.493 Error: (Broadlink) 127
2019-03-09 10:59:17.494 Error: (Broadlink) /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.sh 0.0.0.0 1024 /home/pi/BroadlinkRM2
2019-03-09 10:59:17.494 Error: (Broadlink) None
2019-03-09 10:59:17.598 Error: (Broadlink) Not able to start Web server

Wen i try to learn a new button with the learn switch

2019-03-09 11:04:16.531 (Broadlink) When Broadlink led is lit press the button on your remote within 5 seconds
2019-03-09 11:04:16.501 Status: User: Admin initiated a switch command (437/Broadlink - Command/Set Level)
2019-03-09 11:04:21.547 (Broadlink) b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2019-03-09 11:04:21.547 (Broadlink) 000000000000000000000000
2019-03-09 11:04:21.548 (Broadlink) Code stored in memory

But when i hit "Test" nothing happens.....
I can only make one button working...
- chmod +x to /home/pi/domoticz/plugins/BroadlinkRM2/plugin_http.sh
- for the learn problem need some investigation but already reported by few others; you can still use the Android application for learning and do the import after to create Domoticz switchs.
Whoo... How to do so? As all my devices are declared in the Android app!
luizcarlosnery
Posts: 12
Joined: Saturday 28 April 2018 17:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by luizcarlosnery »

zak45 wrote: Saturday 09 March 2019 23:06 @luizcarlosnery

put debug on and post the output plz.

I do not know how to do this, can you help?
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: Python Plugin : Broadlink RM2 V4

Post by pvklink »

Is t possible to let the default broadlink remote switch send an rf/ir command when pushing the on button (television icon) ?

I tried it with the on action/start property of the device:
script://home/pi/domoticz/plugins/BroadlinkRM2/plugin_send.py /home/pi/domoticz/BroadlinkRM2ini/BroadlinkRM2-23-3.ini

also tried it from the commandline
python /home/pi/domoticz/plugins/BroadlinkRM2/plugin_send.py /home/pi/domoticz/BroadlinkRM2ini/BroadlinkRM2-23-3.ini
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink RM mini 3

Post by zak45 »

Darkneo wrote: Sunday 10 March 2019 21:11 Whoo... How to do so? As all my devices are declared in the Android app!
https://www.domoticz.com/wiki/Plugins/B ... RM2_Device
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 »

luizcarlosnery wrote: Sunday 10 March 2019 23:09
zak45 wrote: Saturday 09 March 2019 23:06 @luizcarlosnery

put debug on and post the output plz.

I do not know how to do this, can you help?
https://www.domoticz.com/wiki/Plugins/B ... figuration
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 »

pvklink wrote: Monday 11 March 2019 11:44 Is t possible to let the default broadlink remote switch send an rf/ir command when pushing the on button (television icon) ?

I tried it with the on action/start property of the device:
script://home/pi/domoticz/plugins/BroadlinkRM2/plugin_send.py /home/pi/domoticz/BroadlinkRM2ini/BroadlinkRM2-23-3.ini

also tried it from the commandline
python /home/pi/domoticz/plugins/BroadlinkRM2/plugin_send.py /home/pi/domoticz/BroadlinkRM2ini/BroadlinkRM2-23-3.ini
Hummm... should work as for any other Domoticz switch.
On linux, this should be script:///my/full/path/name/script.sh .... --> /// when use full path name if I'm not wrong.
and of course +x on script.sh

""NOTA: the cmd/script to execute plugin_http.py need to be done in the way to not block Domoticz plugin system. This is the case for the windows version provided, for other OS this should be something like that : nohup python3 /path/to/plugin/plugin_http.py $1 $2 $3 &""
Last edited by zak45 on Monday 11 March 2019 16:54, edited 1 time in total.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest