vrkttr / homebridge-vicare

Homebridge ViCare Plugin
https://www.vrkttr.de
MIT License
2 stars 0 forks source link

Homebridge ViCare Plugin

The Homebridge ViCare Plugin allows you to integrate your Viessmann ViCare heating system with Homebridge, enabling control and monitoring through Apple's HomeKit. This plugin provides real-time temperature readings, control over target temperatures, and access to various sensors and states of your heating system.

Features

Enhance your smart home setup by seamlessly connecting your Viessmann ViCare system with HomeKit.

API Key

To use this plugin, you will need to create an API key by following these steps:

  1. Create an Account: Sign up for an account on the Viessmann Developer Portal.

  2. Create a new client:

    • Log in to the Viessmann Developer Portal.
    • Navigate to "Clients" and create a new client.
    • Wait a few minutes for the client to be registered.
  3. Redirect URI Configuration:

    • Set the Redirect URI in the Developer Portal to http://YOUR_LOCAL_IP:4200. Replace YOUR_LOCAL_IP with the local IP address of the machine running Homebridge.
  4. Update your Homebridge config.json:

    • Copy the client_id from your registered client in the Developer Portal.
    • Update your config.json with the client_id:

Config

{
    "platforms": [
        {
            "platform": "ViCareThermostatPlatform",
            "name": "ViCareThermostat",
            "clientId": "YOUR CLIENT ID",
            "apiEndpoint": "https://api.viessmann.com/iot/v1",
            "devices": [
                {
                    "name": "Supply temperature",
                    "feature": "heating.circuits.0.sensors.temperature.supply",
                    "deviceId": "0"
                },
                {
                    "name": "Main DHW temperature",
                    "feature": "heating.dhw.temperature.main",
                    "deviceId": "0"
                }
            ]
        }
    ]
}

Authentication Process

The plugin will handle the OAuth2 authentication process automatically. Follow these steps:

  1. Start Homebridge. The plugin will log a URL for authentication.
  2. Open the URL in your browser. You will be prompted to log in to your Viessmann account and authorize the application.
  3. After successful login, you will be redirected to the Redirect URI you configured. The plugin will automatically capture the authorization code and exchange it for an access token.

Available Features

Heating Circuits

Domestic Hot Water (DHW)

Burners

General Boiler Data

Gas Consumption

Smart Components

Solar

Heat Pump

Ventilation

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT