Custom Components for Home-Assistant (http://www.home-assistant.io)
My device is RT301i, it is working with it500 thermostat, the idea is simple if you have a Salus Thermostat and you are able to login to salus-it500.com and control it from this page, this custom component should work.
It reads the Current Temperature, Set Temperature, Current HVAC Mode, Current Relay Mode.
**** This is not an official integration.
- Add the repository in HACS:
- Repository: matthewturner/salusfy
- Type: Integration
- Configure with config below through a text editor
- Restart Home Assistant
To use this component in your installation, add the following to your configuration.yaml file:
climate:
- platform: salusfy
username: "EMAIL"
password: "PASSWORD"
id: "DEVICE_ID"
Or add to a climate.yaml
file and reference that file in configuration.yaml:
climate: !include climate.yaml
- Login to
https://salus-it500.com
with email and password used in the mobile app (in my case RT301i) - Click on the device
- In the next page you will be able to see the device ID in the page URL
- Copy the device ID from the URL
Due to how chatty Home Assistant integrations are, the salus-it500.com server may start blocking your public IP address. This will prevent the gateway and mobile client from connecting. To resolve this, you can use the TemperatureClient
which:
- suppresses requests to Salus for reading the current temperature
- queries another Home Assistant entity for current temperature via the HA API
The effect of this is that the target temperature/mode values may be out of date if they have been updated outside of HA, but the main control features (target temperature, set mode etc) will still work.
To enable the TemperatureClient
, set the following settings in climate.yaml
:
climate:
- platform: salusfy
username: "EMAIL"
password: "PASSWORD"
id: "DEVICE_ID"
enable_temperature_client: True
host: "your-home-assistant-ip-address"
entity_id: "sensor.your-temperature-sensor"
access_token: "your-HA-access-token"
You can exercise the integration locally using the run.py
which calls the code on your local machine as if it was being run within Home Assistant. This can help debug any issues you may be having without waiting for multiple Home Assistant restarts.
To get going:
- Copy
config.sample.py
toconfig.py
- Replace the config (below) with the appropriate values for your installation
- Run
python ./run.py
Feel free to change the code to exercise different methods and configuration.
ENABLE_TEMPERATURE_CLIENT = True
HOST = "your-home-assistant-ip-address"
ENTITY_ID = "sensor.your-temperature-sensor"
ACCESS_TOKEN = "your-HA-access-token"