User Tools

Site Tools


squawk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
squawk [2016-12-11 21:18]
rob
squawk [2017-01-10 21:01] (current)
tim [/home/pi/squawk.py]
Line 184: Line 184:
         speak(msg.payload)         speak(msg.payload)
  
-    if msg.topic == 'display/doorbot/intercom': +    if msg.topic == 'access/entrance/request': 
-        if msg.payload == '​1'​ and status == '​closed':​+        if status == '​closed':​
             play('​doorbell.mp3'​)             play('​doorbell.mp3'​)
  
squawk.txt · Last modified: 2017-01-10 21:01 by tim