Some of my custom components for home-assistant (HA). (http://www.home-assistant.io)
- Bluetooth Speaker - Play TTS through your bluetooth speaker connected to HA.
- DALI Light - Control your DALI lights
- Developer - Get notifications of HA Pull-Requests
- Electricity - Current tariff of a given electricity operator
- HomeGW Climate - Use an RF433Mhz weather logger as a climate sensor
- HomeGW Weather - Use an RF433Mhz weather station
- HomeGW Cover - Control your covers with just two relay's
As a Home Assistant developer, I like to keep a close eye into whats new (Pull Requests - PR). This component uses github API to find PR related to the components currently in use in the running HA.
developer:
github_personal_token: "1231231e23442342312312312312"
You can get your own personal token here
I'm currently using a cheap 433MHz Wireless sensor to monitor several rooms in the house.
Attached to my RPi3 running HA I've got an Arduino working as a gateway. The code running in the Arduino is provided here.
The serial sensor receives a payload similar to:
{"dev":"digoo","id":8,"ch":3,"batt":1,"temp":20,"hum":56,"raw":"0x8a0c8f38"}
Using the serial sensor platform and a MQTT binary sensor I've created the homegw_climate custom component that looks like a thermostat, but cannot act upon the HVAC.
The platform supports filtering by channel (ch) which is the only parameter the device provides configuration for.
The weather station is by all means a copy of the climate platform (or the other way round). The same serial sensor is monitored, only the Wireless sensor is different.
sensor:
- platform: serial
serial_port: /dev/tty.USB0
baudrate: 115200
climate:
- platform: homegw_climate
name: quarto2
serial_sensor: sensor.serial_sensor
heating_sensor: binary_sensor.heating
channel: 2
weather:
- platform: homegw_weather
name: backyard
serial_sensor: sensor.serial_sensor
This file provides a decorator class used in the homegw_climate and homegw_weather platforms. It has a dependency in the filter sensor which actually implements the filters.
This is a cover platform on top of 2 relays exposed through MQTT. Each relays is closed for the duration in milliseconds publish to the control topic. delay_time indicates the time needed to go from 0% to 100% cover. Albeit the name, it is not related to the hardware supporting weather and climate components, for more information on this backend see home_mqtt.
- platform: home_mqtt
covers:
living_room:
relay_up: 1
relay_down: 2
delay_time: 17000
suite:
relay_up: 3
relay_down: 4
delay_time: 17000