I’ve looked for this but can’t seem to find an answer. I’m using node-red for my automations. What i would like to do is sound a welcome home <my_name> from the sonos when i arrive home. However connecting to the wifi and actually going to the room where the sonos resides in differs in time. E.g. when i store my bike next to the house i’m already connected to wifi.
What i would like to do is when my device tracker changes state from home to away and after i’ve entered the room (Seen by door sensor and motion) send TTS notification to Sonos. IS there any way in Node-Red to do this? I can’t find the right nodes to do this with.
You have to handle the Home/Away status - this can be done with wifi or bluetooth presence detection. There are several approaches here and can easily be done with NR. I used the HA State-Change-Node for this
As you mentioned, the presence detection in a specific room can easily be done with motion sensor (I would not use door sensor for that). I used the HA State-Change-Node as well for this
To send a notification via SONOS i’m using a HA node to execute google-tts. The message content and room I create in a json template which i send to the HA node
With these 3 steps you just need to build the logic you want. I might share a few sample flows this evening to show how the nodes are used.