roleoroleo / yi-hack_ha_integration

Home Assistant custom integration for Yi cameras: yi-hack-MStar, yi-hack-Allwinner, yi-hack-Allwinner-v2, yi-hack-v5 and sonoff-hack
GNU General Public License v3.0
205 stars 32 forks source link

Create sensor for triggering on motion detection image update #71

Closed kyangk closed 2 years ago

kyangk commented 2 years ago

This is a feature request to expose a sensor for when motion detection image is updated. Currently, motion start and motion detection image are updated separately through MQTT. If I want to send the motion detection image, triggering using the motion start is often too early since the image wouldn't have arrived yet.

Is there a better way to do this? I have to trigger using platform: mqtt on the MQTT topic.

roleoroleo commented 2 years ago

You have to use motion_detection_image: the topic where jpeg is sent from the cam.