Motion dependent tts queue with AppDaemon

Today I wrote my first AppDaemon App. For quite some time now I thought it would be very useful if I could send notifications that would be read to me when I’m at home.

How does it work?
A speaker can be linked to motion detectors via the configuration:

  module: motion_notification_queue
  class: MotionNotificationQueue
      service: tts/google_say
      service_entity_id: media_player.kueche_2
        - binary_sensor.0x00158d0002b7efcd_occupancy

The event “message_queue” can be used to send two different types of notifications.
Speaker dependent messages are only played if a movement of the specified speaker has been detected.

Independent messages are always played when any motion of an associated motion detector is detected:

So the theory is as follows: Messages can be sent all day long. When I come into the kitchen in the evening, all the messages that have collected over the day are read to me.


At the moment it is still a proof o concept but it works. Let me know what you think about it.