I have 2 activities: Watch TV and Watch Roku. Both are in an activity group. They have an on sequence and an off sequence. Currently these sequences only turn the relevant devices either on or off.
I have placed the two activities on a page so that I can switch between them. However, here's the scenario as it plays out at present: -
Press Watch TV - TV turns on and DVR turns on
Press Watch Roku - TV stays on, DVR turns off, Roku is on
Press Watch TV - TV turns off, DVR turns on (not sure what happens to the Roku, it's on all the time anyway)
Is there an existing issue for this?
Description
I have 2 activities:
Watch TV
andWatch Roku
. Both are in an activity group. They have an on sequence and an off sequence. Currently these sequences only turn the relevant devices either on or off. I have placed the two activities on a page so that I can switch between them. However, here's the scenario as it plays out at present: -Activity group details
```json { "group_id": "e82c77e3-8027-4a60-a203-a5003c3c14ea", "name": { "en": "Lounge" }, "description": {}, "options": { "remove_turn_on_delays": "previous_cmd_skipped", "turn_off_unused_entities": "always" }, "activities": [ { "entity_id": "uc.main.2b73e863-4542-4572-81df-2ab18b073ece", "name": { "en": "Watch TV" }, "icon": "uc:tv", "state": "ON" }, { "entity_id": "uc.main.042a222c-e6d6-40b5-9e79-a59f3a381586", "name": { "en": "Watch Roku" }, "icon": "custom:roku.png", "state": "OFF" } ], "state": "ACTIVE" } ```Activity Definition (from REST API)
```json { "entity_id": "uc.main.2b73e863-4542-4572-81df-2ab18b073ece", "entity_type": "activity", "integration_id": "uc.main", "name": { "en": "Watch TV" }, "icon": "uc:tv", "features": [ "start" ], "description": { "en": "Activity for watching TV using the TiVo" }, "options": { "activity_group": { "group_id": "e82c77e3-8027-4a60-a203-a5003c3c14ea", "name": { "en": "Lounge" } }, "button_mapping": [ { "button": "BACK" }, { "button": "HOME" }, { "button": "VOICE" }, { "button": "VOLUME_UP", "short_press": { "cmd_id": "media_player.volume_up", "entity_id": "uc_androidtv_driver.main.FC017C39709A", "params": {} } }, { "button": "VOLUME_DOWN", "short_press": { "cmd_id": "media_player.volume_down", "entity_id": "uc_androidtv_driver.main.FC017C39709A", "params": {} } }, { "button": "GREEN", "short_press": { "cmd_id": "media_player.function_green", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "params": {} } }, { "button": "DPAD_UP", "short_press": { "cmd_id": "media_player.cursor_up", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "params": {} } }, { "button": "YELLOW", "short_press": { "cmd_id": "media_player.function_yellow", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "params": {} } }, { "button": "DPAD_LEFT", "short_press": { "cmd_id": "media_player.cursor_left", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "params": {} } }, { "button": "DPAD_MIDDLE", "short_press": { "cmd_id": "media_player.cursor_enter", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "params": {} } }, { "button": "DPAD_RIGHT", "short_press": { "cmd_id": "media_player.cursor_right", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "params": {} } }, { "button": "RED", "short_press": { "cmd_id": "media_player.function_red", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "params": {} } }, { "button": "DPAD_DOWN", "short_press": { "cmd_id": "media_player.cursor_down", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "params": {} } }, { "button": "BLUE", "short_press": { "cmd_id": "media_player.function_blue", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "params": {} } }, { "button": "CHANNEL_UP", "short_press": { "cmd_id": "media_player.channel_up", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "params": {} } }, { "button": "CHANNEL_DOWN", "short_press": { "cmd_id": "media_player.channel_down", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "params": {} } }, { "button": "MUTE", "short_press": { "cmd_id": "media_player.mute_toggle", "entity_id": "uc_androidtv_driver.main.FC017C39709A", "params": {} } }, { "button": "PREV", "short_press": { "cmd_id": "media_player.rewind", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "params": {} } }, { "button": "PLAY", "short_press": { "cmd_id": "media_player.play_pause", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "params": {} } }, { "button": "NEXT", "short_press": { "cmd_id": "media_player.fast_forward", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "params": {} } }, { "button": "POWER" } ], "included_entities": [ { "entity_commands": [ "media_player.on", "media_player.off", "media_player.volume", "media_player.volume_up", "media_player.volume_down", "media_player.mute_toggle", "media_player.play_pause", "media_player.next", "media_player.previous", "media_player.home", "media_player.back", "media_player.channel_up", "media_player.channel_down", "media_player.cursor_up", "media_player.cursor_down", "media_player.cursor_left", "media_player.cursor_right", "media_player.cursor_enter", "media_player.select_source" ], "entity_id": "uc_androidtv_driver.main.FC017C39709A", "entity_type": "media_player", "integration": { "icon": "uc:integration", "name": { "en": "Android TV" } }, "name": { "en": "KD-65XF9005" } }, { "entity_commands": [ "media_player.channel_up", "media_player.channel_down", "media_player.function_red", "media_player.function_green", "media_player.function_yellow", "media_player.function_blue", "media_player.cursor_up", "media_player.cursor_down", "media_player.cursor_left", "media_player.cursor_right", "media_player.cursor_enter", "media_player.fast_forward", "media_player.home", "media_player.back", "media_player.menu", "media_player.on", "media_player.off", "media_player.play_pause", "media_player.previous", "media_player.rewind", "media_player.stop" ], "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "entity_type": "media_player", "integration": { "icon": "uc:integration", "name": { "en": "Virgin Media TiVo (NEW DEV)" } }, "name": { "en": "Lounge TiVo" } }, { "entity_commands": [ "button.push" ], "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_guide", "entity_type": "button", "integration": { "icon": "uc:integration", "name": { "en": "Virgin Media TiVo (NEW DEV)" } }, "name": { "en": "Lounge TiVo: Guide" } }, { "entity_commands": [ "button.push" ], "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_info", "entity_type": "button", "integration": { "icon": "uc:integration", "name": { "en": "Virgin Media TiVo (NEW DEV)" } }, "name": { "en": "Lounge TiVo: Info" } }, { "entity_commands": [ "button.push" ], "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_num0", "entity_type": "button", "integration": { "icon": "uc:integration", "name": { "en": "Virgin Media TiVo (NEW DEV)" } }, "name": { "en": "Lounge TiVo: 0" } }, { "entity_commands": [ "button.push" ], "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_num1", "entity_type": "button", "integration": { "icon": "uc:integration", "name": { "en": "Virgin Media TiVo (NEW DEV)" } }, "name": { "en": "Lounge TiVo: 1" } }, { "entity_commands": [ "button.push" ], "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_num2", "entity_type": "button", "integration": { "icon": "uc:integration", "name": { "en": "Virgin Media TiVo (NEW DEV)" } }, "name": { "en": "Lounge TiVo: 2" } }, { "entity_commands": [ "button.push" ], "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_num3", "entity_type": "button", "integration": { "icon": "uc:integration", "name": { "en": "Virgin Media TiVo (NEW DEV)" } }, "name": { "en": "Lounge TiVo: 3" } }, { "entity_commands": [ "button.push" ], "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_num4", "entity_type": "button", "integration": { "icon": "uc:integration", "name": { "en": "Virgin Media TiVo (NEW DEV)" } }, "name": { "en": "Lounge TiVo: 4" } }, { "entity_commands": [ "button.push" ], "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_num5", "entity_type": "button", "integration": { "icon": "uc:integration", "name": { "en": "Virgin Media TiVo (NEW DEV)" } }, "name": { "en": "Lounge TiVo: 5" } }, { "entity_commands": [ "button.push" ], "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_num6", "entity_type": "button", "integration": { "icon": "uc:integration", "name": { "en": "Virgin Media TiVo (NEW DEV)" } }, "name": { "en": "Lounge TiVo: 6" } }, { "entity_commands": [ "button.push" ], "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_num7", "entity_type": "button", "integration": { "icon": "uc:integration", "name": { "en": "Virgin Media TiVo (NEW DEV)" } }, "name": { "en": "Lounge TiVo: 7" } }, { "entity_commands": [ "button.push" ], "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_num8", "entity_type": "button", "integration": { "icon": "uc:integration", "name": { "en": "Virgin Media TiVo (NEW DEV)" } }, "name": { "en": "Lounge TiVo: 8" } }, { "entity_commands": [ "button.push" ], "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_num9", "entity_type": "button", "integration": { "icon": "uc:integration", "name": { "en": "Virgin Media TiVo (NEW DEV)" } }, "name": { "en": "Lounge TiVo: 9" } }, { "entity_commands": [ "button.push" ], "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_record", "entity_type": "button", "integration": { "icon": "uc:integration", "name": { "en": "Virgin Media TiVo (NEW DEV)" } }, "name": { "en": "Lounge TiVo: Record" } }, { "entity_commands": [ "button.push" ], "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_thumbsdown", "entity_type": "button", "integration": { "icon": "uc:integration", "name": { "en": "Virgin Media TiVo (NEW DEV)" } }, "name": { "en": "Lounge TiVo: Thumbs Down" } }, { "entity_commands": [ "button.push" ], "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_thumbsup", "entity_type": "button", "integration": { "icon": "uc:integration", "name": { "en": "Virgin Media TiVo (NEW DEV)" } }, "name": { "en": "Lounge TiVo: Thumbs Up" } } ], "prevent_sleep": false, "sequences": { "off": [ { "command": { "cmd_id": "media_player.off", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "params": {} }, "type": "command" }, { "command": { "cmd_id": "media_player.off", "entity_id": "uc_androidtv_driver.main.FC017C39709A", "params": {} }, "type": "command" } ], "on": [ { "command": { "cmd_id": "media_player.on", "entity_id": "uc_androidtv_driver.main.FC017C39709A", "params": {} }, "type": "command" }, { "command": { "cmd_id": "media_player.on", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "params": {} }, "type": "command" } ] }, "user_interface": { "pages": [ { "grid": { "height": 5, "width": 3 }, "items": [ { "command": { "cmd_id": "button.push", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_guide", "params": {} }, "icon": "custom:television-guide-custom__1_.png", "location": { "x": 2, "y": 4 }, "size": { "height": 1, "width": 1 }, "type": "icon" }, { "command": { "cmd_id": "button.push", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_info", "params": {} }, "icon": "custom:information-variant-custom__1_.png", "location": { "x": 2, "y": 3 }, "size": { "height": 1, "width": 1 }, "type": "icon" }, { "command": { "cmd_id": "media_player.previous", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "params": {} }, "icon": "custom:swap-horizontal-bold-custom__1_.png", "location": { "x": 0, "y": 4 }, "size": { "height": 1, "width": 1 }, "type": "icon" }, { "command": { "cmd_id": "button.push", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_record", "params": {} }, "icon": "custom:record-rec-custom.png", "location": { "x": 0, "y": 3 }, "size": { "height": 1, "width": 1 }, "type": "icon" }, { "command": { "cmd_id": "media_player.menu", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "params": {} }, "icon": "custom:menu-custom.png", "location": { "x": 1, "y": 4 }, "size": { "height": 1, "width": 1 }, "type": "icon" }, { "command": { "cmd_id": "button.push", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_num0", "params": {} }, "icon": "custom:numeric-0-custom.png", "location": { "x": 1, "y": 3 }, "size": { "height": 1, "width": 1 }, "type": "icon" }, { "command": { "cmd_id": "button.push", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_num7", "params": {} }, "icon": "custom:numeric-7-custom.png", "location": { "x": 0, "y": 2 }, "size": { "height": 1, "width": 1 }, "type": "icon" }, { "command": { "cmd_id": "button.push", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_num8", "params": {} }, "icon": "custom:numeric-8-custom.png", "location": { "x": 1, "y": 2 }, "size": { "height": 1, "width": 1 }, "type": "icon" }, { "command": { "cmd_id": "button.push", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_num9", "params": {} }, "icon": "custom:numeric-9-custom.png", "location": { "x": 2, "y": 2 }, "size": { "height": 1, "width": 1 }, "type": "icon" }, { "command": { "cmd_id": "button.push", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_num6", "params": {} }, "icon": "custom:numeric-6-custom.png", "location": { "x": 2, "y": 1 }, "size": { "height": 1, "width": 1 }, "type": "icon" }, { "command": { "cmd_id": "button.push", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_num5", "params": {} }, "icon": "custom:numeric-5-custom.png", "location": { "x": 1, "y": 1 }, "size": { "height": 1, "width": 1 }, "type": "icon" }, { "command": { "cmd_id": "button.push", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_num4", "params": {} }, "icon": "custom:numeric-4-custom.png", "location": { "x": 0, "y": 1 }, "size": { "height": 1, "width": 1 }, "type": "icon" }, { "command": { "cmd_id": "button.push", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_num3", "params": {} }, "icon": "custom:numeric-3-custom.png", "location": { "x": 2, "y": 0 }, "size": { "height": 1, "width": 1 }, "type": "icon" }, { "command": { "cmd_id": "button.push", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_num2", "params": {} }, "icon": "custom:numeric-2-custom.png", "location": { "x": 1, "y": 0 }, "size": { "height": 1, "width": 1 }, "type": "icon" }, { "command": { "cmd_id": "button.push", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec_num1", "params": {} }, "icon": "custom:numeric-1-custom.png", "location": { "x": 0, "y": 0 }, "size": { "height": 1, "width": 1 }, "type": "icon" } ], "name": "New page", "page_id": "main" }, { "grid": { "height": 4, "width": 4 }, "items": [ { "command": { "cmd_id": "media_player.on", "entity_id": "uc_androidtv_driver.main.FC017C39709A", "params": {} }, "location": { "x": 0, "y": 3 }, "size": { "height": 1, "width": 2 }, "text": "TV Power", "type": "text" }, { "command": { "cmd_id": "media_player.on", "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "params": {} }, "location": { "x": 0, "y": 0 }, "size": { "height": 1, "width": 2 }, "text": "TiVo Power", "type": "text" } ], "name": "Misc", "page_id": "67ff90d1-3b1e-4ed3-b133-415b2cc35935" } ] } }, "attributes": { "state": "ON" }, "enabled": true } ```Device details when Watch TV is first pressed (from REST API)
DVR: - ```json { "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "device_class": "set_top_box", "entity_type": "media_player", "integration_id": "uvjim_virginmediatv_dev_driver.main", "name": { "en": "Lounge TiVo" }, "features": [ "channel_switcher", "color_buttons", "dpad", "fast_forward", "home", "menu", "on_off", "play_pause", "previous", "rewind", "stop" ], "description": {}, "options": null, "attributes": { "state": "ON" }, "enabled": true } ``` TV: - ```json { "entity_id": "uc_androidtv_driver.main.FC017C39709A", "device_class": "tv", "entity_type": "media_player", "integration_id": "uc_androidtv_driver.main", "name": { "en": "KD-65XF9005" }, "features": [ "on_off", "volume", "volume_up_down", "mute_toggle", "play_pause", "next", "previous", "home", "channel_switcher", "dpad", "select_source", "media_title" ], "description": {}, "options": null, "attributes": { "media_title": "com.sony.dtv.tvx", "muted": false, "source": "com.sony.dtv.tvx", "source_list": [ "Youtube", "Prime Video", "Plex", "Netflix", "HBO Max", "Max", "Emby", "Disney+", "Apple TV", "Spotify", "Ziggo", "Videoland", "Steam Link" ], "state": "ON", "volume": 22 }, "enabled": true } ```Device details when Watch Roku is pressed (from REST API)
DVR: - ```json { "entity_id": "uvjim_virginmediatv_dev_driver.main.fc5273bf14cd49d3b54cd4700b9771ec", "device_class": "set_top_box", "entity_type": "media_player", "integration_id": "uvjim_virginmediatv_dev_driver.main", "name": { "en": "Lounge TiVo" }, "features": [ "channel_switcher", "color_buttons", "dpad", "fast_forward", "home", "menu", "on_off", "play_pause", "previous", "rewind", "stop" ], "description": {}, "options": null, "attributes": { "state": "OFF" }, "enabled": true } ``` TV: - ```json { "entity_id": "uc_androidtv_driver.main.FC017C39709A", "device_class": "tv", "entity_type": "media_player", "integration_id": "uc_androidtv_driver.main", "name": { "en": "KD-65XF9005" }, "features": [ "on_off", "volume", "volume_up_down", "mute_toggle", "play_pause", "next", "previous", "home", "channel_switcher", "dpad", "select_source", "media_title" ], "description": {}, "options": null, "attributes": { "media_title": "com.sony.dtv.tvx", "muted": false, "source": "com.sony.dtv.tvx", "source_list": [ "Youtube", "Prime Video", "Plex", "Netflix", "HBO Max", "Max", "Emby", "Disney+", "Apple TV", "Spotify", "Ziggo", "Videoland", "Steam Link" ], "state": "ON", "volume": 22 }, "enabled": true } ```Device details when changing back to Watch TV (from REST API)
TV: - ```json { "entity_id": "uc_androidtv_driver.main.FC017C39709A", "device_class": "tv", "entity_type": "media_player", "integration_id": "uc_androidtv_driver.main", "name": { "en": "KD-65XF9005" }, "features": [ "on_off", "volume", "volume_up_down", "mute_toggle", "play_pause", "next", "previous", "home", "channel_switcher", "dpad", "select_source", "media_title" ], "description": {}, "options": null, "attributes": { "media_title": "com.sony.dtv.tvx", "muted": true, "source": "com.sony.dtv.tvx", "source_list": [ "Youtube", "Prime Video", "Plex", "Netflix", "HBO Max", "Max", "Emby", "Disney+", "Apple TV", "Spotify", "Ziggo", "Videoland", "Steam Link" ], "state": "OFF", "volume": 0 }, "enabled": true } ```When using a button on the remote to turn the TV power on (from REST API)
TV: - ```json { "entity_id": "uc_androidtv_driver.main.FC017C39709A", "device_class": "tv", "entity_type": "media_player", "integration_id": "uc_androidtv_driver.main", "name": { "en": "KD-65XF9005" }, "features": [ "on_off", "volume", "volume_up_down", "mute_toggle", "play_pause", "next", "previous", "home", "channel_switcher", "dpad", "select_source", "media_title" ], "description": {}, "options": null, "attributes": { "media_title": "com.sony.dtv.tvx", "muted": false, "source": "com.sony.dtv.tvx", "source_list": [ "Youtube", "Prime Video", "Plex", "Netflix", "HBO Max", "Max", "Emby", "Disney+", "Apple TV", "Spotify", "Ziggo", "Videoland", "Steam Link" ], "state": "ON", "volume": 22 }, "enabled": true } ```How to Reproduce
As per description.
Expected behavior
The TV should stay on when switching back from
Watch Roku
toWatch TV
because the device is still required to be on.System version
1.6.10
What part of the system affected by the problem?
Core
Additional context
No response