Broadlink plugin - alpha version

Questions and comments specific to a particular plugin should go here.
smbs
Posts: 24
Joined: Fri Apr 28, 2017 2:28 pm

Re: Broadlink plugin - alpha version

Post by smbs » Wed Feb 17, 2021 10:00 am

Many thanx
I Have ordered both rm pro and a rm3 mini
After they arrive I will see what happens
Many thanx for your advice

balouzeus
Posts: 2
Joined: Fri Feb 19, 2021 2:27 pm

Re: Broadlink plugin - alpha version

Post by balouzeus » Fri Feb 19, 2021 2:36 pm

Thanks for the plugin, it works fine but it doesn't work when the VPN connection is active on the PC with Eventghost.
RM Bridge with Android works with Broadlink and VPN. Is it possible to program your plugin so that it also works with active VPN. Text was created with Online Translator.

without VPN
09:24:21 Searching ...
09:24:30 System.BatteryLevel.31%
09:24:31 Model : RM mini 3
09:24:31 Device Network Adress : ('192.168.2.115', 80)
09:24:31 Dev-Type : 0x2737
09:24:31 Locked :False
09:24:31 Broadlink.Discovery.Completed
with VPN
09:22:27 Searching ...
09:22:38 !!! NO DEVICE FOUND !!!
09:22:38 Broadlink.Discovery.Failed
09:22:38 Make sure device is added to your Network via Offical App Setup / Manual Setup
09:22:38 Currently only Rm Pro Plus & Rm 3 Mini supported

User avatar
Medy
Experienced User
Posts: 206
Joined: Sat Nov 15, 2014 8:33 pm
Location: Germany

Re: Broadlink plugin - alpha version

Post by Medy » Sat Feb 20, 2021 7:29 pm

you can go into the the program data folder and
put this file I added as attachment.... (repalce it with the existing one)
C:\ProgramData\EventGhost\plugins\Broadlink

I just adjusted the search parameter to your local network manually : 192.168.2.255 .. because when using vpn your pc is leaving your usual adress range ...

discovered = broadlink.discover(timeout=conTimeout , discover_ip_address="192.168.2.255")

this might work ... im not familiar with vpn yet so im not sure
Attachments
__init__.py
(24 KiB) Downloaded 88 times

User avatar
Sem;colon
Plugin Developer
Posts: 892
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: Broadlink plugin - alpha version

Post by Sem;colon » Sat Feb 20, 2021 8:04 pm

It usually depends on how your VPN is setup.
Most companies doesn't allow Local network access while on VPN, as this could compromise the company network. If this is the case, it simply can't work with this solution.

That your other software is working anyways is because it utilizes a cloud service (and that service is not blocked by your companies firewall), that means your computer is not directly taking to your hardware at home, but with a server on the internet and that server is then talking to the hardware you have at home.
If you like my work, Image me a drink :wink:

balouzeus
Posts: 2
Joined: Fri Feb 19, 2021 2:27 pm

Re: Broadlink Plugin - Alpha-Version

Post by balouzeus » Wed Feb 24, 2021 5:36 pm

Hello, my answer from Saturday apparently hasn't arrived here again. The exchange of the file did not help. The VPN is private (Openvpn) communication in my network is possible under my PC's. Maybe @Medy has another idea. Otherwise, I have to accept it and thank you for your help.

smbs
Posts: 24
Joined: Fri Apr 28, 2017 2:28 pm

Re: Broadlink plugin - alpha version

Post by smbs » Thu Feb 25, 2021 2:44 pm

Hi Medy
both my rm3 mini and rm pro + arrived today
Tried to install plugin as per instructions from your google drive
I am using EG 0.4.1.r1722---I have "c:\Program Files (x86)\EventGhost\lib26\" not lib27 as u stated so I copied the required site packages folder files to lib26
I installed via Egplugin File
then Copied Content of site-packages into "C:\Program Files (x86)EventGhost\lib26\site-packages"--note lib26 and not lib27--is that ok?
when I run EG I get following error

eg-error.png
Many thanx

User avatar
Medy
Experienced User
Posts: 206
Joined: Sat Nov 15, 2014 8:33 pm
Location: Germany

Re: Broadlink plugin - alpha version

Post by Medy » Thu Feb 25, 2021 2:59 pm

Well if you dont see your boradlink device popping up in the printed messages .. you will have to upgrade to the latest eventghost rc6 I believe

smbs
Posts: 24
Joined: Fri Apr 28, 2017 2:28 pm

Re: Broadlink plugin - alpha version

Post by smbs » Thu Feb 25, 2021 3:56 pm

Thanx working great after update

User avatar
Medy
Experienced User
Posts: 206
Joined: Sat Nov 15, 2014 8:33 pm
Location: Germany

Re: Broadlink plugin - alpha version

Post by Medy » Thu Feb 25, 2021 4:48 pm

smbs wrote:
Thu Feb 25, 2021 3:56 pm
Thanx working great after update
Glad to hear it. RC6 seems to be the way to go then.
I will add that as a note.

smbs
Posts: 24
Joined: Fri Apr 28, 2017 2:28 pm

Re: Broadlink plugin - alpha version

Post by smbs » Thu Mar 25, 2021 12:26 pm

Medy wrote:
Thu Feb 25, 2021 4:48 pm
smbs wrote:
Thu Feb 25, 2021 3:56 pm
Thanx working great after update
Glad to hear it. RC6 seems to be the way to go then.
I will add that as a note.
Any chance of getting it t work with version EG 0.4.1.r1722
RC6 is giving me plenty of trouble and I want to go back to EG 0.4.1.r1722 but I really like your Broadlink plugin and want to continue using it in older version
Many thanx
smbs

User avatar
Medy
Experienced User
Posts: 206
Joined: Sat Nov 15, 2014 8:33 pm
Location: Germany

Re: Broadlink plugin - alpha version

Post by Medy » Thu Mar 25, 2021 6:34 pm

Its was tough to make this run for the current eventghost which is stilll running python 2.7 ...

Definetly not pretty and also not maintainable .... basicly ductaped toghether...
told some broken things to hush hush be quiet :D ... so the bigger picture can still function :D ...

I might do a different aproach in the future ...

dunno when though ..

going back to even older eventghost versions would probably drive me insane :D...

smbs
Posts: 24
Joined: Fri Apr 28, 2017 2:28 pm

Re: Broadlink plugin - alpha version

Post by smbs » Thu Mar 25, 2021 10:21 pm

No problem
I really appreciate all your hard work
I only wish I could help in some way.
Many thanx
Smbs

User avatar
Medy
Experienced User
Posts: 206
Joined: Sat Nov 15, 2014 8:33 pm
Location: Germany

Re: Broadlink plugin - alpha version

Post by Medy » Fri Mar 26, 2021 10:16 am

smbs wrote:
Thu Mar 25, 2021 10:21 pm

I only wish I could help in some way.
Smbs

THe only help I require is ppl using and testing the thing ... maybe using different devices ...
Im still looking for feedback on someone using a rmpro 4 device ...
which is the latest model ...


The older models seem to fade out of availability ...
and if comes to that ... I will probably update the plugin

User avatar
Sem;colon
Plugin Developer
Posts: 892
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: Broadlink plugin - alpha version

Post by Sem;colon » Sat Aug 21, 2021 8:29 pm

Hi Medy,

there is a conceptional flaw in this plugin - I'm talking about the ir.json file. (You may have noticed already)
You reference codes from the index of your list. But when you remove a code (because you don't need it anymore) the index changes and the configured actions fail or do something else than expected :/

Besides that and the fact that actions for rename etc. are still missing, I really like that plugin! :D
If you like my work, Image me a drink :wink:

User avatar
Medy
Experienced User
Posts: 206
Joined: Sat Nov 15, 2014 8:33 pm
Location: Germany

Re: Broadlink plugin - alpha version

Post by Medy » Sun Sep 05, 2021 2:06 pm

Sem;colon wrote:
Sat Aug 21, 2021 8:29 pm
Hi Medy,

there is a conceptional flaw in this plugin - I'm talking about the ir.json file. (You may have noticed already)
You reference codes from the index of your list. But when you remove a code (because you don't need it anymore) the index changes and the configured actions fail or do something else than expected :/

Besides that and the fact that actions for rename etc. are still missing, I really like that plugin! :D
If you removed codes manually via the ir.json file .. then I didn't account for that yet / tested that :D ...

Regarding developing the plugin ... Since the broadlink library stopped support for python 2 ..
I would rather make a new tool / script then continue work on this one...

Idea 1 - seperate app to run latest broadlink libraries with python 3...
User could record codes via the seperate app / delete / rename / test ...
And then I will just add Eventghost support / Endpoints ....

Post Reply