Skip to content

Instantly share code, notes, and snippets.

@prairiesnpr
prairiesnpr / aeinarr.yaml
Created July 1, 2022 13:34
Automower Picture Entity Card
type: picture-elements
elements:
- camera_image: camera.aeinarr
entity: vacuum.aeinarr
style:
height: 100%
width: 100%
left: 50%
top: 50%
type: image
@prairiesnpr
prairiesnpr / automower_codes.csv
Last active June 13, 2022 00:20
Automower Quest / Error Codes
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 3 columns, instead of 4. in line 5.
Error Code,Real Name,Better Name
0,Unexpected error,reports bewildered and confused
1,Outside working area,ventured beyond the bounds of this realm
2,No loop signal,unable to maintain contact
3,Wrong loop signal,received forged orders
4,Loop sensor problem, front,failed to comprehend his orders
5,Loop sensor problem, rear,failed to comprehend his orders, dropped and stepped on them
6,Loop sensor problem, left,failed to comprehend his orders, reports deaf in left ear
7,Loop sensor problem, right,failed to comprehend his orders, reports deaf in right ear
8,Wrong PIN code,found evidence of lockpicking
@prairiesnpr
prairiesnpr / water_heater.ino
Created June 1, 2020 02:08
Water Heater Control
#include <SoftwareSerial.h>
#include <XBee.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <timer.h>
#include <EEPROM.h>
#include <EmonLib.h>
#define WATER_TEMP_BUS 7
#define SSR_PIN 5
@prairiesnpr
prairiesnpr / configuration.yaml
Created December 23, 2019 15:45
Parental Unit’s hassio configuration.yaml
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: 42.103205
longitude: -102.867023
"""Xiaomi Mija smoke detector quirks implementations."""
import logging
from zigpy.profiles import zha
from zigpy.zcl.clusters.general import (
AnalogInput,
Identify,
MultistateInput,
Ota,
PowerConfiguration,
@prairiesnpr
prairiesnpr / christmas_lights.ino
Last active December 10, 2022 18:22
Christmas Lights
#include <bitswap.h>
#include <chipsets.h>
#include <color.h>
#include <colorpalettes.h>
#include <colorutils.h>
#include <controller.h>
#include <cpp_compat.h>
#include <dmx.h>
#include <FastLED.h>
#include <fastled_config.h>
@prairiesnpr
prairiesnpr / wiebelo_bottom_floor.svg
Last active January 3, 2020 00:57
Floorplan SVGs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/bash
#Install Node Js
VERSION=v10.15.3
DISTRO=linux-armv6l
su -c "wget -O /tmp/node-v10.15.3-linux-armv6l.tar.xz https://nodejs.org/dist/v10.15.3/node-v10.15.3-linux-armv6l.tar.xz" pi
mkdir -p /usr/local/lib/nodejs
tar -xJvf /tmp/node-v10.15.3-linux-armv6l.tar.xz -C /usr/local/lib/nodejs
su -c "export PATH=/usr/local/lib/nodejs/node-$VERSION-$DISTRO/bin:$PATH" pi
{
"services": [
"mqtt",
"ble",
"shell"
],
"room": "garage",
"autoDiscovery": true,
"mqtt": {
"url": "mqtt://10.10.1.129:1883",
[Unit]
Description=Room Assistant service
[Service]
ExecStart=/usr/bin/npm start
WorkingDirectory=/home/pi/apps/room-assistant
Restart=always
RestartSec=10
User=pi