Has anyone been able to successfully setup an MQTT motion sensor icon?
I am using lovelace. I have tried icon_template (which is not available for sensor.mqtt) as well as device_class. Device_class worked, but there is not a motion sensor device class for MQTT sensors…as far as I can tell. I am able to get it working for other sensors, but sensor.mqtt does not support icon_template.
I would like to have an icon that changes from mdi:eye (when no motion) to mdi:walk when motion is detected.
This shows the mdi:walk icon and highlights mdi:walk with yellow when motion found.
Am I able to set the icon to mdi:eye when no motion, and mdi:walk when motion detected? Also, the value returns “clear” and “detected”. How do I change the value to be “motion” and “no motion”.