-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Harmony Hub: Logging starting of activity #1390
Comments
Im looking for a solution to the exact same issue: Harmony bindings "current activity" Channel is updated AFTER the harmony remote has finished changing the activity. Turn on Activity "Fernsehen" (on Harmony Remote) -> Switch powersocket on to get power on tv and AV-Receiver (with openHAB) -> Harmony Hub Switches TV and AVR in and in right Channel. Has anyone an idea for getting along with this issue? Thanks very much! |
Hi, |
Not sure if the whistlingfish library is still alive. I thought I could try to add this feature, but I just can't get to run a clean harmonyhub binding under IDE. I am getting exception from xmpp library about unresolvable class com.google.common.io.BaseEncoding. All the committed libs are on the classpath, guava shows in plug-in dependencies and com.google.common.io is on imported packages. Any ideas how to get over that?
|
@prawnde @derFrink I finally added support for state digest into whistlingfish library. In the meantime until this gets merged, could you please advise how you would like to have this exposed into openHAB? Which channels do you envision and with what information? Thanks |
hi @ppieczul thanks for adding the additional state functionality !
One thought I have is to have a trigger channel for each state that would send the name of the activity. Triggers are nice for changes which are intended to trigger rules, but do not really update the state of an item (and they are not tied to items). So for example, a rule would look like: rule "TV Starting"
when
Channel "harmonyhub:hub:GreatRoom:activityStarting" triggered "Watch TV"
then
logInfo("TEST","TV activity is starting!");
end Thoughts? |
Indeed, I forgot about the trigger channels and it looks they are really well suited for that purpose. The activity starting sequence looks like that (and I suppose this is what we expected):
The question is what do we do with power off sequence, which looks like that:
I think it is equally useful to know when hub is going off, but for some unknown reasons there are different status values for that. My proposal would be to do the same as above - make HUB_IS_TURNING_OFF trigger activityStarting but replace activity name with PowerOff (take name from id=-1) and HUB_IS_OFF trigger activityStarted. Users will figure out that it is going down by the name of the activity. |
Thank you for working on that. I thing the way you want to solve it is
the perfect way.
I think not many people need the HUB_IS_TURNING_OFF activity but its
better to have then to need it.
Am 05.09.2017 um 23:35 schrieb Pawel Pieczul:
…
Indeed, I forgot about the trigger channels and it looks they are
really well suited for that purpose.
The activity starting sequence looks like that (and I suppose this is
what we expected):
* NEW STATUS: Watch TV, ACTIVITY_IS_STARTING --> trigger
activityStarting
* NEW STATUS: Watch TV, ACTIVITY_IS_STARTED --> trigger activityStarted
* NEW ACTIVITY: Watch TV --> current activity channel value changed
The question is what do we do with power off sequence, which looks
like that:
* NEW STATUS: Watch TV, HUB_IS_TURNING_OFF
* NEW STATUS: PowerOff, HUB_IS_OFF
* NEW ACTIVITY: PowerOff, HUB_IS_OFF --> current activity channel
value changed
I think it is equally useful to know when hub is going off, but for
some unknown reasons there are different status values for that.
My proposal would be to do the same as above - make HUB_IS_TURNING_OFF
trigger activityStarting and HUB_IS_OFF trigger activityStarted. Users
will figure out that it is going down by the name of the activity.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/openhab/openhab2-addons/issues/1390#issuecomment-327310494>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKsdsRdpLfksehoHxXcxwz-j5goUtUPbks5sfb60gaJpZM4Kp_vD>.
|
…b#1390 and openhab#2497. Added trigger channels for activity starting and activity started events from the hub (state digest). Additionally fixed whatever static code analyzer complained about. Signed-off-by: Pawel Pieczul <pieczul@gmail.com> (github: ppieczul)
…b#1390 and openhab#2497. (openhab#2678) Added trigger channels for activity starting and activity started events from the hub (state digest). Additionally fixed whatever static code analyzer complained about. Signed-off-by: Pawel Pieczul <pieczul@gmail.com> (github: ppieczul)
…b#1390 and openhab#2497. (openhab#2678) Added trigger channels for activity starting and activity started events from the hub (state digest). Additionally fixed whatever static code analyzer complained about. Signed-off-by: Pawel Pieczul <pieczul@gmail.com> (github: ppieczul)
…b#1390 and openhab#2497. (openhab#2678) Added trigger channels for activity starting and activity started events from the hub (state digest). Additionally fixed whatever static code analyzer complained about. Signed-off-by: Pawel Pieczul <pieczul@gmail.com> (github: ppieczul)
For ESH it made sense to use this but nowadays these UIs are no longer part of openhab-core and the demo app used for development is in openhab-distro. Furthermore it provides links to UIs that are no longer part of OH3, uses ESH logos and the new Default UI is also using / so it throws exceptions. See: openhab/openhab-distro#1084 (comment) Signed-off-by: Wouter Born <github@maindrain.net>
The Actual Binding (binding-harmonyhub - 2.0.0.SNAPSHOT) creates only one Channel for the Harmony Hub (Current Activity). It changes the State from "PowerOff" to "WatchTV" after the hub finished all operations (same if i use the channel "activity".
I moved over from FHEM and there the Channel "current Activity" also showed if a Action is starting..
for example you can see it in this logfile: http://www.meintechblog.de/wordpress/wp-content/uploads/2015/08/FHEM-Eventmonitor-starting.jpg
i realy need the information when a activity is starting, because i´m switching my socket to on with this information.
The text was updated successfully, but these errors were encountered: