- TownGas Subscriber
- TownGas website credentials
- Download
custom_components/towngashere - SSH or SFTP into your Home-Assistant server
- Locate
configuration.yaml - Locate
custom_componentsin the same directory. Create it if not exist - Put the downloaded
towngasintocustom_components - Restart Home-Assistant
- Setup
HACShttps://hacs.xyz/docs/setup/prerequisites - In
Home Assistant, clickHACSon the menu on the left - Select
integrations - Click the menu button in the top right hand corner
- Choose
custom repositories - Enter
https://github.com/thematrixdev/home-assistant-towngasand chooseIntegration, clickADD - Find and click on
TownGasin thecustom repositorieslist - Click the
DOWNLOADbutton in the bottom right hand corner - Restart Home-Assistant
- Add these in
configuration.yaml
sensor:
- platform: towngas
name: 'TownGas' # whatever name you like
username: '' # TownGas web site username
password: '' # TownGas web site password
timeout: 30 # connection timeout in second
- Restart Home-Assistant
- Single entity only. More than one
towngasentry will cause problems - For slower hardware device,
TIMEOUTmay happen. Increasetimeoutinconfiguration.yaml
- SSH
docker logs -f homeassistant- Look for
TownGaswordings
- Click on your username on UI
- Turn on
Advanced Modeon the right - Go to
Add-ons->Add-on store - Install
SSH & Web Terminal(the community version) - On
Infotab ofSSH & Web Terminal, turn offProtection mode - On
Configurationtab, enter apassword, changesftptotrue - On
Configurationtab, turn onshare_sessions.Save - On
Infotab clickSTART - SSH to
hassio@IPwith the configured password
- Ubuntu 22.04
- Home Assistant Container 2022.7.5
- Home Assistant Operating System 2022.8.7