Announcement

Collapse
No announcement yet.

Alexa announcements when more than one condition are met.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Alexa announcements when more than one condition are met.

    I am a noob when it comes to this. I got Node Red up and running and setup TTS though Alexa. I have to manually auth with Amazon every 3 days but I make that work.

    I made a flow to have Alexa announce when a door is open. Now I want to take it one step further and have Alexa announce when a door is opened only if another device (occupancy) is On. Here is what I have.​​

    Click image for larger version

Name:	Screenshot 2022-12-29 at 11.05.57 PM.png
Views:	173
Size:	52.5 KB
ID:	1583725
    On the left are each of the door sensors. They go through a Switch so an action is only preformed when they are "opened" Then another device is checked and passed though another switch. If the status of that device (occupancy) is on then a payload is set with the text and then spoken though the echos. This works if I take out the occupancy and the switch. I suppose I could make new virtual devices and only have HS turn them on when occupancy is ON and use them as the basis for my flow but that seams like a bit of overkill.

    Can someone tell me what I am going wrong?

    #2
    Which contrib did you use for Alexa? I believe the Apple Strudel contrib is the latest and one you should use.
    Karl S
    HS4Pro on Windows 10
    1070 Devices
    56 Z-Wave Nodes
    104 Events
    HSTouch Clients: 3 Android, 1 iOS
    Google Home: 3 Mini units, 1 Pair Audios, 2 Displays

    Comment


      #3
      As for the occupancy device, look up the simple gate contrib and have your occupancy device open it close the gate. Your occupancy device is changing msg.payload to contain values for that specific occupancy device. This is replacing what is coming from the other HomeSeer devices, so your announcement is likely the state of your occupancy device. The gate node would go where you're current involvement device and the switch node before it are located, replacing both. The occupancy node would go to a switch node which will have 2 wires out. Each goes to a change node which is set to either open or close the gate node. When open, the messages from your HomeSeer devices will go through the gate and proceed to be processed for TTS. When closed, it will terminate the message from being processed further.

      My apologies for not providing links and an example. I won't be at a computer for a while. You could search here for the simple gate contrib to find samples if needed.
      Karl S
      HS4Pro on Windows 10
      1070 Devices
      56 Z-Wave Nodes
      104 Events
      HSTouch Clients: 3 Android, 1 iOS
      Google Home: 3 Mini units, 1 Pair Audios, 2 Displays

      Comment


        #4
        Originally posted by ksum View Post
        Which contrib did you use for Alexa? I believe the Apple Strudel contrib is the latest and one you should use.
        I'm using 'cake baked' works fine for me.

        Comment


          #5
          See This Post for instructions on using the Simple Gate Node mentioned above with the Alexa Speak flow as a way of turning the flow execution off or on via a HomeSeer device. In the linked example a virtual "Announce Status" On/Off device. If it is not an On/Off device, change the Switch node to use values from your virtual device.
          Karl S
          HS4Pro on Windows 10
          1070 Devices
          56 Z-Wave Nodes
          104 Events
          HSTouch Clients: 3 Android, 1 iOS
          Google Home: 3 Mini units, 1 Pair Audios, 2 Displays

          Comment


            #6
            Thanks for this. I am using the alexa-remote2​ as that was in the homeseer guide but will try the apple Strudel Contrib and check out the link you provided about the gate.

            Comment


              #7
              Originally posted by ksum View Post
              See This Post for instructions on using the Simple Gate Node mentioned above with the Alexa Speak flow as a way of turning the flow execution off or on via a HomeSeer device. In the linked example a virtual "Announce Status" On/Off device. If it is not an On/Off device, change the Switch node to use values from your virtual device.
              I have to be missing something simple. Your link helped me get this setup but its still not working for me.

              I setup my occupancy as the virtual on / off homeseer switch ( can see this change real-time in node red). This passes into a switch with on and off. On should open the gate and Off should close the gate. However when I turn on / off the occupancy the gate never open or closes.


              Click image for larger version

Name:	Screenshot 2023-01-01 at 6.26.46 PM.png
Views:	107
Size:	70.9 KB
ID:	1584237

              Click image for larger version

Name:	Screenshot 2023-01-01 at 6.30.52 PM.png
Views:	87
Size:	19.4 KB
ID:	1584241

              Click image for larger version

Name:	Screenshot 2023-01-01 at 6.31.07 PM.png
Views:	90
Size:	26.2 KB
ID:	1584238Click image for larger version

Name:	Screenshot 2023-01-01 at 6.31.19 PM.png
Views:	90
Size:	26.2 KB
ID:	1584239
              Click image for larger version

Name:	Screenshot 2023-01-01 at 6.31.30 PM.png
Views:	84
Size:	40.5 KB
ID:	1584240

              Comment


                #8
                Change the Property field Switch Node after your HomeSeer Occupancy Node to be payload.staus
                The HomeSeer node's output payload is an object, not a simple variable.

                Also, I believe you have the Open and Close settings flipped so the gate will be closed when you want it opened.
                Karl S
                HS4Pro on Windows 10
                1070 Devices
                56 Z-Wave Nodes
                104 Events
                HSTouch Clients: 3 Android, 1 iOS
                Google Home: 3 Mini units, 1 Pair Audios, 2 Displays

                Comment


                  #9
                  Originally posted by ksum View Post
                  Change the Property field Switch Node after your HomeSeer Occupancy Node to be payload.staus
                  The HomeSeer node's output payload is an object, not a simple variable.

                  Also, I believe you have the Open and Close settings flipped so the gate will be closed when you want it opened.
                  Thanks again! First day of the new year and I already learned something new!

                  Comment

                  Working...
                  X