-
Notifications
You must be signed in to change notification settings - Fork 0
/
index2.html
127 lines (116 loc) · 6.82 KB
/
index2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>lab3 | Page 2</title>
<link rel="shortcut icon" type="image/png" href="/favicon.png">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<link rel="stylesheet" href="/theme/css/main.css" type="text/css" />
<link rel="stylesheet" href="/theme/css/pygments.css" type="text/css" />
<meta name="generator" content="Pelican" />
<meta name="description" content="" />
<meta name="author" content="@[email protected]" />
</head>
<body>
<header>
<nav style="overflow: hidden;">
<ul>
<li><a href="/">Home</a></li>
</ul>
</nav>
<div class="header_box" style="height: 50px">
<h1><a href="/">
<image src='' class="avatar" width="50px" /><span class="site_title">lab3</span>
</a></h1></div>
</div>
</header>
<div id="wrapper">
<div id="content"> <h4 class="date">Dec 24, 2022</h4>
<article class="post">
<h2 class="title">
<a href="/home-automation-notes.html" rel="bookmark" title="Permanent Link to "Home Automation Notes"">Home Automation Notes</a>
</h2>
<p>A few notes to share on home automation projects I've implemented and integrated with Home Assistant. I hope any of this helps!</p>
<table>
<thead>
<tr>
<th>Topic</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td>Home Assistant (HA)</td>
<td>I keep current on the latest HA Docker image running on a Debian 12 AMD64 server (old i7 Lenovo desktop). The majority of my integrations rely on Z-Wave devices and MQTT, and the HA MQTT integration.</td>
</tr>
<tr>
<td>Z-Wave JS</td>
<td>I run in Docker attached to a AEON Labs Z-Stick Gen5.</td>
</tr>
<tr>
<td>HA Automations</td>
<td>Automations are split between HA automation scripts and scenes, and custom code including a replacement for HA's MQTT Statestream: <a href="https://github.com/idatum/hass2mqtt">hass2mqtt</a>. Ultimately I have only a few HA integrations which minimizes risks during upgrades.<br/>With most DIY integrations using MQTT, there's also little chance of any breaking changes. This allows me to implement my own logic on state changes using various custom MQTT clients. Most run on Docker along with HA.</td>
</tr>
<tr>
<td>MQTT</td>
<td>Mosquitto</td>
</tr>
<tr>
<td>HA App</td>
<td>Android</td>
</tr>
<tr>
<td>Media</td>
<td>VLC player via Telnet connected to HA.</td>
</tr>
<tr>
<td>Bluetooth</td>
<td>I use a simple Python daemon running on a couple Raspberry Pi 3 devices to track known Bluetooth MAC addresses and publish to MQTT.</td>
</tr>
<tr>
<td>BLE</td>
<td>A simple Python MQTT client running on a couple Raspberry Pi 3 devices uses <a href="https://github.com/Home-Is-Where-You-Hang-Your-Hack/sensor.goveetemp_bt_hci">sensor.goveetemp_bt_hci</a> and <a href="https://github.com/TheCellule/python-bleson">python-bleson projects</a>. These modules have proven solid. The only Bluetooth sensors I have are Govee H5074001 for temperature/humidity (e.g. for monitoring a humidor).</td>
</tr>
<tr>
<td>ZigBee</td>
<td>The majority of my DIY sensor projects use <a href="https://www.digi.com/products/embedded-systems/digi-xbee/rf-modules/2-4-ghz-rf-modules/xbee-zigbee">Digi XBee Zigbee Modules</a>. The repo <a href="https://github.com/idatum/xbeesharp">xbeesharp</a> has a .NET 7 C# implementation handling subscribing and publishing to MQTT and translating to and from XBee packets. I then define MQTT sensors in HA.<br/>A specific application of an XBee3 module is <a href="https://github.com/idatum/xbee3-laundry">xbee3-laundry</a>. Using the module's Micropython, it monitors my home's laundry by monitoring the electrical current usage on both washer and dryer circuits.<br/>I also use an XBee for my DIY garage door opener: An XBee device and a 3.3VDC relay along with a modified LiftMaster 883LM Security+ 2.0 MyQ push button replaces the MyQ cloud solution. I found MyQ to generally be awful 😟 I use a Z-Wave door sensor to detect the state of the garage door. There are several threads on HA Community Forum on how to replace MyQ.<br/>Using xbeesharp for these projects allows me to integrate with HA via MQTT publish service.</td>
</tr>
<tr>
<td>SDR</td>
<td><a href="https://github.com/idatum/labrfcat">labrfcat</a> has an rflib Python client to control a Minka Aire fan using a <a href="https://greatscottgadgets.com/yardstickone/">YARD Stick One</a>. I created a simple MQTT client daemon that sends commands from HA using MQTT.<br/>I use a few 433 MHz battery powered sensors. These are convenient for deploying to different locations. I run a simple <a href="https://github.com/merbanan/rtl_433">rtl_433</a> daemon on a Raspberry Pi 3 that publishes to MQTT. I use a <a href="https://www.nooelec.com/store/sdr/nesdr-smart-sdr.html">Nooelec RTL-SDR adapter</a> and a 433mhz antenna. Sensors are integrated into HA using MQTT via rtl_433.</td>
</tr>
<tr>
<td>Device tracking</td>
<td><a href="https://github.com/idatum/hass2mqtt">unifi_tracker</a> polls each of my Ubiquity Unifi APs and publishes MAC client addresses to MQTT. I define MQTT device_tracker entities to integrate with HA. In my experience this solution has been more reliable than HA's. Plus I prefer to use SSH keys to connect to the APs instead of having to store passwords. The HA MQTT device_tracker entities I defined are used for presence detection.</td>
</tr>
<tr>
<td>Notifications</td>
<td>I use <a href="https://github.com/AsamK/signal-cli">Signal CLI</a> and a Twilio client that publish/subscribe to MQTT. This allows a simple integration with HA for receiving status or sending commands to and from my phone when I'm away without having to keep a remote connection to my HA server.</td>
</tr>
<tr>
<td>Remote access to HA</td>
<td>From my Android phone using Juice SSH client, I do an SSH tunnel (key auth) from HA's port to my phone's localhost. This is a simple and secure way to access HA remotely on-demand.</td>
</tr>
</tbody>
</table>
<div class="clear"></div>
<div class="info">
· <a href="/category/home-automation.html" rel="tag">Home automation</a>
</div>
</article>
<div class="clear"></div>
<div class="pages">
<a href="/index.html" class="prev_page">← Previous</a>
<span>Page 2 of 2</span>
</div>
<div class="clear"></div>
<footer>
<p>
<a rel="me" href="https://mastodon.sdf.org/@joelp">© 2023 mastodon.sdf.org/@joelp</a>
</footer>
</div>
<div class="clear"></div>
</div>
</body>
</html>