Screenshot sensor, fail state?

Is there a way currently where if the PC is asleep for example and the screenshot sensor has no data to either hide the card or display a line of text like "PC is not currently available"?
Solution:
i assume UI. 1. Add a conditional card 2. Add a condition for entity state 3. Set it to check that the screenshot is not unavailable...
Jump to solution
2 Replies
DrR0x
DrR0x6mo ago
Yes, let me get on my computer and check for u @El Dingo do you use yaml or UI?
Solution
DrR0x
DrR0x6mo ago
i assume UI. 1. Add a conditional card 2. Add a condition for entity state 3. Set it to check that the screenshot is not unavailable 4. Open code editor and paste in yaml from previous card under card:, or add card via UI My simple one looks like this:
type: conditional
conditions:
- condition: state
entity: camera.zachs_laptop_screenshot
state: unavailable
card:
show_state: true
show_name: true
camera_view: auto
type: picture-entity
camera_image: camera.zachs_laptop_screenshot
entity: camera.zachs_laptop_screenshot
type: conditional
conditions:
- condition: state
entity: camera.zachs_laptop_screenshot
state: unavailable
card:
show_state: true
show_name: true
camera_view: auto
type: picture-entity
camera_image: camera.zachs_laptop_screenshot
entity: camera.zachs_laptop_screenshot
Want results from more Discord servers?
Add your server