Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with picture entities (camera feeds) not working on Fire 10 Tablet (state based on user entity) #73

Open
domenicdistefano opened this issue Feb 1, 2022 · 0 comments

Comments

@domenicdistefano
Copy link

domenicdistefano commented Feb 1, 2022

Strange problem here. I am going to try to describe what's going as best I can. Code examples below. Note - where you see bullets in the code they are actually dashes (-). This editor is displaying them as bullets.

I have a number of camera feeds (eight total) I need to display both on a PC & on a tablet within a 2x4 Grid Card. For brevity purposes in my examples below I will just include the first two camera entities. In Figure A below everything is stock vanilla & works great on a PC. Problem is these are a mix of 4K & 1440p cameras so the tablet can't keep up. To solve the issue I can create a separate view and substitute an alternate stream dumbed down to 720p which the tablet handles fine. See Figure B.

Instead of having redundant views for each resolution / device I want to use state-switch via user name to present the proper code to the proper device. Easy right? Not so much....

Again just to reiterate independently without using state-switch all of this code works fine & displays properly. When combined however (as shown in Figure C with my full code / eight cameras) using state-switch the tablet (720p version of the code) just shows with black boxes on the tablet. I am scratching my head because state-switch is doing its job and using the proper version of the code on the tablet but for some reason the actual payload / view of the live stream is breaking somehow. Even if do another version for troubleshooting just showing a single feed (one regular and one 720) I get the same result.

At the very bottom is a picture of what the tablet screen looks like with the only variable being state-switch. If I use the same code (720 entities only in a regular view) everything looks great as you can see in the second picture.

Makes no sense. Any ideas?

Thanks in advance for the help with your GREAT PRODUCT!

Figure A
--------------example without state-switch--------------
type: grid
square: false
columns: 2
cards:

  • type: picture-entity
    entity: camera.driveway_front_yard
    show_state: false
    show_name: false
    theme: noctis
    camera_view: live
  • type: picture-entity
    entity: camera.driveway_pool_road
    show_state: false
    show_name: false
    theme: noctis
    camera_view: live
    --------------example without state-switch--------------

Figure B
--------------example without state-switch--------------
type: grid
square: false
columns: 2
cards:

  • type: picture-entity
    entity: camera.driveway_front_yard_720
    show_state: false
    show_name: false
    theme: noctis
    camera_view: live
  • type: picture-entity
    entity: camera.driveway_pool_road_720
    show_state: false
    show_name: false
    theme: noctis
    camera_view: live
    --------------example without state-switch--------------

Figure C
--------------example WITH state-switch--------------
type: custom:state-switch
entity: user
default: default
states:
Domenic:
type: grid
square: false
columns: 2
cards:
- type: picture-entity
entity: camera.driveway_front_yard
show_state: false
show_name: false
theme: noctis
camera_view: live
- type: picture-entity
entity: camera.driveway_pool_road
show_state: false
show_name: false
theme: noctis
camera_view: live
- type: picture-entity
entity: camera.front_yard
show_state: false
show_name: false
theme: noctis
camera_view: live
- type: picture-entity
entity: camera.front_door
show_state: false
show_name: false
theme: noctis
camera_view: live
- type: picture-entity
entity: camera.pool_road
show_state: false
show_name: false
theme: noctis
camera_view: live
- type: picture-entity
entity: camera.back_yard
show_state: false
show_name: false
theme: noctis
camera_view: live
- type: picture-entity
entity: camera.back_porch
show_state: false
show_name: false
theme: noctis
camera_view: live
- type: picture-entity
entity: camera.garden
show_state: false
show_name: false
theme: noctis
camera_view: live
Front Door Tablet:
type: grid
square: false
columns: 2
cards:
- type: picture-entity
entity: camera.driveway_front_yard_720
show_state: false
show_name: false
theme: noctis
camera_view: live
- type: picture-entity
entity: camera.driveway_pool_road_720
show_state: false
show_name: false
theme: noctis
camera_view: live
- type: picture-entity
entity: camera.front_yard_720
show_state: false
show_name: false
theme: noctis
camera_view: live
- type: picture-entity
entity: camera.front_door_720
show_state: false
show_name: false
theme: noctis
camera_view: live
- type: picture-entity
entity: camera.pool_road_720
show_state: false
show_name: false
theme: noctis
camera_view: live
- type: picture-entity
entity: camera.back_yard_720
show_state: false
show_name: false
theme: noctis
camera_view: live
- type: picture-entity
entity: camera.back_porch_720
show_state: false
show_name: false
theme: noctis
camera_view: live
- type: picture-entity
entity: camera.garden_720
show_state: false
show_name: false
theme: noctis
camera_view: live
--------------example WITH state-switch--------------
Broken:
image

Working:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant