Skip to content

Simple Telegram bot for querying InfiniSolar V 5KW hybrid inverter, works with inverterd from inverter-tools. Also implements smart AC charging program and battery level notifications

License

Notifications You must be signed in to change notification settings

gch1p/inverter-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inverter-bot

This is a Telegram bot for querying information from an InfiniSolar V family of hybrid solar inverters.

It supports querying general status, such as battery voltage or power usage, printing amounts of energy generated in the last days, dumping status or rated information and more.

It requires Python 3.6+ or so.

Requirements

Configuration

The bot accepts following parameters:

  • --token — your telegram bot token (required)
  • --users-whitelist — space-separated list of IDs of users who are allowed to use the bot (required)
  • --notify-to — space-separated list of IDs of users who need to be notified of monitoring programs events
  • --ac-current-range (default is (10, 30))
  • --inverterd-host (default is 127.0.0.1)
  • --inverterd-port (default is 8305)
  • --verbose

Launching with systemd

This is tested on Debian 10. Something might differ on other systems.

Create environment configuration file /etc/default/inverter-bot:

TOKEN="YOUR_TOKEN"
USERS="ID ID ID ..."
NOTIFY_USERS="ID ID ID..."
PARAMS="" # here you can pass other options such as --inverterd-host

Create systemd service file /etc/systemd/system/inverter-bot.service with the following content (changing stuff like paths):

[Unit]
Description=inverter bot
After=network.target

[Service]
EnvironmentFile=/etc/default/inverter-bot
User=user
Group=user
Restart=on-failure
ExecStart=python3 /home/user/inverter-bot/src/inverter-bot --token $TOKEN --users-whitelist $USERS --notify-to $NOTIFY_USERS $PARAMS
WorkingDirectory=/home/user/inverter-bot

[Install]
WantedBy=multi-user.target

Then enable and start the service:

systemctl enable inverter-bot
systemctl start inverter-bot

License

MIT

About

Simple Telegram bot for querying InfiniSolar V 5KW hybrid inverter, works with inverterd from inverter-tools. Also implements smart AC charging program and battery level notifications

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages