You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
documentationImprovements or additions to documentation
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
on your camera if it has car/vehicle detection as well as animal/pet detection...
the entity will be the cameras motion entity so in this example we will use say "binary_sensor.driveway_camera_motion"
then this cameras intergration will show the person, vehicle and animal entities, so for me its
binary_sensor.driveway_camera_person
binary_sensor.driveway_camera_vehicle
binary_sensor.driveway_camera_pet
so I would in the card use
icon: |
[[[
if ( states["binary_sensor.driveway_camera_vehicle"].state == 'on')
return "phu:camera-car";
if ( states["binary_sensor.driveway_camera_person"].state == 'on')
return "phu:camera-person";
if ( states["binary_sensor.driveway_camera_pet"].state == 'on')
return "phu:camera-pet";
else return 'phu:camera-nomotion';
]]]
This would also work using frigate entities for these entities too.
Beta Was this translation helpful? Give feedback.
All reactions