GithubHelp home page GithubHelp logo

morveus / controlmyspa-ha-mqtt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mikakoivisto/controlmyspa-ha-mqtt

0.0 1.0 0.0 93 KB

License: GNU General Public License v3.0

Shell 1.58% JavaScript 97.77% Dockerfile 0.65%

controlmyspa-ha-mqtt's Introduction

ControlMySpa Home Assistant AddOn via MQTT

This provides sensors, switches and climate to control your ControlMySpa controlled spa via MQTT in Home Assitant. It support MQTT autodiscovery to automatically register sensors, switches and climate control to adjust and monitor the state of your spa.

Building and testing locally

Create haconfig directory for homeassistant config directory

Build and run:

docker-compose up -d --build

Running with Home Assistant

Simples way is to run it using docker-compose.yml. The latest versio is available direct from Docker Hub so no need to even build it locally.

version: "3.4"
services:
  mqtt:
    image: eclipse-mosquitto
    volumes:
      - ./mosquitto/config.conf:/mosquitto/config/mosquitto.conf
  controlmyspa-ha-mqtt:
    image: mikakoivisto/controlmyspa-ha-mqtt:latest
    links:
      - mqtt
    env_file: 
      - docker.env

Configuration

Add following to docker.env file

MQTTHOST=mqtt
MQTTPORT=
MQTTUSER=
MQTTPASS=
CONTROLMYSPA_USER=
CONTROLMYSPA_PASS=
CONTROLMYSPA_CELSIUS=true
HASSTOPIC=homeassistant/status
DEBUG=app:info,*:error,spa:info
NODE_TLS_REJECT_UNAUTHORIZED=1

HASSTOPIC is important because mqtt discovery message is trigged by it. Default value should be fine. If you have TLS errors in connecting to controlmyspa server you may need to set NODE_TLS_REJECT_UNAUTHORIZED=0.

Known limitations

This currently supports jets with HIGH and OFF state. If you have components the current implementation does not support I'll gladly discuss on how to add that support.

Tested with Novitek spa with Balboa jets. Implementation is based on forked ControlMySpaJs library https://gitlab.com/VVlasy/controlmyspajs

controlmyspa-ha-mqtt's People

Contributors

mikakoivisto avatar jkrall avatar jskier21 avatar

Watchers

 avatar

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.