Git Product home page Git Product logo

alexa-salus-it500's Introduction

!!! 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

Node.js CI Maintainability Reviewed by Hound

SmartHeat

An Alexa App (skill) to control older heating systems which are not integrated with Alexa.

Supported Devices

Salus IT500

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.

Heatmiser

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.

Summary

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]

Auto-switch off/Hold time

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

Deploying with CloudFormation (in development)

  1. Use the deploy-stack.sh to deploy the lambda, dynamodb tables etc

  2. Enter your lambda ARN in your SmartHome Skill here

Setting up the SmartHome API Skill

  1. Create a lambda and deploy the code using the package/publish scripts

  2. Create a topic to publish to and subscribe the lambda to it

  3. Declare your username/password and the default temperatures for on/off using environment variables

  4. Optionally create the step function and dynamodb table for hold times/auto-switch off

Setting Up the Legacy Skill

  1. Setup an alexa-app-server

  2. Check out this project

  3. Add this module to alexa-app-server

  4. Launch server with your personal credentials as environment variables (eg USERNAME=xyz PASSWORD=abc)

  5. Test on http://localhost:8080/alexa/boiler

  6. Create a new skill in https://developer.amazon.com

  7. Create a lambda and deploy the code using the package/publish scripts

  8. Declare your username/password and the default temperatures for on/off using environment variables

  9. Point to your SSL'd external URL or host in AWS Lambda

  10. Optionally create the step function and dynamodb table for hold times/auto-switch off

alexa-salus-it500's People

Contributors

dependabot[bot] avatar matthewturner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

alexa-salus-it500's Issues

Installation - Please help

Hi Matthew,

Have decided to try to install your Alexa app for the Salus IT500 but have encountered a bit of a road block..

Probably showing my ignorance in this area but here goes .......

I have installed the Alexa server (on my QNAP Linux NAS) which seemed to go as expected but I am now struggling to understand how to progress with installing your project.

I have copied your installation steps below along with my questions.

Check out this project (Do I use the 'git install' command to do this?)

Add this module to alexa-app-server (How do I do this? - is there a link you could provide?)

Launch server with your personal credentials as environment variables (eg USERNAME=xyz PASSWORD=abc) (Is there a command string I should use for this?_)

Test on http://localhost:8080/alexa/boiler (This I understand )

Create a new skill in https://developer.amazon.com (I have looked at the Amazon web site and how to do this is unclear)

Declare your username/password and the default temperatures for on/off using environment variables (Please add details of how I would do this)

Thank you for any help you can give me in this matter.

Best regards,

Tony

Controlling Salus it500 from Google Home

Is anyone interested in working on a way to control the Salus it500 from the Google Home devices?

If you don't have a Google Home device then perhaps we could use the Google Assistant app for testing purposes.

I was thinking of perhaps using the IFTTT platform with Webhooks but there may be more elegant solutions.

Please let me know if you are interested in exploring this possibility.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.