Welcome home announce piston for one or multiple people


#21

True but something like IMDB or other quote sites generally are static and it would be easy to pull the quotes into a text file.


#22

I have updated the piston to the latest revision which should make things a bit clearer.


#23

Is there a way to use the new TTS voices with this piston?


#24

I have looked at this and feel so over whelmed.
I have tried a similar piston on just letting me know when someone is home but no luck.
A) how did you manage to make Google change her announcements ever time.
Please give me the concept as I wanna do more on my own( you can take your time as I am asking for a lot)

B) how are you broadcasting without post as would be on assistant relay.

C) mine is so basic as I did
Define
presence1NotHome= presence1
Variable {presence1NotHome }=true

If
Presence1 changes to present
And
Garage contact has been opened within 3 minutes
And
Kitchen sensor changes to open within 2 minutes

With google assistant
Do
Announce ā€˜ā€™ welcome home ā€˜ā€™

Set {presence1NotHome} = false

So what did I do wrong?


#25

I wanted to update this piston to use global variables for presence and speakers instead of having them in the top part of the piston. I want to do this so i dont have to manually update if I add or remove a presence or speaker. When I tried this the piston didnt run.


#26

Post a copy of your piston and Iā€™ll see what your trying to do


#27

Iā€™m trying to use global variables instead of local devices.


#28

Not sure if it will work but if you add a line at the top for ā€˜on events fromā€™ then your 2 global presence devices that will get you somewhere. As currently itā€™s not triggering due to that.
Whatā€™s with the massive waits as weā€™ll? Iā€™m sure there is a timer in there somewhere which clears the variables if you hold it too long. Will need to did it out to find out


#29

The waits are due to several factors on how we enter the house and why.

For the on events from I have that in line 49. Where are you telling me it needs to go.


#30

49 stays where it is, but you can put another with on events from @1st presence device or @2nd presence device. As it is I donā€™t think you subscribe to something that isnā€™t being subscribed to itā€™s self if that make sense :slight_smile: itā€™s the issue with global variables there not designed to do what your asking. @bangali might be able to explain better as Iā€™m not even sure if Iā€™m correct.


#31

I didnā€™t notice that this was mentioned hereā€¦ echo/alexa can now be triggered to talk based on status of a contact or motion sensor. The downside is you need to create a virtual contact sensor for each phrase you want alexa to speak (unless you want to simply have her speak every time a real sensor opens/closes). Then in alexa app, create a routine for the sensor open or close, then type in what you want her to say. Not as flexible as other techniques but easier in some ways. Details hereā€¦

I created one to welcome my son home from school this afternoon and tell him to stay out of the pantry, Iā€™ll find out how it works later today :slight_smile: Webcore monitors a real door closing in certain time range, then opens the new virtual sensor.


#32

No I am not following. Sorry.


#33

Is this what you mean?


#34

@kevin , but you canā€™t use the speak command in webcore with Alexa still. Alexa is going to say if the virtual sensor is open. It canā€™t use my piston above to welcome people they way I have it set[up right?


#35

just skimmed the piston and i would say no. canā€™t do anything that complicated. you canā€™t change the speech on the fly


#36

Yea thatā€™s the rub. I like Alexa more than GHome but it find Ask Alexa /Echsistent too much in terms of setup.


#37

yes/ no you have put in the on event but not put the @ names in to trigger it


#38

I get that but donā€™t I have to put everything into the on events if /do statement?


#39

shouldnā€™t need to but you could put them in line 53 instead as that would be better. The on events will make the piston trigger at least, canā€™t guarantee it will work though as they are local variables for a reason.


#40

Not sure I follow.