- TownGas Subscriber
- TownGas website credentials
- Download
custom_components/towngas
here - SSH or SFTP into your Home-Assistant server
- Locate
configuration.yaml
- Locate
custom_components
in the same directory. Create it if not exist - Put the downloaded
towngas
intocustom_components
- Restart Home-Assistant
- Setup
HACS
https://hacs.xyz/docs/setup/prerequisites - In
Home Assistant
, clickHACS
on 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-towngas
and chooseIntegration
, clickADD
- Find and click on
TownGas
in thecustom repositories
list - Click the
DOWNLOAD
button 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
towngas
entry will cause problems - For slower hardware device,
TIMEOUT
may happen. Increasetimeout
inconfiguration.yaml
- SSH
docker logs -f homeassistant
- Look for
TownGas
wordings
- Click on your username on UI
- Turn on
Advanced Mode
on the right - Go to
Add-ons
->Add-on store
- Install
SSH & Web Terminal
(the community version) - On
Info
tab ofSSH & Web Terminal
, turn offProtection mode
- On
Configuration
tab, enter apassword
, changesftp
totrue
- On
Configuration
tab, turn onshare_sessions
.Save
- On
Info
tab clickSTART
- SSH to
hassio@IP
with the configured password
- Ubuntu 22.04
- Home Assistant Container 2022.7.5
- Home Assistant Operating System 2022.8.7