Skip to content

Instantly share code, notes, and snippets.

View JerryWorkman's full-sized avatar

Jerry Workman JerryWorkman

View GitHub Profile
@JerryWorkman
JerryWorkman / building-home-assistant-js-websocket.md
Last active June 10, 2022 17:22
Home Assistant Dashboard using WebSocket API

Building home-assistant-js-websocket

Easy way:

Use this CDN (from the author @balloob)

<script src='https://cdn.jsdelivr.net/npm/home-assistant-js-websocket@1.1.2/dist/haws.umd.min.js'></script>

Do not use:

@JerryWorkman
JerryWorkman / google-guages.html
Last active March 2, 2018 02:38
html / css / javascript code
<!DOCTYPE html>
<html lang="en">
<head>
<title>Home Assistant Google Guages using WebSockets</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<meta name="description" content="A web interface for Home Assistant with WebSocket and Google Guages">
<script src="https://www.gstatic.com/charts/loader.js"></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.min.js'></script>
<script src='https://unpkg.com/home-assistant-js-websocket@0.4.1/dist/haws.umd.js'></script>

My Home Assistant projects

Google Gauges for Home Assistant using HAWS WebSocket - See commants in Gist.

Combines a tilt sensor and a relay switch to control a garage door opener or motorized gate. When this switch is turned on it will toggle the relay to

layout title description date sidebar comments sharing footer
page
Ambient Weather Station Sensors
Monitor Ambient Weather station sensors with Home Assistant
2017-01-09 22:00
true
false
true
true
layout title description date sidebar comments sharing footer
page
Tilt Cover
Tilt Cover for Home Assistant
2016-12-20 22:00
true
false
true
true
layout title description date sidebar comments sharing footer
page
Countdown Timer
Countdown Time for Home Assistant
2016-12-20 22:00
true
false
true
true
"""
Countdown Timer component for Home Assistant https://home-assistant.io/
Documentation: https://gist.github.com/JerryWorkman/d669d2da69d5861af227a4812b0928ba
Jerry Workman <jerry.workman@gmail.com>
Place this file in custom_components/sensor/countdown_timer.py
Combines one or more binary_sensors (typically PIR sensors)
and a switch to provide a switch that automatically
turns off after a specified delay time.
"""
Works for me but needs more testing
Motivation: mqtt provides a means to communicate with other IOT systems. This component provides the flixability
to publish mqtt data either as a simple value or as a json payload depending on your needs. In addition you can
publish only the events that you wish.
Custom Component for home assistant that sends event data to an MQTT broker.
Based on graphite.py
"""
ambient.py
Custom component for Home Assistant that scrapes the Ambient Weather Station page, collects data then creates sensors and events
Documentation: https://gist.github.com/JerryWorkman/6222d0a7b260a73323b884cf8d3cb8ea
Ambient Weather WS-1400-IP OBSERVER
http://www.ambientweather.com/amws1400ip.html
"""
Tilt switch.
Documentation: https://gist.github.com/JerryWorkman/f301c2f5b2e2e2741995280d32858da0#file-cover-tilt-md
Jerry Workman <jerry.workman@gmail.com>
License: MIT
5 Nov 2016
Last Revised: 15 Dec 2016