Originally posted by philchillbill
View Post
EvoControl - custom Alexa skill for Evohome
Collapse
X
-
Widgets with TemporaryOverride built-in
I've added a new feature specifically for widgets where an activity name is checked to see if it ends in 1-3 digits plus either 'm' or a single apostrophe ('). If so, then the activity is activated for that number of minutes when tapped. For purists, the regex is
So you could have an activity named e.g. 'HW Boost 20m' which when triggered from a widget would result in a boost for 20 minutes, but not if you fire it by voice or touch from the 'full' skill. Then, it's triggered until the next scheduled block-time unless you specify until/duration.Code:var duration = sceneName.match(/(\d{1,3})[`'��m]$/i)?.[1];
Note there should be no space between the digits and the m/' at the end of the name, so the likes of "xxx 30m, xxx 9m, xxx 180m, xxx 10' and xxx 480'" are all valid. A space before the digits is fine/optional.
Activities are normally blocked when the system is Off/Away, but an activity will fire OK if the System Mode is HeatingOff provided that DHW is the only item addressed by the activity.
Thanks to Bruce for beta-testing.
Comment
-
-
Great stuff, I can now see the widget is offered up on my Echo Show 8G2 in the widget gallery.Originally posted by philchillbill View PostApologies all. It looks like the widget was only published for the en-US locale and missed en-GB or de-DE. I'm looking into why that might have happened. Not sure if I can just update or if re-certification is needed but I'll report back here when resolved.
EDIT: It needs re-certification
Just submitted so let's see how busy Amazon is with new fart-skills at the moment
So after adding it, I thought I’d give it a whirl. After switching to the widgets screen, and knowing my system was in Permanent Standby mode. I selected one of my activities. I saw the activity name “flash” on the widget, however my system just remained in standby. I tried with other activities listed on the widget, but got the same result.
I then tried to launch Evocontrol from the widget and it started to launch, however failed to fully launch with (something went wrong message - try again later).
Using verbal commands Evocontrol performed perfectly.
I did also note that once the widget had been added, it disappeared from the widget gallery, whereas my other added widgets remain in the gallery with the + icon replaced with a ✔️ (tick).
Just wondered is there an issue today, as I decided to remove the widget and then then re-add it, however it’s now not showing in the gallery?Last edited by Midland45; 7 June 2023, 08:15 AM.
Comment
-
-
I can see a whole load of errors generated by you in the logs. It looks like the skill is having difficulty with your live schedule content because it does not seem to know the next block-time to use as the 'until' for the activity activation.
Can you check in the TCC mobile app or on your Evotouch if all is normal? Are things working OK from the 'full' skill as opposed to the widget? You use Domoticz with the skill IIRC. Is Domoticz running normally?
When smart home skills produce constant errors, Amazon automatically unlinks them. That's not stated anywhere in their docs but I've figured it out over the years. They may do the same with erroneous widgets, although I would expect it to remain in your gallery.
Comment
-
-
The full Evocontrol skill, Evotouch, TCC app and Domoticz are all working absolutely fine. Just rechecked and Activities triggered verbally by the skill all worked spot on. It was only the widget failing to trigger the activities or even the full Evocontrol skill launched via the thermometer symbol that was an issue.Originally posted by philchillbill View PostI can see a whole load of errors generated by you in the logs. It looks like the skill is having difficulty with your live schedule content because it does not seem to know the next block-time to use as the 'until' for the activity activation.
Can you check in the TCC mobile app or on your Evotouch if all is normal? Are things working OK from the 'full' skill as opposed to the widget? You use Domoticz with the skill IIRC. Is Domoticz running normally?
When smart home skills produce constant errors, Amazon automatically unlinks them. That's not stated anywhere in their docs but I've figured it out over the years. They may do the same with erroneous widgets, although I would expect it to remain in your gallery.
Comment
-
-
Unlike skills, widgets actually store data on your Echo for instant retrieval. When you view the widget panel it's already populated with data retrieved from the so-called 'datastore' on the Echo so as to save a round-trip back and forth to the skill. Something might have gone wrong outside the skill-proper when Amazon installed the widget on your Echo. Is it still not showing in your widget gallery as installable?Originally posted by Midland45 View PostThe full Evocontrol skill, Evotouch, TCC app and Domoticz are all working absolutely fine. Just rechecked and Activities triggered verbally by the skill all worked spot on. It was only the widget failing to trigger the activities or even the full Evocontrol skill launched via the thermometer symbol that was an issue.
EDIT: Corner-case. Looks like I wasn't fetching the schedule from TCC from the widget when the user has a HGI/Domoticz. See if it works OK now. Apologies.Last edited by philchillbill; 7 June 2023, 11:00 AM.
Comment
-
-
Good to hear you spotted an issue, the widget isn’t presently available in my widget gallery, so once it returns I’ll re-add and re-test it.Originally posted by philchillbill View PostUnlike skills, widgets actually store data on your Echo for instant retrieval. When you view the widget panel it's already populated with data retrieved from the so-called 'datastore' on the Echo so as to save a round-trip back and forth to the skill. Something might have gone wrong outside the skill-proper when Amazon installed the widget on your Echo. Is it still not showing in your widget gallery as installable?
EDIT: Corner-case. Looks like I wasn't fetching the schedule from TCC from the widget when the user has a HGI/Domoticz. See if it works OK now. Apologies.
Comment
-
-
Yes I think there must be an Amazon issue, as the widget, if it behaves like the others, should always be in the gallery whether installed or not.Originally posted by philchillbill View PostI just filed a ticket with Amazon regarding why the widget has disappeared from the gallery. I changed nothing but also no longer see it on my devices. Might be an issue on their end. If installed, it still works so the issue is the gallery.
Comment
-
-
Amazon recently announced the SimpleEventSource API for smart home skills https://developer.amazon.com/en-US/b...alexa-may-2023. EvoControl is officially a custom skill, not a smart home one, but I could potentially add a smart home 'section' to it and make it a combo-skill. That way, you could trigger Alexa routines e.g. when you trigger an activity. Something I've had for years at home is a dedicated Philips Hue lamp that indicates status of things like downstairs toilet occupied, bathroom upstairs occupied, garage door left open, etc, using dedicated colour-changes. I could also do this for EvoControl 'notifications', so you could see e.g. which activity is currently active based on the color of a Hue lamp (or some such). Useful, or a gimmick?
Comment
-
-
I saw in the logs that somebody who uses the Domoticz connector had an expired LetsEncrypt SSL cert. Amazon blocks such requests, but the skill was being silent about it and just showing the TCC data which it always has. I've now added an error message that will alert you if this happens and auto-disable your HGI connection until you resolve your cert issue. That will make the fallback to TCC more 'evident'.
Comment
-
-
Finally pulling the trigger on this - what hardware do people recommend?
I see Prime Day is coming up on 11/12 July, so expecting a discount on the Echo Show.
We do already have iPads, but I'm presuming the interface isn't accessible via those?
Comment
-
-
Echo Show 8 Gen 1 or 2 would be my recommendation, as it’s a big enough display to do justice to Evocontrol. They’ll be discounting the Gen2 soon as theres probably a Gen 3 coming out very soon.Originally posted by s.w.webb1 View PostFinally pulling the trigger on this - what hardware do people recommend?
I see Prime Day is coming up on 11/12 July, so expecting a discount on the Echo Show.
We do already have iPads, but I'm presuming the interface isn't accessible via those?
Comment
-



Comment