Just change the value of the second block in the flow to 1.
Announcement
Collapse
No announcement yet.
Nearly instant HS3 voice control via Android's "Automate" app!
Collapse
X
-
HS4, Insteon, Z-wave, USB-UIRT, Harmony Hubs, Google Hub/Chromecasts/Speakers, Foscam & Amcrest cameras, EZVIZ DB1 doorbell
Plugins: BLLAN, BLOccupied, BLUSBUIRT, Chromecast, Harmony Hub, Insteon, Jon00 Homeseer/Echo Skill Helper, Harmony Hub, Jon00 DB Charting, MediaController, NetCAM, PHLocation2, Pushover 3P, weatherXML, Z-wave
-
Duh me! The braces are used for replacement variables in text strings. They're used in this flow. That's why any logic on just "{}" was failing.
Originally posted by mrceolla View PostJust change the value of the second block in the flow to 1.
was in your previous versions.
The error was:
java.net.SocketTimeoutException:SSL handshake timed out
Also had to change skipConfirm = 1 (as you advised).
All working brilliantly again now
Comment
-
Sorry about that confusion. I enabled the confirmation for some troubleshooting and forgot about it. Then I re-read my first post and it sounded like the original flow(s) had the confirmation step enabled, so I left it on in v4 as well.
The "https" is because I run an Apache SSL proxy for HS3 since HS3 doesn't correctly implement SSL for this day and age.
I'll update v4 in the first post to change those two things.HS4, Insteon, Z-wave, USB-UIRT, Harmony Hubs, Google Hub/Chromecasts/Speakers, Foscam & Amcrest cameras, EZVIZ DB1 doorbell
Plugins: BLLAN, BLOccupied, BLUSBUIRT, Chromecast, Harmony Hub, Insteon, Jon00 Homeseer/Echo Skill Helper, Harmony Hub, Jon00 DB Charting, MediaController, NetCAM, PHLocation2, Pushover 3P, weatherXML, Z-wave
Comment
-
Thanks for this!
This is working for me, now that I figured out the port needed to be the web server port (80 by default), not the HSTouch port (10200 by default). Also it took me a while to find where Automate stores the account credentials (in the Android OS Settings, not in Automate Settings).
Thanks!
Comment
-
Originally posted by _ThaNerd_ View PostNever used Automate before, got the .flo files onto my phone but when I try to import I get "Failed to read flow" no matter what version of your .flo files I tried...
ThaNerd, I'm not sure what to say. The file must have gotten corrupted at some point since nobody else is reporting this issue. Perhaps try unzipping with a different program or copying it to the device in a different way. Maybe email it to yourself. Let us know if you get it imported.
ALittleSlow, yes, credentials for the HTTP block are at the OS level. I was worried about that before posting the flow to the forum. Glad you got it working.HS4, Insteon, Z-wave, USB-UIRT, Harmony Hubs, Google Hub/Chromecasts/Speakers, Foscam & Amcrest cameras, EZVIZ DB1 doorbell
Plugins: BLLAN, BLOccupied, BLUSBUIRT, Chromecast, Harmony Hub, Insteon, Jon00 Homeseer/Echo Skill Helper, Harmony Hub, Jon00 DB Charting, MediaController, NetCAM, PHLocation2, Pushover 3P, weatherXML, Z-wave
Comment
-
Originally posted by mrceolla View PostThe 3 point check is all on the whereabouts of a phone, mostly.
1) The app we're talking about here, "Automate" sends a JSON request to HS when I connect to, and disconnect from my home network.
2) The plugin "BLLAN" which does a constant ping for my phone which has a static IP on my network
3) The plugin "PHLocation" along with Backitude on my phone to know my phone's location.
My Z-wave locks and user codes also play along with all of this to set whether someone is: Away, Probably Away, Unknown, Probably Home, Home. The house occupancy also has 5 possible values set based on the most positive value between all house occupants. I wrote a very ugly looking script to process all of this. I'd share it but it's related to my security and very specific to my needs. I'd rather not have it out there. I could probably edit and share my Automate flow that detects when I'm connected, if you're interested.
Also, I'm using native HS3 events but have been thinking about scripting all my house modes but not sure what I'm gaining (this would include occupancy triggers) -- what are you gaining using your script vs native events?
thx
Comment
-
Kinda off topic but good questions so what the heck. To start, the 'Probably' and 'Unknown' states are currently only partially used. I wanted to leave wiggle room if I thought of other uses. For example, when 'Probably Home' happens, I am reasonably certain (based on varying combinations of those 3 checks, previous state, plus order of events) that someone is home and I disable alarm notifications, although cameras remain recording. If the state stays at 'Probably Home' for too long, the alarm notifications are re-enabled. I do this because sometimes one of those checks would take a while to happen/update and I kept getting notifications when we came home that I didn't want to be getting.
This is likely more complicated than most would need or want but I didn't want to make it easy for someone to enter my home by faking my phone. Not that anyone would. Someone with that skillset should have no interest in robbing my house. So yes, likely more than most would need but that's why I do it.
I use scripts over native events when logic gets complicated or I need to deal with many devices. I have a programming background and I find that sort of flexibility powerful. I do have many, many native events, but some things are just quicker and easier to do in a script, especially if you have a programming background. If you don't, I bet you could still catch on quickly by looking at a few samples.
Best of luck! Feel free to PM me if you have any other questions about detecting home/away or scripting. Again, I'm not getting notifications from this site so it might take me a few days to see it.HS4, Insteon, Z-wave, USB-UIRT, Harmony Hubs, Google Hub/Chromecasts/Speakers, Foscam & Amcrest cameras, EZVIZ DB1 doorbell
Plugins: BLLAN, BLOccupied, BLUSBUIRT, Chromecast, Harmony Hub, Insteon, Jon00 Homeseer/Echo Skill Helper, Harmony Hub, Jon00 DB Charting, MediaController, NetCAM, PHLocation2, Pushover 3P, weatherXML, Z-wave
Comment
-
Hi, new to HomeSeer here, does this method still work to do voice recognition via the Android Automate app?
It's not working for me and I have a few questions.
1) In the Automate flow, where I add the IP of my HS server to the JSON call, is it my internal home LAN IP or my external public IP?
2) What port shoudl we be using in the URL? Standard HTTP=80?
3) Is the Automate app the one talking to Google, getting the text back, and then relaying it to the HS server?
If I packet capture against my HS server using the Android's internal LAN IP I'm not seeing any traffic landing at my HS server from that source IP.
No errors reported in the Automate flow logs either.
Many thanks in advance, this sounds like the exact feature I was looking for!
Kind Regards,
Adam
Comment
-
Scratch that! I answered my own questions, thanks very much regardless!
Should have examined the flow a bit closer, it is indeed the Automate app doing the voice to text resolution.
From there it's sending the API request to the HS server over the local LAN.
I suspect I may have made an alternation like dragging a connecting line from one place to another. I deleted and re-imported the flow and re-entered my local HS IP and credentials and it's working!
Thank you, this is excellent, I've not been able to get the HS3Touch android app to do any voice recognition whatsoever, so this is really excellent.
As a recent refugee from Vera, the community here is truly technically impressive!
Many thanks and best wishes,
Adam
Comment
-
Hi Adam,
Glad you got it sorted out. It can be easy to accidentally change a connection in Automate.
The Automate app isn't necessarily doing the voice to text transcription itself, rather it is triggering your phone's built-in voice-to-text capability (powered by Google), then making the text result available for further processing. Not that it matters much, but I am uncertain if the phone needs to communicate with Google servers to complete the voice-to-text. I know Google added the ability for phones to do some local processing for voice-to-text in recent releases. Either way it is seamless for this purpose.
For that http request URL, you can use an internal IP, external IP, or domain name. Whatever you wish. You must of course setup proper port forwarding on your router if you wish to connect to HS from outside of your local LAN.
Enjoy!HS4, Insteon, Z-wave, USB-UIRT, Harmony Hubs, Google Hub/Chromecasts/Speakers, Foscam & Amcrest cameras, EZVIZ DB1 doorbell
Plugins: BLLAN, BLOccupied, BLUSBUIRT, Chromecast, Harmony Hub, Insteon, Jon00 Homeseer/Echo Skill Helper, Harmony Hub, Jon00 DB Charting, MediaController, NetCAM, PHLocation2, Pushover 3P, weatherXML, Z-wave
Comment
-
This is awesome!
I got it to work but two issues:
1) How do I eliminate the need to say "run event..."? before the next phrase which is the voice command for the event I want to run?
2) How to I eliminate the confirmation coming from HS3? "Do you want to run the event xxx?"
Also, is there a way to use "OK Google" to run the automate flow and accept a voice command in a single voice command?
Thanks
Comment
-
Hi lockon,
Sounds like you're going down the same path I went down.
1) Try using the "A phrase was recognized" trigger, or Jon00's Echo Skill Helper (which really works with more than Echos)
https://forums.homeseer.com/forum/3r...for-homeseer-3
2) The 2 options above do not require the confirmation step. I'm not sure how to eliminate the confirmation if using "Run event...". I suppose you could update the Automate flow to automatically send a "Yes" whenever it receives "Do you want to run event%", if you wanted.
3) I'm not sure about launching an Automate flow via Google Assistant, but if you're motivated you could do what I did and setup your own custom Google Action. It's not a perfect solution but I've been happy with it.
https://forums.homeseer.com/forum/ho...stom-responses
As described in the post, you can then create custom Google Routines which further reduces the number of words you need to say.
Let me know if you have any other questions. Good luck!HS4, Insteon, Z-wave, USB-UIRT, Harmony Hubs, Google Hub/Chromecasts/Speakers, Foscam & Amcrest cameras, EZVIZ DB1 doorbell
Plugins: BLLAN, BLOccupied, BLUSBUIRT, Chromecast, Harmony Hub, Insteon, Jon00 Homeseer/Echo Skill Helper, Harmony Hub, Jon00 DB Charting, MediaController, NetCAM, PHLocation2, Pushover 3P, weatherXML, Z-wave
Comment
Comment