unfoldedcircle / feature-and-bug-tracker

Feature and bug tracker repository for Unfolded Circle products
24 stars 0 forks source link

Devices used in different activities need to remain on or off when switching #255

Open spamoni4 opened 9 months ago

spamoni4 commented 9 months ago

Is there an existing issue for this?

Description

Did not see anything listed.

I have 2 activities defined:

Activity 1 is used for watching FiOS. It turns on my soundbar, TV, and sets the Input so I can watch my TiVo. Works great.

Activity 2 is used for watching GoogleTV. This will turn on the TV and Soundbar. It also invokes the Home option to allow the main GoogleTV Screen.

What is needed, or I am not sure how to do it

I am watching Activity 1, I then go to the main Home Screen on the Remote and select GoogleTV, everything switched, but the FiOS Activity still shows on. What I would like is a conditional statement: If On, leave on, but allow me to turn the previous activity off.

what I am experiencing is the On Process is not run as the Activity still shows on and therefore, the port does not change.

Am I missing something?

Additional context

No response

zehnm commented 9 months ago

By default an activity is an independent container for multiple entities. To enable device state handling between multiple activities, they can be grouped in an activity group. This guide contains more information about activity groups: https://support.unfoldedcircle.com/support/solutions/articles/101000508015-activity-groups

spamoni4 commented 9 months ago

Thanks for the information, will definitely try it. However, it appears that the activity will remain running until you turn it off. So based on the example in the document, when you start with Watch TV I set my input port to HDMI 4, then when I switch to Watch movies I set it to HOME (GoogleTV), but when I go back to watch TV it will not run the on sequence again as it is already on. I need it to switch the port to HDMI 4 every time I switch to it. Likewise I need the HOME command run every time I switch to the Watch movie activities.

Other than turning off the activity when I switch from one to the other, how do I make this happen?

On Fri, Dec 29, 2023 at 3:34 AM Markus Zehnder @.***> wrote:

By default an activity is an independent container for multiple entities. To enable device state handling between multiple activities, they can be grouped in an activity group. This guide contains more information about activity groups: https://support.unfoldedcircle.com/support/solutions/articles/101000508015-activity-groups

— Reply to this email directly, view it on GitHub https://github.com/unfoldedcircle/feature-and-bug-tracker/issues/255#issuecomment-1871839497, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATOR3DZSGY4YICAKNIW6FIDYLZ6AVAVCNFSM6AAAAABBGC4CMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZRHAZTSNBZG4 . You are receiving this because you authored the thread.Message ID: @.***>

kennymc-c commented 9 months ago

Have you tried to restart the remote (hold down the power button for a few seconds)? I also had some issue afters creating an activity group wich were solved after a restart. Input switching should work with activity groups. If the groups works correctly there should be just one activity in each group that can be turned on.

spamoni4 commented 9 months ago

Have you tried to restart the remote (hold down the power button for a few seconds)? I also had some issue afters creating an activity group wich were solved after a restart. Input switching should work with activity groups. If the groups works correctly there should be just one activity in each group that can be turned on.

Thanks for the response @kennymc-c

It does seem like the devices I need on do stay on in the Activity Group, however, When I switch between activities the On Sequence does not fire as they are on already. So how would I trigger the TV Input Switch to HDMI 4 and when I watch Google Trigger the HOME Call. I will do the restart and see if that helps..

For Reference, here is my On Sequence for TV and for GoogleTV. you will see the work around I found, but think there is a better way.

ON SEQUENCE FOR TV

image

ON SEQUENCE FOR GOOGLE TV

image
kennymc-c commented 9 months ago

All IR power commands have to be exactly named POWER_ON and POWER_OFF (in capitals and with an underscores). Otherwise the power logic will not work. Just make sure that none of your activities are turned before you start any activity.

spamoni4 commented 9 months ago

All IR power commands have to be exactly named POWER_ON and POWER_OFF (in capitals and with an underscores). Otherwise the power logic will not work. Just make sure that none of your activities are turned before you start any activity.

@kennymc-c , really appreciate your support on this.

Ok, here was my test activities after working on Activity groups. You will see I am not using the Power only. I am using Power_ON for all entries. The only difference is the Input HDMI 4 vs HOME. TiVo does not have a power button so it basically stays on.

What I wanted to happen is when I tap on watch FiOS the Input would switch for the TV to HDMI 4 and when I tap in Google TV, the Input would switch to HOME (Home is called). But that does not seem to happen. When I first start and tap on FiOS the TV comes on input is set and all is good. Then I Tap on GoogleTV and it switches, again, all is good. But if I go back to FiOS the Input does not change. Is the command Power_On case sensitive? Do I need to Uppercase it all?

FiOS TV

image

GoogleTV

image
spamoni4 commented 9 months ago

@kennymc-c

Just tested and it worked after a reboot. You are amazing. Really appreciate the support on this.