I have an Amcrest IP cam and the sensor.*motion_detected state being True/False instead of on/off seems to have issues with Lovelace specifically the Picture Glance card when showing motion on it.
The motion image is always illuminated white regardless of the state being True/False.
I have already tried using CustomUI to change value_template to see if getting the value of on/off could work.
Note: I already used CustomUI icon_color to work around Lovelaces Picture Element card to get the native icon to change colors correctly when the camera motion is detected. But, this is a different issue with the Picture Glance.
Any help is appreciated.
P.S. And feel free to also educate me on the inner working of Lovelace and the old UI. As I find this interesting that the work around for Picture Elements, doesn’t also work for Picture Glance.