# ¶ Viessmann ViCare component

This integration uses the Viessmann ViCare integration for Home Assistant. Make sure the user has the Vitoconnect accessory installed and configured, and has created an account on the ViCare platform/app.

Next, follow the instructions here to add ViCare to Home Assistant.

# ¶ Integrating the control

1. Go to the device through the balena cloud. Open a terminal to the `homeassistant` service.
2. Type in `cd /config/automations` and enter. Next, type in `vi viessmann_heat_pump.yaml`and enter. A vi editor opens.
3. In another browser tab, open this source file. In the top right corner, click the icon that says `Copy file contents`.
4. In the vi editor, press the `i` key on your keyboard. In the bottom left corner, you will see an `I` appearing, meaning the vi editor is in `insert` mode.
5. Right-click in the vi editor and select `Paste`. This copies the content from the source file into the editor.
6. Press the `Esc` key on your keyboard a few times. Now type `:w` and press Enter. Next, type `:q` and enter. This saves (writes) and closes (quits) the file.
7. Type `cd /config` and enter. Type `rm -f input_number.yaml` and enter. Type `vi input_number.yaml` and enter. A new vi editor opens.
8. In another browser tab, open this other source file. Again, click the icon that says `Copy file contents`.
9. In the vi editor, press the `i` key on your keyboard. Right-click in the vi editor and select `Paste`. This copies the content from the second source file into the editor.
10. Press the `Esc` key on your keyboard a few times. Now type `:w` and press Enter. Next, type `:q` and enter. You return to the terminal. You can close this now.
11. In Home Assistant, navigate to `Developer Tools`. In the tab `YAML`, click on `Check configuration`. This should yield the message `Configuration will not prevent Home Assistant from starting!`.
12. In the box `YAML configuration reloading`, click on `INPUT NUMBERS`. This will reload the input numbers we just entered.
13. Next, click on `AUTOMATIONS`. This reloads the automations.
14. Navigate to `Settings`>`Automations & Scenes`. In the tab `Automations`, you should now see several automations with their name beginning with `Viessmann heat pump`.
15. The heat pump is now integrated.