Broadlink plugin - test version

Questions and comments specific to a particular plugin should go here.
User avatar
Medy
Experienced User
Posts: 177
Joined: Sat Nov 15, 2014 8:33 pm
Location: Germany

Re: Broadlink plugin - test version

Post by Medy » Tue Oct 20, 2020 7:10 am

*Roma* wrote:
Tue Oct 20, 2020 6:59 am
Ok, thanks.
The first error is normal ... its just a info .. im also getting that

the second .. again shouldnt be happening ... since that package is included ...
if you look here File "C:\ProgramData\EventGhost\plugins\Broadlink\
there should be a file called ipadress.py


Maybe reinstall eventghost / donwload the latest version.


Edit ... I just did a fresh install of Eventghost(downloaded the latest verison) and installed the plugin (via the egplugin file)
it works... may try that too ... make sure to delete old folders ..

*Roma*
Posts: 23
Joined: Thu Mar 13, 2008 5:13 pm

Re: Broadlink plugin - test version

Post by *Roma* » Tue Oct 20, 2020 8:24 am

Ok, I will try.

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

Re: Broadlink plugin - test version

Post by Medy » Tue Oct 20, 2020 12:20 pm

*Roma* wrote:
Tue Oct 20, 2020 8:24 am
Ok, I will try.
Alright ... sry for all the errors... hopefully it will be worth the trouble ;)

Edit : Make sure to delete the eventghost plugins folder / or at least the broadlink stuff

from E/Program Data/Eventghost

Or delete all eventghost folders from your drives you have just to be safe...
I just want confirmation that someone else with a fresh installation got it working
Last edited by Medy on Tue Oct 20, 2020 1:37 pm, edited 2 times in total.

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

Re: Broadlink plugin - test version

Post by Sem;colon » Tue Oct 20, 2020 12:47 pm

Hi together,
I think when you install a plugin in the .egplugin format it's not (always) overriding the old version of the plugin.
Also, imported plugins go to the eg plugins folder in programdata and not in programs.
If you like my work, Image me a drink :wink:

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

Re: Broadlink plugin - test version

Post by Medy » Tue Oct 20, 2020 1:17 pm

Sem;colon wrote:
Tue Oct 20, 2020 12:47 pm
Hi together,
I think when you install a plugin in the .egplugin format it's not (always) overriding the old version of the plugin.
Also, imported plugins go to the eg plugins folder in programdata and not in programs.
Thx for tuning in.

now this confirms that you need to make sure to delete old stuff first.
Last edited by Medy on Tue Oct 20, 2020 4:16 pm, edited 1 time in total.

kalinkamaen
Experienced User
Posts: 142
Joined: Wed Dec 26, 2012 9:23 am

Re: Broadlink plugin - test version

Post by kalinkamaen » Tue Oct 20, 2020 2:23 pm

This plugin does not work on old version Eventghost. So I cant test. Moving to new plugin will make my sonos plugin not work.

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

Re: Broadlink plugin - test version

Post by Medy » Tue Oct 20, 2020 3:23 pm

kalinkamaen wrote:
Tue Oct 20, 2020 2:23 pm
This plugin does not work on old version Eventghost. So I cant test. Moving to new plugin will make my sonos plugin not work.
What eventghost version are you using ? Unless it ancient I assume it could work

*Roma*
Posts: 23
Joined: Thu Mar 13, 2008 5:13 pm

Re: Broadlink plugin - test version

Post by *Roma* » Tue Oct 20, 2020 3:48 pm

Hi Medy,

I installed EG 0.5 on new laptop - I get the same errors.
If I turn off the rm mini 3 - I get the following events (without errors):

Code: Select all

Searching for Broadlink Device in your Network... please wait
!!! NO DEVICE FOUND !!! - Try Increase timeout 
Complete  Phone Setup or Manual Setup first
Broadlink.Discovery.Failed
It could also be that your device is not supported 
When I connect the rm mini 3 - I start to getting the errors.

We need more testers with Broadlink devices.

Thanks
Roman

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

Re: Broadlink plugin - test version

Post by Medy » Tue Oct 20, 2020 4:24 pm

*Roma* wrote:
Tue Oct 20, 2020 3:48 pm
Hi Medy,

I installed EG 0.5 on new laptop - I get the same errors.
If I turn off the rm mini 3 - I get the following events (without errors):

Code: Select all

Searching for Broadlink Device in your Network... please wait
!!! NO DEVICE FOUND !!! - Try Increase timeout 
Complete  Phone Setup or Manual Setup first
Broadlink.Discovery.Failed
It could also be that your device is not supported 
When I connect the rm mini 3 - I start to getting the errors.

We need more testers with Broadlink devices.

Thanks
Roman
its smth dumb ... Ill figure it out ... give me a day

kalinkamaen
Experienced User
Posts: 142
Joined: Wed Dec 26, 2012 9:23 am

Re: Broadlink plugin - test version

Post by kalinkamaen » Tue Oct 20, 2020 4:31 pm

Medy wrote:
Tue Oct 20, 2020 3:23 pm
kalinkamaen wrote:
Tue Oct 20, 2020 2:23 pm
This plugin does not work on old version Eventghost. So I cant test. Moving to new plugin will make my sonos plugin not work.
What eventghost version are you using ? Unless it ancient I assume it could work
Its the old one yes. See picture bellow.

Can some one tell me if sonos plugin is working without problems on 0,5 RC6
Attachments
eg.JPG
eg.JPG (10.21 KiB) Viewed 321 times

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

Re: Broadlink plugin - test version

Post by Medy » Tue Oct 20, 2020 4:55 pm

*Roma* wrote:
Tue Oct 20, 2020 3:48 pm
Hi Medy,

I installed EG 0.5 on new laptop - I get the same errors.
If I turn off the rm mini 3 - I get the following events (without errors):

Code: Select all

Searching for Broadlink Device in your Network... please wait
!!! NO DEVICE FOUND !!! - Try Increase timeout 
Complete  Phone Setup or Manual Setup first
Broadlink.Discovery.Failed
It could also be that your device is not supported 
When I connect the rm mini 3 - I start to getting the errors.

We need more testers with Broadlink devices.

Thanks
Roman
Alright I definetly found the culprit now ... it is very stupid indeed...
and makes no sense to me atm but I moved some of the packages back to the Eventghost site packages folder

and that did the trick .... and now it works again...

(I removed all old files on my system myself and did a fresh install ) got the same errors you posted :D ... and the same behaviour with unpugging the thing .... I couldnt believe it xD...

I will do some more detective work ... but ultimately we can get this to work....
even if we have to copy some files to another place ...

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

Re: Broadlink plugin - test version

Post by Medy » Tue Oct 20, 2020 5:43 pm

*Roma* wrote:
Tue Oct 20, 2020 3:48 pm
Hi Medy,

I installed EG 0.5 on new laptop - I get the same errors.
If I turn off the rm mini 3 - I get the following events (without errors):

Code: Select all

Searching for Broadlink Device in your Network... please wait
!!! NO DEVICE FOUND !!! - Try Increase timeout 
Complete  Phone Setup or Manual Setup first
Broadlink.Discovery.Failed
It could also be that your device is not supported 
When I connect the rm mini 3 - I start to getting the errors.

We need more testers with Broadlink devices.

Thanks
Roman

Ok uploaded new version 0.2 ... follow the instructions
and it should work this time. ----This should really work now :D...

Also delete the folder from E:/Program Data/ Eventghost / Plugins / Broadlink
it doesnt get deleted by a unistall

If you install into the same path again ...delete exisiting folders on that path beforehand...


The ipadress import error ... is a mystery to me for now ... but by moving it to the eventghost main site-packages folder it works ...
(Basicly it cant be imported from inside Program Data folder ... but it CAN be imported from site-packages ???? wth)

I need a explaination for this :D @Semicolon
Last edited by Medy on Tue Oct 20, 2020 5:47 pm, edited 1 time in total.

*Roma*
Posts: 23
Joined: Thu Mar 13, 2008 5:13 pm

Re: Broadlink plugin - test version

Post by *Roma* » Tue Oct 20, 2020 5:46 pm

Ok, now I get other error messages :)
When I enable the plugin I get:

Code: Select all

Plugin: Broadlink
   Searching for Broadlink Device in your Network... please wait
Exception in thread Thread-819:
Traceback (most recent call last):
  File "threading.pyc", line 801, in __bootstrap_inner
  File "threading.pyc", line 754, in run
  File "C:\ProgramData\EventGhost\plugins\Broadlink\__init__.py", line 205, in discoverDevices
    discovered = broadlink.discover(timeout=conTimeout)
  File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 198, in discover
    device = gendevice(devtype, host, mac, name=name, is_locked=is_locked)
  File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 112, in gendevice
    is_locked=is_locked,
  File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 728, in __init__
    device.__init__(self, *args, **kwargs)
  File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 234, in __init__
    self.update_aes(key)
  File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 238, in update_aes
    backend=default_backend())
  File "C:\ProgramData\EventGhost\plugins\Broadlink\cryptography\hazmat\backends\__init__.py", line 15, in default_backend
    from cryptography.hazmat.backends.openssl.backend import backend
  File "C:\ProgramData\EventGhost\plugins\Broadlink\cryptography\hazmat\backends\openssl\__init__.py", line 7, in <module>
    from cryptography.hazmat.backends.openssl.backend import backend
  File "C:\ProgramData\EventGhost\plugins\Broadlink\cryptography\hazmat\backends\openssl\backend.py", line 40, in <module>
    from cryptography.hazmat.backends.openssl import aead
ImportError: cannot import name aead
After restart of EG - I get:

Code: Select all

         Exception in thread Thread-266:
         Traceback (most recent call last):
           File "threading.pyc", line 801, in __bootstrap_inner
           File "threading.pyc", line 754, in run
           File "C:\ProgramData\EventGhost\plugins\Broadlink\__init__.py", line 205, in discoverDevices
             discovered = broadlink.discover(timeout=conTimeout)
           File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 198, in discover
             device = gendevice(devtype, host, mac, name=name, is_locked=is_locked)
           File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 112, in gendevice
             is_locked=is_locked,
           File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 728, in __init__
             device.__init__(self, *args, **kwargs)
           File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 234, in __init__
             self.update_aes(key)
           File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 238, in update_aes
             backend=default_backend())
           File "C:\ProgramData\EventGhost\plugins\Broadlink\cryptography\hazmat\backends\__init__.py", line 15, in default_backend
             from cryptography.hazmat.backends.openssl.backend import backend
           File "C:\ProgramData\EventGhost\plugins\Broadlink\cryptography\hazmat\backends\openssl\__init__.py", line 7, in <module>
             from cryptography.hazmat.backends.openssl.backend import backend
           File "C:\ProgramData\EventGhost\plugins\Broadlink\cryptography\hazmat\backends\openssl\backend.py", line 117, in <module>
             from cryptography.hazmat.bindings.openssl import binding
           File "C:\ProgramData\EventGhost\plugins\Broadlink\cryptography\hazmat\bindings\openssl\binding.py", line 15, in <module>
             from cryptography.hazmat.bindings._openssl import ffi, lib
         ImportError: No module named _cffi_backend
Thanks
Roman

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

Re: Broadlink plugin - test version

Post by Medy » Tue Oct 20, 2020 5:57 pm

*Roma* wrote:
Tue Oct 20, 2020 5:46 pm
Ok, now I get other error messages :)
When I enable the plugin I get:

Code: Select all

Plugin: Broadlink
   Searching for Broadlink Device in your Network... please wait
Exception in thread Thread-819:
Traceback (most recent call last):
  File "threading.pyc", line 801, in __bootstrap_inner
  File "threading.pyc", line 754, in run
  File "C:\ProgramData\EventGhost\plugins\Broadlink\__init__.py", line 205, in discoverDevices
    discovered = broadlink.discover(timeout=conTimeout)
  File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 198, in discover
    device = gendevice(devtype, host, mac, name=name, is_locked=is_locked)
  File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 112, in gendevice
    is_locked=is_locked,
  File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 728, in __init__
    device.__init__(self, *args, **kwargs)
  File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 234, in __init__
    self.update_aes(key)
  File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 238, in update_aes
    backend=default_backend())
  File "C:\ProgramData\EventGhost\plugins\Broadlink\cryptography\hazmat\backends\__init__.py", line 15, in default_backend
    from cryptography.hazmat.backends.openssl.backend import backend
  File "C:\ProgramData\EventGhost\plugins\Broadlink\cryptography\hazmat\backends\openssl\__init__.py", line 7, in <module>
    from cryptography.hazmat.backends.openssl.backend import backend
  File "C:\ProgramData\EventGhost\plugins\Broadlink\cryptography\hazmat\backends\openssl\backend.py", line 40, in <module>
    from cryptography.hazmat.backends.openssl import aead
ImportError: cannot import name aead
After restart of EG - I get:

Code: Select all

         Exception in thread Thread-266:
         Traceback (most recent call last):
           File "threading.pyc", line 801, in __bootstrap_inner
           File "threading.pyc", line 754, in run
           File "C:\ProgramData\EventGhost\plugins\Broadlink\__init__.py", line 205, in discoverDevices
             discovered = broadlink.discover(timeout=conTimeout)
           File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 198, in discover
             device = gendevice(devtype, host, mac, name=name, is_locked=is_locked)
           File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 112, in gendevice
             is_locked=is_locked,
           File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 728, in __init__
             device.__init__(self, *args, **kwargs)
           File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 234, in __init__
             self.update_aes(key)
           File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 238, in update_aes
             backend=default_backend())
           File "C:\ProgramData\EventGhost\plugins\Broadlink\cryptography\hazmat\backends\__init__.py", line 15, in default_backend
             from cryptography.hazmat.backends.openssl.backend import backend
           File "C:\ProgramData\EventGhost\plugins\Broadlink\cryptography\hazmat\backends\openssl\__init__.py", line 7, in <module>
             from cryptography.hazmat.backends.openssl.backend import backend
           File "C:\ProgramData\EventGhost\plugins\Broadlink\cryptography\hazmat\backends\openssl\backend.py", line 117, in <module>
             from cryptography.hazmat.bindings.openssl import binding
           File "C:\ProgramData\EventGhost\plugins\Broadlink\cryptography\hazmat\bindings\openssl\binding.py", line 15, in <module>
             from cryptography.hazmat.bindings._openssl import ffi, lib
         ImportError: No module named _cffi_backend
Thanks
Roman
try move cffi_backend file from Program data / plugins / Broadlink
to the Site Packages folder .... sane place where you copied the ipadress files as well

Also make sure you dont have 2 eventghost installations at once... on different drives or smth... starting the wrong one

*Roma*
Posts: 23
Joined: Thu Mar 13, 2008 5:13 pm

Re: Broadlink plugin - test version

Post by *Roma* » Tue Oct 20, 2020 6:14 pm

After moving cffi_backend file - EG successfully detected the rm mini 3:

Code: Select all

Model : RM mini 3
Device Network Adress : ('192.168.50.205', 80)
Broadlink.Discovery.Completed
But when I try to learn IR code - I get this error:

Code: Select all

Exception in thread Thread-838:
Traceback (most recent call last):
  File "threading.pyc", line 801, in __bootstrap_inner
  File "threading.pyc", line 754, in run
  File "C:\ProgramData\EventGhost\plugins\Broadlink\__init__.py", line 369, in threaded_learning_ir
    selectedDevice[0].auth()
  File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\__init__.py", line 276, in auth
    check_error(response[0x22:0x24])
  File "C:\ProgramData\EventGhost\plugins\Broadlink\broadlink\exceptions.py", line 97, in check_error
    raise exception(error_code)
AuthenticationError: Authentication failed
Thanks
Roman

Post Reply