Skip to content

Instantly share code, notes, and snippets.

View fredrikbaberg's full-sized avatar

Fredrik Baberg fredrikbaberg

  • Stockholm, Sweden
View GitHub Profile
@fredrikbaberg
fredrikbaberg / gist:0227af93a5382bde277bc663394f6de9
Last active September 2, 2020 08:32
OctoPrint without AppArmor, with GPIO support (NOTE: UNSECURE)
{
"name": "OctoPrint GPIO",
"version": "0.3.6",
"slug": "octoprint-gpio",
"description": "OctoPrint add-on for Home Assistant",
"arch": ["armv7", "amd64", "armhf", "aarch64", "i386"],
"url": "https://github.com/fredrikbaberg/hassio-addons",
"startup": "application",
"webui": "http://[HOST]:[PORT:5000]",
"boot": "manual",
@fredrikbaberg
fredrikbaberg / vertical-horizontal-stack.yaml
Created August 6, 2019 09:32
Lovelace vertical-horizontal stack
type: vertical-stack
cards:
- type: markdown
content: |
# Status för lådbilen
- type: picture
image: 'https://cdn.pixabay.com/photo/2014/04/02/10/22/car-303614_960_720.png'
- type: horizontal-stack
cards:
- type: entities
@fredrikbaberg
fredrikbaberg / xiaomi.yaml
Last active April 28, 2019 07:06
Xiaomi Air Purifier in Home-Assistant
# Xiaomi Air Purifier 2s
fan:
- platform: xiaomi_miio
host: !secret air_purifier_ip
token: !secret air_purifier_token
model: zhimi.airpurifier.mc1
name: bedroom_air_purifier
# Extract values for logging purposes
sensor: