the Yi cam, with AI, hack can do MQTT and this is what I see when I listen:
now, what and where should i put in the config file to make it work?
basically i want to play a sound on my siren when a person is detected.
the Yi cam, with AI, hack can do MQTT and this is what I see when I listen:
now, what and where should i put in the config file to make it work?
basically i want to play a sound on my siren when a person is detected.
tried with this in my config but it still does not work
binary_sensor:
- platform: mqtt
state_topic: "yicam/ai_human_detection"
name: 'motion Yi human'
yaml syntax is correct but what am i missing? in Dev Tool, the state is stuck with “off,” even though i see the state topic appear every time the cam detects human.
happy to say this works in my config yaml:
binary_sensor:
- platform: mqtt
state_topic: "yicam/ai_human_detection"
name: 'Yi human'
payload_on: "human_stop"
to turn it “off,” i have to use another automation to set the state to off after 1min.