Page 2 of 2
Re: [689] Hyperion integration
Posted: Monday 07 August 2017 7:18
by elgringo
deennoo wrote:will test it this night ! thx !
Some question about it : did you parse effect from hyperion or did your already write on plugin usual effect ?
how to install it ? just paste the plugin.py file ?
Effects are retrieved from Hyperion, only the UDP / shutdown are filtered out. Install is as a normal python plugin (
https://www.domoticz.com/wiki/Using_Python_plugins ). In short, just copy the whole hyperion dir (with the zip (for the icons) and the plugin.py) to /domoticz/plugins/hyperion/. It requires the beta domoticz version.
Re: [689] Hyperion integration
Posted: Monday 07 August 2017 7:47
by deennoo
Ok, i test it :
I have to install by my own your icon, if they are not present color slider are not created.
No selector for the effect
No communication with my hyperion
Will continu on your git
Re: [689] Hyperion integration
Posted: Monday 07 August 2017 8:35
by elgringo
deennoo wrote:Ok, i test it :
I have to install by my own your icon, if they are not present color slider are not created.
No selector for the effect
No communication with my hyperion
Will continu on your git
Have you copied the zips files as well?
Whats in the logging?
Selector is created after a connection with Hyperion, the plugin framework does not allow to updated the selector switch, to make this work it has to be deleted and then re created. So I create it when the effects are know (when connected)
Re: [689] Hyperion integration
Posted: Monday 07 August 2017 8:41
by deennoo
I copy the by my own yes
Using domoticz : 3.8235
I set log to 10 :
Just show the plugin started nothing more
No debug line on the log
And after a while
2017-08-07 08:47:00.471 Error: Hyperion hardware (54) thread seems to have ended unexpectedly
Just a question which priority have you done to hyperion cmd ?
Is there some python module i have to install ?
Re: [689] Hyperion integration
Posted: Monday 07 August 2017 8:50
by elgringo
The 2017-08-07 08:47:00.471 Error: Hyperion hardware (54) thread seems to have ended unexpectedly is caused by a problem earlier. Proberbly some python/plugin errors after you start Domoticz. This error will proberbly tell you wat is going on.
Priority is currently fixed on 1, but this is only used when sending commands.
Re: [689] Hyperion integration
Posted: Tuesday 08 August 2017 11:58
by deennoo
Ok i have already 3 python plugin running, will check which One have a à probleme
Re: [689] Hyperion integration
Posted: Wednesday 09 August 2017 19:37
by deennoo
elgringo wrote:The 2017-08-07 08:47:00.471 Error: Hyperion hardware (54) thread seems to have ended unexpectedly is caused by a problem earlier. Proberbly some python/plugin errors after you start Domoticz. This error will proberbly tell you wat is going on.
Priority is currently fixed on 1, but this is only used when sending commands.
Ok plugin run since yesterday without any problème, all looks good for me dable !
I'll now test it instead of thé scripts i use for now
Re: [689] Hyperion integration
Posted: Thursday 10 August 2017 7:18
by elgringo
What was the problem?
I put a version on Github which allows you to update the priority channel used.
Re: [689] Hyperion integration
Posted: Thursday 10 August 2017 7:53
by deennoo
elgringo wrote:What was the problem?
I put a version on Github which allows you to update the priority channel used.
I don't know i have to activate python plugin 1 by 1 the first Time.
Broadlink one is still à old one version on m'y side.
Priority was just à question, as I have to set it for the lua script.
Thx for your job, now waiting for a full colorpicker from Gizmocuz
Re: [689] Hyperion integration
Posted: Thursday 10 August 2017 10:49
by blauwebuis
It might be nice to create a wiki page?
Re: [689] Hyperion integration
Posted: Thursday 10 August 2017 11:22
by elgringo
Well it is not an official plugin so It might not be the best place to store it.
However I can update the readme on the github if needed. I thought is was rather self explanatory; but I guess it is not. What information would you like to have?
Re: [689] Hyperion integration
Posted: Wednesday 17 January 2018 18:00
by Hypermobile
I run into a problem with this.
Running Synology Domoticz and a Seperate PI for Hyperion.
Did everything posted on this topic.
1) Made a Lua Device script.
2) Added a Slider to trigger the script.
3) Bootstrapped The Synology so it has IPKG and NC
4) tested everything i could think of to get it to work.
Code: Select all
runcommand = "echo '{ \"command\": \"color\", \"color\": [" .. DomR .. "," .. DomG .. "," .. DomB .. "], \"priority\": 100 }' | nc " .. (IP) .. " " .. (Port) .. " ";
puts this in the log:
2018-01-17 17:49:05.049 LUA: echo '{ "command": "color", "color": [280,34,0], "priority": 100 }' | nc 192.168.0.25 19444
if i Start Putty on the Synology.
and type :
$ echo '{ "command": "color", "color": [280,34,0], "priority": 100 }' | nc 192.168.0.25 19444
Hyperion Reacts as should.
when the Lua Scripts does:
it doesn't work
also tried a Script test.sh in lua
Code: Select all
os.execute('sh /volume1/@appstore/domoticzscripts/test.sh');
it doesn't work
in putty:
Code: Select all
sh /volume1/@appstore/domoticzscripts/test.sh'
that does work.
Tried to log in as Admin in Putty and also same user as Domoticz was installed.
that doesn't change a thing.
anyone who can help me make this work?!
Re: [689] Hyperion integration
Posted: Wednesday 17 January 2018 22:35
by markcame
for example i use a lua script with success issuing this command where IP and Port are defined
Code: Select all
runcommand = "echo '{ \"command\": \"transform\", \"transform\": {\"luminanceMinimum\":0.00 }}' | nc " .. (IP) .. " " .. (Port) .. " ";
os.execute(runcommand);
Re: [689] Hyperion integration
Posted: Friday 19 January 2018 19:03
by Hypermobile
i got the Python Plugin Kinda working.
Got this error after changing one of the 3 sliders. Ambilight - Red / Blue / Green
Code: Select all
Error: (Ambilight) 'onMessage' failed 'TypeError':'onMessage() takes 2 positional arguments but 4 were given'.
AMbilight reacts on all slider! which is great.
2nd;
I cannot find the "Ambilight - Mode" For now i Cannot "Clear" the Color effect.
Also cannot select a Ambilight Effect; Lets say 'Snake'
can some describe how to add those buttons
and how to fix the Error Messages?
Re: [689] Hyperion integration
Posted: Friday 19 January 2018 19:17
by Hypermobile
Update on the Netcat Method:
Found a log in DSM->Domoticz-> Log
It Says
so with Putty same login as Domoticz NC is available & Working.
But within Domoticz is ain't
i got no clue to fix that
Re: [689] Hyperion integration
Posted: Friday 16 February 2018 16:04
by rhandels
I am trying to do the same thing as you but with a Yeelight.
I've installed ipkg on the Syno, installed the netcat service and receive the exact same message
sh: nc: command not found
echo: write error: Broken pipe
It seems as if apps installed on the synology cannot access these applications.
If you have found a solution, please let me know. Would love to hear that.
Never mind. I found out why it does not work. Apperently the NC is installed within a directory that is not added to the path. In my case the folder was /volume1/@optware/bin/nc so if you start the script with the nc command make sure to add the location of the file.....
Re: [689] Hyperion integration
Posted: Sunday 18 February 2018 17:48
by Hypermobile
rhandels wrote: ↑Friday 16 February 2018 16:04
I am trying to do the same thing as you but with a Yeelight.
I've installed ipkg on the Syno, installed the netcat service and receive the exact same message
sh: nc: command not found
echo: write error: Broken pipe
It seems as if apps installed on the synology cannot access these applications.
If you have found a solution, please let me know. Would love to hear that.
Never mind. I found out why it does not work. Apperently the NC is installed within a directory that is not added to the path. In my case the folder was /volume1/@optware/bin/nc so if you start the script with the nc command make sure to add the location of the file.....
You're my Hero
Change like said!
and it works
Code: Select all
runcommand = "echo '{ \"command\": \"color\", \"color\": [" .. DomR .. "," .. DomG .. "," .. DomB .. "], \"priority\": 100 }' | volume1/@optware/bin/nc " .. (IP) .. " " .. (Port) .. " ";
Re: [689] Hyperion integration
Posted: Friday 08 January 2021 9:39
by karlzre
Hi,
Thank you foir this plugin.
I have 2 instances in my hyperion .
Any idea if the plugin can manage multiple instances ?