yes, that’s what i said above. actions are activities. it’s working. so press one button like watch tv and all “gizmos” will turn on
-
New Plugin for Logitech Harmony Hub
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
Ah okay thx, sometimes im a littlebit slow …a last question …will alexa find the buttons with the alexa plugin? (I already can use wakeonlan and homeduino without problems…and both are not offical Supported by the Plugin)
-
the problem with the alexa plugin is that it can only use the first button of each device array.
so if you have a on / off device you may switch on but not off … this is already on the todo list of the echo plugin.
haven’t searched for, but isn’t there already a native alexa skill for the hub ?pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
The Activitys should be work or not? There are just 1 / 0 swichtes or are there also buttondevices?
That the wakeOnlan Plugin is now working with alexa is so nice “alexa Computer on”
-
how to activate autodiscovery - installed the plugin, created a new HarmonyHubActivitiesButtonsDevice - but didn’t find the id’s. I enable debug mode - but couldn’t find somethin in the log.
-
@vivathan said in New Plugin for Logitech Harmony Hub:
how to activate autodiscovery
check here
https://forum.pimatic.org/topic/1919/v0-9-autodiscovery-of-devicespimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
Thx! I missed this
-
@thex: Thx for this great plugin. Using it since yesterday.
Is it right that it*s currently not possible to make a long press like:
if... then press aButton for 3 seconds
Some devices can be controled via only one power button. Depending from the time the button is pressed it will be powered on or off.
Could this be it will be powered on or off implemented? -
I don’t know if the button device in general has the option to do this… as far as I remember it does only have one pressed action, there is no event for the release.
Technically it should be possible however I’m afraid I won’t find time for it anytime soon.
-
hi there!
yesterday i installed this plugin. as it is now possible again to enable xmpp on the hub it works really nice. but what i would like to know: what happened to the follwing? is there any kind of event triggered by this plugin?@partovic said in New Plugin for Logitech Harmony Hub:
Would be cool to have a CurrentActivity Variable to access in rules. Something like
when Activity of HarmonyBridge changes to "FireTV+Beamer" then lower Leinwand
.This should be realizeable doesn’t it?
Edit: At least, according to this https://github.com/maddox/harmony-api
@thex said in New Plugin for Logitech Harmony Hub:
Should be possible but I think I need to pull this as the client doesn’t get notified on changes. So there would be a delay as you should not pull this every second or so.
-
Not implemented yet and currently not planned to as I’m triggering all actions from pimatic and don’t even use a physical harmony remote or the harmony scenes.
-
not good to read this (for me) but thanks for the feedback. so if you don’t use a remote i think there is in general no possibility (with this plugin) to react on any kind of key press and i have to switch to lirc?
-
Yes, I guess lirc or similar is the easiest, just set it to a device you don’t have and interpret the IR commands.
As far as I know harmony also supports hue so maybe you can also achieve something with a fake hue bridge where the fake bulbs are present in Harmony as well as Pimatic.
The only way currently would be to pull the changes, if you can/want to implement that I’m happy to integrate the pull-request.
-
Maybe a little off-topic: Logitech disabled local access via XMPP in late 2018 to fix security vulnerabilities as they stated in the release. As the user
community screamed, Logitech decided to re-enable the feature and announced another firmware which has been released
in early 2019. It should be noted however, the newer firmware release have XMPP support disabled by default and can be enabled with Harmony App.
@thex I think it would be I good idea to add a short note to the README about how to enable XMPP support on the hub.https://github.com/thexperiments/pimatic-harmonyhub/issues/5
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
good Idea, will do
-
@thex said in New Plugin for Logitech Harmony Hub:
if you can/want to implement that
i’m completely new to coffee script. i can develop in c, c++ an c#…
am i right, that in the constructor of the device i have have to do something like
on(event...
class HarmonyHubPowerSwitch extends env.devices.PowerSwitch # constructor: (@config, @plugin, lastState) -> @name = @config.name @id = @config.id @hubIP = @config.hubIP @commandType = @config.commandType @onCommand = @config.onCommand @offCommand = @config.offCommand @deviceId = @config.deviceId #new code HarmonyHubClient.on('stateDigest', ...) super()
at least according to line 59 on https://github.com/swissmanu/harmonyhubjs-client/blob/develop/lib/harmonyclient.js
could this be right somehow?
-
@quotschmacher Yes, that’s a good starting point. Make sure indentations are two spaces, e.g. a block is indented by two spaces.
class HarmonyHub extends env.plugins.Plugin ... registerStateDigestHandler: (hubIP, handler) => @getHubInstance(@hubIP).then () => @hubInstance.on 'stateDigest', handler env.logger.debug 'received state digest', JSON.stringify(stateDigest) ... class HarmonyHubPowerSwitch extends env.devices.PowerSwitch # constructor: (@config, @plugin, lastState) -> @name = @config.name @id = @config.id @hubIP = @config.hubIP @commandType = @config.commandType @onCommand = @config.onCommand @offCommand = @config.offCommand @deviceId = @config.deviceId #new code @plugin.registerStateDigestHandler('stateDigest', (stateDigest) => env.logger.debug 'received state digest', JSON.stringify(stateDigest) # just an example (i am not sure about the exact structure of the stateDigest object) # the corresponding stanza is documented here: # https://github.com/swissmanu/harmonyhubjs-client/blob/develop/docs/protocol/stateDigest.md if stateDigest.data.activityStatus is 0 @_setState false else @_setState true ) super()
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
ok. thanks. i will give it a try, when i find some spare time…
-
@quotschmacher No worries. Please also note my edit to the code snippet above. I revisited the code and noticed that you’ll need to register the handler with a hub instance instead of the HarmonyHubClient object type. As instance handling is implemented as part of the plugin class which provides methods for devices to perform activities and such, my suggestion is to add another method to the plugin class which I called
registerStateDigestHandler
. This method then can be used as part of the power switch device code to register a handler in the context of the device instance."It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law