[quote=“RexBeckett, post:120, topic:173177”]
Yes this made the Sonos speak upbut now when there are tripped devices I’m hearing only one message “Zero devcices are checked and all are closed. House is secure. Good Bye”
You will get this message if the code does not find any devices in your system where the device_category is 4 and the sub_category is 1 (door & window sensors).
What sensors are you using? Check on each device’s Advanced tab for the values in the category_num and subcategory_num fields. You may need to modify the code to suit your mix of devices.
FYI: These are the standard Device Categories.[/quote]
Rex Beckett - Thanks a lot. This works fine after the change suggested by you. ![]()
Since I’m new to this and still experimenting, my thoughts keep maturing and newer ideas keep coming and I’m sure I’m not the first to hit them here. Here are few things that I want to achieve with this and help me wherever you can:
-
I want a code that should execute every time a sensor is tripped and announce the details of it. BUT before the announcement a DING DONG should play to grab attention and then followed by the announcement. This will help me understand which door has been opened (specially with kids I need to keep a track on them when they go out or come in). I think some tweaks to the existing code should do this.
-
I have two at this time and will add one more. All the announcements should play on the ALL Sonos in my home irrespective of grouping status or play mode of Sonos.
I might add more later as we grow with this.
Sharad