Skip to content

Instantly share code, notes, and snippets.

@davesarg
davesarg / evohomemqtt.py
Last active December 1, 2018 08:08
An Evohome to MQTT bridge
#! /usr/bin/env python
"""Uses the brilliant Evohome Client from Andrew Stock to query the status of
a Honeywell Evohome heat system and publishes the responses to an a MQTT broker.
Evohome Client available https://github.com/watchforstock/evohome-client
Run with your username and password
eventcmd = /home/pi/bin/evohomemqtt.py -u username -p password
"""
@davesarg
davesarg / alarmrec.py
Created June 26, 2015 21:21
An Asterisk alarm receiver to MQTT bridge written in Python.
#! /usr/bin/env python3
"""A simple processor for Asterisk Alarmreceiver events. It reads text files
written by the Asterisk alarm reciever, decodes them into a text string and then
publishes them to a MQTT broker.
Add the following command to alarmreceiver.conf
eventcmd = /home/pi/bin/alarmrec.py -v -e /tmp
"""