A simple Python library for controlling a Lutron RadioRA 2 or Homeworks OS system with a Main Repeater/controller.
You can get the code from https://github.com/thecynic/pylutron
import pylutron
rra2 = pylutron.Lutron("192.168.0.x", "lutron", "integration")
rra2.load_xml_db()
rra2.connect()
This code is released under the MIT license.