Python Plugin : Broadlink

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

Post by zak45 »

yo3ggx wrote: Friday 18 September 2020 18:38 I have a RM2 Pro and installed the plugin successfully. I want to add a new RF device (an X10rf remote), but no device is created after clicking on save. What's the normal procedure to add a new RF command?

Thank you.
see here:
viewtopic.php?f=65&t=33223&start=120#p254844
yo3ggx
Posts: 14
Joined: Tuesday 03 September 2019 13:13
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by yo3ggx »

For me the interface looks different.
rmpto.jpg
rmpto.jpg (128.18 KiB) Viewed 2046 times
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

yo3ggx wrote: Saturday 19 September 2020 9:17 For me the interface looks different.
what you see is the GUI for device management.
Once you have learned/saved an IR / RF command, this wil create an ini file.
This ini file will be seen there, and by clicking on it, you should see corresponding GUI.
inigui.PNG
inigui.PNG (85.1 KiB) Viewed 2042 times
yo3ggx
Posts: 14
Joined: Tuesday 03 September 2019 13:13
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by yo3ggx »

This is what I said, I cannot learn/save a RF command. When I click on Sweep and then press a button on the RF X10 remote, the Learn button is activated. Pressing on it do nothing, same if pressing on Save. What's the right procedure to learn RF devices? For IR devices seems to work.
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

yo3ggx wrote: Saturday 19 September 2020 11:45 What's the right procedure to learn RF devices? For IR devices seems to work.
Near the Broadlink device :
learnrf1.PNG
learnrf1.PNG (30.55 KiB) Viewed 2038 times
First, you need to click on sweep and let your remote button pressed until Broadlink led light off.
If success, this will put "learn" selector on.
learnrf2.PNG
learnrf2.PNG (28.76 KiB) Viewed 2038 times

Second, you click on "learn" and press your remote button again.
if success, this will put "test" selector on, you can click on save after, this should create the ini file.
learnrf3.PNG
learnrf3.PNG (28.3 KiB) Viewed 2038 times
yo3ggx
Posts: 14
Joined: Tuesday 03 September 2019 13:13
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by yo3ggx »

I press on Sweep and click on RF remote button. Learn button is activated and red light on the RP Pro goes off. I press again the RF remote button, but nothing happen. Learn button remain activated.
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

yo3ggx wrote: Saturday 19 September 2020 12:31 I press on Sweep and click on RF remote button. Learn button is activated and red light on the RP Pro goes off. I press again the RF remote button, but nothing happen. Learn button remain activated.
Do you have followed the process ?? if yes and still problem, please provide content of the log folder and Domoticz log too.
tempsnip.png
tempsnip.png (46 KiB) Viewed 1989 times
yo3ggx
Posts: 14
Joined: Tuesday 03 September 2019 13:13
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by yo3ggx »

If I click on LEARN after is already activated from the previous step, LEARN goes off. If I press again on it, nothing happen when I press the button on the remote.
No mater what I try, Test button cannot be activated, same for Save.
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

yo3ggx wrote: Monday 21 September 2020 12:19 If I click on LEARN after is already activated from the previous step, LEARN goes off. If I press again on it, nothing happen when I press the button on the remote.
No mater what I try, Test button cannot be activated, same for Save.
if nothing happen, Broadlink device do not focus on the right frequency. In this case, restart full process: Sweep ... Learn etc..
yo3ggx
Posts: 14
Joined: Tuesday 03 September 2019 13:13
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by yo3ggx »

Done already several times, unsuccessfully. Mustr be something related to plugin configuration, as over IR it works.
Broadlink focus on the right frequency, as if I press remote when in Sweep mode, Learn button is activated.
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

yo3ggx wrote: Monday 21 September 2020 12:49 Done already several times, unsuccessfully. Mustr be something related to plugin configuration, as over IR it works.
Broadlink focus on the right frequency, as if I press remote when in Sweep mode, Learn button is activated.
try to learn RF in manual mode (cli) and let know if working:
https://www.home-assistant.io/integrati ... leshooting
yo3ggx
Posts: 14
Joined: Tuesday 03 September 2019 13:13
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by yo3ggx »

In CLI mode seems to be ok.

Code: Select all

Learning RF Frequency, press and hold the button to learn...
Found RF Frequency - 1 of 2!
You can now let go of the button
Press enter to continue...
To complete learning, single press the button you want to learn
Found RF Frequency - 2 of 2!
b200dc001000020732111132113332113311321132113311113211323311103311323310113311323211113211323311113211323311113211000207331011321133331033113211331132111132113233111132113233111033113233111033113233101133103332111132110002073311113211323311321133113211331110331132331110321133331011331132321111331032331111321132331111321100020733111132113233103311331132113311103311323211113211333211113211333211113211323311113211323311113211000207331110330e0005dc000000000000000000000000
Base64: b'sgDcABAAAgcyEREyETMyETMRMhEyETMRETIRMjMREDMRMjMQETMRMjIRETIRMjMRETIRMjMRETIRAAIHMxARMhEzMxAzETIRMxEyEREyETIzEREyETIzERAzETIzERAzETIzEBEzEDMyEREyEQACBzMRETIRMjMRMhEzETIRMxEQMxEyMxEQMhEzMxARMxEyMhERMxAyMxERMhEyMxERMhEAAgczEREyETIzEDMRMxEyETMREDMRMjIRETIRMzIRETIRMzIRETIRMjMRETIRMjMRETIRAAIHMxEQMw4ABdwAAAAAAAAAAAAAAAA='
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

yo3ggx wrote: Monday 21 September 2020 16:46 In CLI mode seems to be ok.

Code: Select all

Learning RF Frequency, press and hold the button to learn...
Found RF Frequency - 1 of 2!
You can now let go of the button
Press enter to continue...
To complete learning, single press the button you want to learn
Found RF Frequency - 2 of 2!
b200dc001000020732111132113332113311321132113311113211323311103311323310113311323211113211323311113211323311113211000207331011321133331033113211331132111132113233111132113233111033113233111033113233101133103332111132110002073311113211323311321133113211331110331132331110321133331011331132321111331032331111321132331111321100020733111132113233103311331132113311103311323211113211333211113211333211113211323311113211323311113211000207331110330e0005dc000000000000000000000000
Base64: b'sgDcABAAAgcyEREyETMyETMRMhEyETMRETIRMjMREDMRMjMQETMRMjIRETIRMjMRETIRMjMRETIRAAIHMxARMhEzMxAzETIRMxEyEREyETIzEREyETIzERAzETIzERAzETIzEBEzEDMyEREyEQACBzMRETIRMjMRMhEzETIRMxEQMxEyMxEQMhEzMxARMxEyMhERMxAyMxERMhEyMxERMhEAAgczEREyETIzEDMRMxEyETMREDMRMjIRETIRMzIRETIRMzIRETIRMjMRETIRMjMRETIRAAIHMxEQMw4ABdwAAAAAAAAAAAAAAAA='
That's great.
The plugin do nothing more... and simulate the CLI mode.

Sweep buton:
"Learning RF Frequency, press and hold the button to learn...
Found RF Frequency - 1 of 2!"

When learn button is On, this mean that Found RF Frequency (1 of 2) is OK.

Learn button:
"You can now let go of the button
Press enter to continue..."
To complete learning, single press the button you want to learn
Found RF Frequency - 2 of 2!

when you press the learn button, this is this action that is activated and you need to single press the button you want to learn...
If Found RF frequency (2 of 2) is OK, plugin will put the test button On and store the code (e.g. b200d125dc......) into memory to be saved if you want.

So now, verify that you have setup the same Broadlink device type used during CLI.
Be sure to be near the Broadlink device, probability to have noise / perturbation is great for 433 Mhz.
Qwekkel
Posts: 1
Joined: Saturday 26 September 2020 21:29
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Python Plugin : Broadlink

Post by Qwekkel »

Just bought me a second-hand Broadlink RM3mini and i'm lookin forward to fiddle with this plugin. Support looks good and the plugin solid.
I'll be back! GJ Zak45!
Pi4-2Gb, RFXtrx433ProXL, zzh! CC2652R, AeonLabs Z-waveG5
Pi3, CC2531 with Koenkk's Z-Stack-firmware (1.2)
PiZero, Dom-slave
Pi1, Dom-slave with P1 Smart Meter
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

Qwekkel wrote: Saturday 26 September 2020 21:35 Just bought me a second-hand Broadlink RM3mini and i'm lookin forward to fiddle with this plugin. Support looks good and the plugin solid.
I'll be back! GJ Zak45!
thanks. :D
matekogon
Posts: 5
Joined: Sunday 04 October 2020 19:42
Target OS: Windows
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by matekogon »

hello friends

Can you tell me where the error may be. I installed plugin setup.py.
I installed the plugin with positive results
1.PNG
1.PNG (46.12 KiB) Viewed 1824 times
I did a domoticz restart
Unfortunately, I do not see it in domoticz
Bez tytułu.png
Bez tytułu.png (23.61 KiB) Viewed 1824 times
skywi13
Posts: 2
Joined: Thursday 08 October 2020 16:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by skywi13 »

Hello everybody,

I'm trying to re-install the plugin on a Raspberry PI3.
I have some problem and i'm newbi.

My english is scholastic, sorry for that... :|

When i have installed the pluging i have an error message :

"Checking installation ....
----------------------------------------
Successfully imported googletrans
Error importing translate

The rest of installation is correct. In integration of domoticz i have this message...

2020-10-08 15:42:19.545 Error: (Broadlink) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Broadlink/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2020-10-08 15:42:19.545 Error: (RM4-SAM) Module Import failed, exception: 'ModuleNotFoundError'
2020-10-08 15:42:19.545 Error: (RM4-SAM) Module Import failed: ' Name: broadlink'
2020-10-08 15:42:19.545 Error: (RM4-SAM) Error Line details not available.
2020-10-08 15:43:31.177 Error: RM4-SAM hardware (2) thread seems to have ended unexpectedly


The file 'plugin.py' exist in the directory /home/pi/domoticz/plugins/Broadlink/

pi@raspberrypi:~ $ python --version
Python 3.5.4


Some help ?

Thank you
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

skywi13 wrote: Thursday 08 October 2020 17:02 "Checking installation ....
----------------------------------------
Successfully imported googletrans
Error importing translate

2020-10-08 15:42:19.545 Error: (RM4-SAM) Module Import failed, exception: 'ModuleNotFoundError'
pi@raspberrypi:~ $ python --version
Python 3.5.4
Be sure to have executed installation with sudo ... and that rigth python version has been set for your system not only for your user ...
Modulenotfounderror has been already discussed many time, check on this topic.
zak45
Posts: 952
Joined: Sunday 22 January 2017 11:37
Target OS: Windows
Domoticz version: V2024.4
Contact:

Re: Python Plugin : Broadlink

Post by zak45 »

matekogon wrote: Wednesday 07 October 2020 21:26
Can you tell me where the error may be. I installed plugin setup.py.
I installed the plugin with positive results
I did a domoticz restart
Unfortunately, I do not see it in domoticz
Double check that your python soft. has been setup with the right settings.. see wiki (executed with admin mode, all users & include in path if I remember well)
matekogon
Posts: 5
Joined: Sunday 04 October 2020 19:42
Target OS: Windows
Domoticz version:
Contact:

Re: Python Plugin : Broadlink

Post by matekogon »

Zak45
everything is already working. I installed in the wrong folder. I still have a question.
I bought Broadlink RM4 mini + sensor temp and humidity.I can see the temperature, I cannot see the humidity.
Does the plug support a humidity sensor?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest