How to set up per object motion sensor with MQTT in HomeAssistant? #5906
-
Looking for advice on if its possible to set up a motion detector sensor in HA for different objects(i.e. 'person', 'car' etc).
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
I seem to have this working now, looks like the value template needed to return "ON" or "OFF", uppercase?
|
Beta Was this translation helpful? Give feedback.
-
The official integration creates binary sensors for each tracked object type and camera for you automatically. Is there a reason you aren't using those? |
Beta Was this translation helpful? Give feedback.
-
Hi @blakeblackshear , thanks for the response! The yard light itself turning on and off could cause the cars to be detected again by frigate, but once they are not moving it wont trigger the mqtt sensor? Is my understanding correct? |
Beta Was this translation helpful? Give feedback.
-
I believe I just figured out an approach using triggered template sensors:
This doesn't have the downside of the non-matching events from the MQTT topic turning the sensor off. The motion timer is reset when all the following are true
The template sensor will turn off 60 seconds after the event. |
Beta Was this translation helpful? Give feedback.
-
I have a similar problem, have Frigate configured correctly and working and integrated with Haas via Hacs and it is also sending MQTT topics. |
Beta Was this translation helpful? Give feedback.
I believe I just figured out an approach using triggered template sensors:
This doesn't have the downside of the non-match…