Skip to content

Commit

Permalink
Change _DoTalkAction_ from "Invite" to "Pulse"
Browse files Browse the repository at this point in the history
  • Loading branch information
StarkZarn committed Mar 16, 2021
1 parent 2bf406d commit 0bed65d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/amcrest2mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def signal_handler(sig, frame):
mqtt_payload = "on" if payload["action"] == "Start" else "off"
mqtt_publish(motion_topic, mqtt_payload)
elif code == "_DoTalkAction_":
mqtt_payload = "on" if payload["data"]["Action"] == "Invite" else "off"
mqtt_payload = "on" if payload["data"]["Action"] == "Pulse" else "off"
mqtt_publish(doorbell_topic, mqtt_payload)

mqtt_publish(event_topic, json.dumps(payload))
Expand Down

0 comments on commit 0bed65d

Please sign in to comment.