My goal: To have a Picture Glance card that displays the camera from my 3D printer such that it is grayscale when not printing and in color while printing.
This was simple enough to achieve with the following:
- type: picture-glance
entities:
- entity: camera.octoprint_cam
camera_image: camera.octoprint_cam
camera_view: live
state_filter:
"on": saturate(1)
"off": saturate(0)
entity: binary_sensor.octoprint_printing
… however, when I set the entity to be the binary_sensor
, tapping on the card now shows the status of that sensor, whereas before adding the state_filter
tapping on the card would pop-up the camera feed, i.e.
- type: picture-glance
entities: []
camera_image: camera.octoprint_cam
camera_view: live
My question: Is there any way to configure this so that I can have the grayscale applied, while also being able to tap the card to show the camera feed?
I have tried variants of tap_action
and had no success, and currently have it so tapping the camera icon associated with the glance entity opens the feed, but would really prefer the entire card being tappable so hoping someone more experienced here could advise. Thanks.