Parent/child app


#63

UPDATE: Resolved.. See post 4 at the link below for the working parent function to return setting/state variables to a child app. I'm sure this could be improved, but it's working for me.


@bravenel and/or anyone else that may be able to offer advise..

I'm super close on resolving the parent/child variable issue but have run into an issue I am not sure how to resolve. The parent method/function returning data to the child app is mostly working; however dates are being returned as strings and then when compared with timeOfDayIsBetween() an error is thrown. I'm not sure how to detect/cast these to date/datetime.

I'm moving discussion on this particular issue here under a topic of it's own:


#64

Do we use the same git hub location for Bigtalker rayzurblock ?


#65

Yes, but use the Hubitat-Dev branch.
https://github.com/rayzurbock/BigTalker2/tree/Hubitat-Dev

It's not currently working with Sonos due to lack of playTextAndRestore() and playTextAndResume() functions in the Hubitat driver. You may be able to port a custom Sonos driver and resolve that.
See this thread for the discussion on that: https://community.hubitat.com/clicks/track?url=https%3A%2F%2Fcommunity.hubitat.com%2Ft%2Fsonos-playtrackandrestore-missing%2F2314&post_id=21686&topic_id=2285

I've had confirmations of it working on some other speakers though. So, if it works for you, please post that info and what speaker and driver you are using.


#66

I use LanAnnouncer so this should work then right ?


#67

What's the Allow Personality setting rayzurback ?


#68

Yes, but make sure on install that you set the slider to the option for speechSynthesis (slider to the off position I believe)


#69

It injects a small pool of randomness in phrases at random times.
ie: "The family room light is now off" becomes "The family room light is now off, time to save some money", but not always and the phrase may differ from time to time. Your typed text is always spoken. The randomness is then added to the beginning or end of your phrase.

Hopefully someday, I'll enhance the pool of random prefixed/appended phrases that it uses. It's pretty small and repetitive at this point.


#70

Works perfectly with Lan Announcer !! Thanks and I donated yesterday to you for your excellent work.


#71

@sgrayban Thanks for the feedback and for your support of the project.


#72

I got a question about BT2 -- Its not pulling weather data when I try using any of the weather variables... even if I use %weathercurrent(00000)% and use my zip code I get a error.

Just saw that getWeatherFeature is not in the firmware code yet.... bummer.


#74

Just found out you can't install BT2 twice -- one for music and one for speech. Can this be fixed ?


#75

Edit the code in the Parent app. Change singleInstance: true to false


#76

Thanks !


#77

I have my Fabriq RIFF speakers connected to Hubitat with the DLNA driver. I was able to get them working with Bigtalker2 for speech. One thing I noticed however is when I created an event, say Test and attached it to a light switch. While it worked, it didn't show up as a child under the Big Talker2 app listing in Hubitat. Also, there is no "Remove" button to delete the actual event. How can events be removed that are no longer needed?


#78

The child should show up under the BigTalker2 parent, at least if your using the current port that I have on GitHub. I'll need to check on the uninstall function missing for the child app. You should be able to click the (i) next to the child app in the Hubitat Apps page and choose Remove there.


#79

I am using the latest version. Odd, the first time I created a testing child it didn’t show up. I just created another one and this one did show up. And yes I was able to remove it with clicking on the I next to the name of the child. Thanks!


#80

would you mind sharing your updated code for the milight manager?