libCEC plugin for Pulse Eight HDMI-CEC usb adapter

Questions and comments specific to a particular plugin should go here.
User avatar
Luca Brasi
Experienced User
Posts: 262
Joined: Sat Oct 11, 2008 12:39 pm

Re: libCEC plugin for Pulse Eight HDMI-CEC usb adapter

Post by Luca Brasi » Fri Oct 06, 2017 7:08 pm

Hm, that's strange.
I tested it on another fresh system with a fresh config and only one hdmi device attached. It's the same thing. After install the devices list is empty.
I noticed that when I open it a second time after hitting OK after the first time the list will be filled with all possible devices (I guess that's how it's supposed to be).
After that the actions I tested do work.
Win10 x64 Prof. / Eventghost latest / MCE Plugin / MCE RC6 Receiver / Logitech Harmony Hub / MediaPortal / kodi

User avatar
kgschlosser
Site Admin
Posts: 5017
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: libCEC plugin for Pulse Eight HDMI-CEC usb adapter

Post by kgschlosser » Fri Oct 06, 2017 7:22 pm

OK. are you running EG and then double clicking on an action right away?

this could be where the issue is. the plugin has not had the time to set up the adapter yet. when I initially made this plugin there was a huge stall in the EG startup while the plugin scanned and set up the adapter and devices. so now this is done in a separate thread so EG can continue along. this could be what is causing the problem.




***EDIT***

confirmed. i will have to code in some kind of a stall routine into the actions
If you like the work I have been doing then feel free to Image

User avatar
kgschlosser
Site Admin
Posts: 5017
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: libCEC plugin for Pulse Eight HDMI-CEC usb adapter

Post by kgschlosser » Fri Oct 06, 2017 7:33 pm

ok this one should fix the issue it will stall the dialog from loading until all of the adapters have been scanned. it will also stall an action from being carried out.
Attachments
PulseEight-1.2.3b.egplugin
(251.38 KiB) Downloaded 177 times
If you like the work I have been doing then feel free to Image

User avatar
Luca Brasi
Experienced User
Posts: 262
Joined: Sat Oct 11, 2008 12:39 pm

Re: libCEC plugin for Pulse Eight HDMI-CEC usb adapter

Post by Luca Brasi » Sat Oct 07, 2017 6:03 am

I can't see that much of a difference.
What I did:
1. Updated the plugin
2. Made a new config
3. Added the plugin
4. Entered the name for the adapter
5. Waited for a couple of minutes
6. Opened the config menu for the first action in the tree
7. The list was still empty
8. Saved it as it was
9. Reopened it and the complete list was there instantly

After that I can test.
I have a question about the list: Is it supposed to be filtered down to the devices which are found on the cec bus?
Win10 x64 Prof. / Eventghost latest / MCE Plugin / MCE RC6 Receiver / Logitech Harmony Hub / MediaPortal / kodi

User avatar
kgschlosser
Site Admin
Posts: 5017
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: libCEC plugin for Pulse Eight HDMI-CEC usb adapter

Post by kgschlosser » Sat Oct 07, 2017 2:13 pm

yes it is supposed to be a filtered down list of devices. that is odd that it is doing that to you. I cannot get it to duplicate on my machine. something has to be different. I just do not know what it could be.
If you like the work I have been doing then feel free to Image

User avatar
Luca Brasi
Experienced User
Posts: 262
Joined: Sat Oct 11, 2008 12:39 pm

Re: libCEC plugin for Pulse Eight HDMI-CEC usb adapter

Post by Luca Brasi » Sun Oct 08, 2017 8:06 am

I just do not know what it could be.
Same here... Especially as I have it on two systems. I'll check the cable now :-)

I did something to test a bit deeper: I installed the older versions of the plugin. With 0.4 I have the same problems.
With 0.3 everything is working fine but as far as I can see there is no scanning for the devices.
Win10 x64 Prof. / Eventghost latest / MCE Plugin / MCE RC6 Receiver / Logitech Harmony Hub / MediaPortal / kodi

User avatar
Luca Brasi
Experienced User
Posts: 262
Joined: Sat Oct 11, 2008 12:39 pm

Re: libCEC plugin for Pulse Eight HDMI-CEC usb adapter

Post by Luca Brasi » Sun Oct 08, 2017 8:34 am

I did a fresh install of eg and the plugin on my laptop and connected only my tv to the adapter. Same thing but I get this error now on start of eg.

Code: Select all

pythoncom error: ERROR: server.policy could not create an instance.

Traceback (most recent call last):
  File "win32com\server\policy.pyc", line 136, in CreateInstance
  File "win32com\server\policy.pyc", line 193, in _CreateInstance_
TypeError: 'str' object is not callable
pythoncom error: Unexpected gateway error

Traceback (most recent call last):
  File "win32com\server\policy.pyc", line 136, in CreateInstance
  File "win32com\server\policy.pyc", line 193, in _CreateInstance_
TypeError: 'str' object is not callable
pythoncom error: CPyFactory::CreateInstance failed to create instance. (80004005)
Unable to establish COM dispatch!
Does it help?

[Edit:]
And now this on trying to open a action:

Code: Select all

Traceback (most recent call last) (0.5.0-rc4):
  File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 162, in ProcessingTask
    self.Configure(*args, **kwargs)
  File "C:\Program Files (x86)\EventGhost\eg\Utils.py", line 441, in LogItWithReturnWrapper
    result = func(*args, **kwargs)
  File "C:\Program Files (x86)\EventGhost\eg\Classes\ConfigDialog.py", line 106, in Configure
    treeItem.Configure(*args)
  File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionItem.py", line 80, in Configure
    return self.executable.Configure(*args)
  File "C:\ProgramData\EventGhost\plugins\PulseEight\__init__.py", line 452, in Configure
    device
  File "C:\ProgramData\EventGhost\plugins\PulseEight\controls.py", line 238, in update_devices
    adapter.lock()
[Edit]
One more idea: Which libcec version are you running?
I got this 4.0.2 mod here in the forums. Maybe something went wrong there
Something comes to my mind:
Win10 x64 Prof. / Eventghost latest / MCE Plugin / MCE RC6 Receiver / Logitech Harmony Hub / MediaPortal / kodi

User avatar
kgschlosser
Site Admin
Posts: 5017
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: libCEC plugin for Pulse Eight HDMI-CEC usb adapter

Post by kgschlosser » Sun Oct 08, 2017 2:52 pm

where is the rest of the 2nd error?


and did you delete your %appdata%/Eventghost folder before reinstalling EG?
If you like the work I have been doing then feel free to Image

User avatar
Luca Brasi
Experienced User
Posts: 262
Joined: Sat Oct 11, 2008 12:39 pm

Re: libCEC plugin for Pulse Eight HDMI-CEC usb adapter

Post by Luca Brasi » Wed Oct 11, 2017 4:23 am

Hey, sorry for not reporting back that long. Live's quiet busy right now...
where is the rest of the 2nd error?
I was lucky and could find the log on my laptop.
I can't find any rest to that error but you might.
and did you delete your %appdata%/Eventghost folder before reinstalling EG?
Yes I did. I think I got rid of any leftovers before reinstalling.
Attachments
Log.txt
(147.85 KiB) Downloaded 57 times
Win10 x64 Prof. / Eventghost latest / MCE Plugin / MCE RC6 Receiver / Logitech Harmony Hub / MediaPortal / kodi

User avatar
kgschlosser
Site Admin
Posts: 5017
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: libCEC plugin for Pulse Eight HDMI-CEC usb adapter

Post by kgschlosser » Sun Oct 15, 2017 2:17 am

I wanted to touch base with you on this. Have you tried running EventGhost as administrator. There are other issues at hand here besides the plugin. Because on your laptop if you uninstall the plugin you should still get those com errors
If you like the work I have been doing then feel free to Image

User avatar
topix
Experienced User
Posts: 441
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: libCEC plugin for Pulse Eight HDMI-CEC usb adapter

Post by topix » Sat Oct 21, 2017 12:17 pm

Luca Brasi wrote:
Wed Oct 11, 2017 4:23 am
where is the rest of the 2nd error?
I can't find any rest to that error but you might.
The rest of the error is probably:

Code: Select all

AttributeError: 'NoneType' object has no attribute 'lock'

Xepo
Posts: 3
Joined: Tue Sep 19, 2017 3:29 pm

Re: libCEC plugin for Pulse Eight HDMI-CEC usb adapter

Post by Xepo » Mon Oct 23, 2017 10:19 am

Hey, I'm running Windows 10 with Eventghost 0.4.1.r1722. The PulseEight adapter works fine with the included cec-tray.

However, when I try to load this plugin (latest posted), EventGhost just crashes. No error log, nothing. Anyone with similar experiences?

User avatar
kgschlosser
Site Admin
Posts: 5017
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: libCEC plugin for Pulse Eight HDMI-CEC usb adapter

Post by kgschlosser » Mon Oct 23, 2017 12:02 pm

upgrade to EG 0.5.

This is a pre release version of pulse eights libcec you will need to download it and install it
download/file.php?id=5835

you will need to delete the plugin for eventghost if you installed it.

then install this version of the plugin.
download/file.php?id=5999

also make sure you have the firmware updated on your device
If you like the work I have been doing then feel free to Image

User avatar
Luca Brasi
Experienced User
Posts: 262
Joined: Sat Oct 11, 2008 12:39 pm

Re: libCEC plugin for Pulse Eight HDMI-CEC usb adapter

Post by Luca Brasi » Tue Oct 24, 2017 5:32 am

kgschlosser wrote:
Sun Oct 15, 2017 2:17 am
I wanted to touch base with you on this. Have you tried running EventGhost as administrator. There are other issues at hand here besides the plugin. Because on your laptop if you uninstall the plugin you should still get those com errors
Hey,
sorry for not responding that long. Have been on vacation... No geeky stuff on Crete :-)
So I did a fresh install of libcec on my laptop and created a new config for eg. And you're right I get the com error even if the plugin is not installed.
If I run it in admin mode the error will be gone.
The plugin will work then with the hiccups I got before: Devices list will be empty first and then after saving the the actions config I will get the whole list after opening it again.
While testing this I had only a Chromecast connected to my laptop. So no "master" cec device was present at the time. I'll test again later with only the TV connected and see if the list will be created properly then.

[Edit:]
I checked with the TV connected. It's the same thing.
Attachments
cectest.egtree
(29.7 KiB) Downloaded 75 times
Log.txt
(6.18 KiB) Downloaded 62 times
Win10 x64 Prof. / Eventghost latest / MCE Plugin / MCE RC6 Receiver / Logitech Harmony Hub / MediaPortal / kodi

User avatar
kgschlosser
Site Admin
Posts: 5017
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: libCEC plugin for Pulse Eight HDMI-CEC usb adapter

Post by kgschlosser » Fri Oct 27, 2017 11:56 am

I am in the process of upgrading a section of my media room when the electronics are installed I will be able to test the CEC adapter again. You will have to give me about a week to be able to get to the point with the remodel where all the electronics are working again.
If you like the work I have been doing then feel free to Image

Post Reply