!!! While this continues to work, it is no longer maintained and has been replaced by:
https://github.com/matthewturner/smartheat-alexa-skill
https://github.com/matthewturner/smartheat-alexa-smarthome-skill
An Alexa App (skill) to control older heating systems which are not integrated with Alexa.
Please note that this is really ugly because Salus don't provide any kind of API. This skill logs onto their web app using your username and password and sets the temperature as you would in their mobile (web) app. For that reason, you need to embed your login details into web app and host this skill yourself! Do not offer this skill in the Alexa store for other people because it's not secure to collect other people's usernames and passwords.
Until Salus provide their own Alexa skill or a federated authentication method then this is the only option, unfortunately.
Please note that this is also pretty ugly because Heatmiser does not provide an appropriate API. This skill requires an open port to connect to on your router.
Until Heatmiser provide their own Alexa skill or a federated authentication method then this is the only option, unfortunately.
This app is a Node.js module, written using the excellent alexa-app module framework by Matt Kruse github
This skill has 8 intents :-
- Alexa, ask boiler the temperature
- Alexa, ask boiler to set higher
- Alexa, ask boiler to set lower
- Alexa, ask boiler to set to x degrees
- Alexa, ask boiler to turn [on/off] [for x hours]
- Alexa, ask boiler to set the default [on/off] temperature to x degrees
- Alexa, ask boiler to set the default duration to [x hours]
- Alexa, ask boiler the current defaults
- Alexa, ask boiler to turn the water [on/off] [for x hours]
Some thermostats have a hold time which keeps the thermostat on for the specified time and automatically switches it off when the hold time has elapsed.
The last intent can take an optional duration which can be any valid time statement (eg 20 minutes or 3 hours).
- You will need to prevent Salus from overriding this by setting the off times to a late time (eg 10pm)
- It is optional and requires a hosted lambda, step function and dynamodb table
-
Use the deploy-stack.sh to deploy the lambda, dynamodb tables etc
-
Enter your lambda ARN in your SmartHome Skill here
-
Create a lambda and deploy the code using the package/publish scripts
-
Create a topic to publish to and subscribe the lambda to it
-
Declare your username/password and the default temperatures for on/off using environment variables
-
Optionally create the step function and dynamodb table for hold times/auto-switch off
-
Setup an alexa-app-server
-
Check out this project
-
Add this module to alexa-app-server
-
Launch server with your personal credentials as environment variables (eg USERNAME=xyz PASSWORD=abc)
-
Create a new skill in https://developer.amazon.com
-
Create a lambda and deploy the code using the package/publish scripts
-
Declare your username/password and the default temperatures for on/off using environment variables
-
Point to your SSL'd external URL or host in AWS Lambda
-
Optionally create the step function and dynamodb table for hold times/auto-switch off