Skip to content

Instantly share code, notes, and snippets.

@osaether
Created December 8, 2018 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save osaether/7e28ffb0f00fa2919864d5e9c3e0e039 to your computer and use it in GitHub Desktop.
Save osaether/7e28ffb0f00fa2919864d5e9c3e0e039 to your computer and use it in GitHub Desktop.
Turn Venus GX Relay 2 off
#!/usr/bin/env python
from pymodbus.constants import Defaults
from pymodbus.client.sync import ModbusTcpClient as ModbusClient
Defaults.Timeout = 25
Defaults.Retries = 5
client = ModbusClient('ipaddress.of.venus', port='502')
client.write_register(807, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment