Skip to content

Instantly share code, notes, and snippets.

cgtobi cgtobi

  • Germany
View GitHub Profile
cgtobi /
Last active Dec 28, 2018
Getting HASS data science lab up and running on Ubuntu 18.10.


Starting with a fresh Ubuntu 18.10.

sudo apt update
sudo apt upgrade
sudo apt install python3-pip
sudo pip3 install jupyterlab
sudo pip3 install HASS-data-detective
sudo pip3 install homeassistant
View jupyterlab.service
Description=Jupyter Lab
ExecStart=/usr/local/bin/jupyter lab --port 8888 --ip=
cgtobi /
Last active Nov 22, 2018 — forked from gieljnssns/
Custom climate component for testing new Netatmo Energy API on HA +0.72
Support for Netatmo Smart Thermostat.
For more details about this platform, please refer to the documentation at
import logging
from datetime import timedelta
import voluptuous as vol
from homeassistant.const import TEMP_CELSIUS, ATTR_TEMPERATURE
cgtobi /
Created Oct 31, 2018
Modbus Climate
Platform for a Generic Modbus Thermostat.
This uses a setpoint and process
value within the controller, so both the current temperature register and the
target temperature register need to be configured.
For more details about this platform, please refer to the documentation at
cgtobi / rmv-card.js
Last active Aug 20, 2018
Custom card for lovelace ui
View rmv-card.js
class RmvCard extends HTMLElement {
set hass (hass) {
const entityId = this.config.entity
const state = hass.states[entityId]
const name = state.attributes['friendly_name']
if (!this.content) {
const card = document.createElement('ha-card')
card.header = name
this.content = document.createElement('div')
You can’t perform that action at this time.