Skip to content

Instantly share code, notes, and snippets.

@roblandry
roblandry / dsc11.json
Last active February 28, 2023 21:41
DSC11 Troubleshooting
{
"manufacturer": "AEON Labs",
"manufacturerId": "0x0086",
"label": "DSC11",
"description": "Smart Strip",
"devices": [
{
"productType": "0x0003",
"productId": "0x000b",
"zwaveAllianceId": 1015
{
"home_assistant": {
"installation_type": "Home Assistant OS",
"version": "2023.1.7",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.10.7",
"docker": true,
"arch": "x86_64",
2023-01-30 16:32:59.703 DEBUG (MainThread) [homeassistant.components.zha.api] Reconfiguring node with ieee_address: 00:17:88:01:02:05:64:05
2023-01-30 16:32:59.703 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x1BF3](LTW004): started configuration
2023-01-30 16:32:59.703 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1BF3:ZDO](LTW004): 'async_configure' stage succeeded
2023-01-30 16:32:59.704 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x1BF3:11:0x0006]: Performing cluster binding
2023-01-30 16:32:59.706 DEBUG (MainThread) [zigpy_znp.zigbee.application] Sending packet ZigbeePacket(src=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x0000), src_ep=0, dst=AddrModeAddress(addr_mode=<AddrMode.NWK: 2>, address=0x1BF3), dst_ep=0, source_route=None, extended_timeout=False, tsn=41, profile_id=0, cluster_id=<ZDOCmd.Bind_req: 0x0021>, data=Serialized[b')\x05d\x05\x02\x01\x88\x17\x00\x0b\x06\x00\x03>#\x13\x0b\x00o\r\x00\x01'], tx_options=<Transmi
@roblandry
roblandry / frigate_notification.yaml
Last active January 7, 2023 17:45 — forked from hunterjm/frigate_notification.yaml
Frigate Notification Blueprint
blueprint:
name: Frigate Notification Android TV
description: |
## Frigate Mobile App Notification
This blueprint will send a notification to your device when a Frigate event for the selected camera is fired. The notification will initially include the thumbnail of the detection, but will update to include actionable notifications allowing you to view the saved clip/snapshot when available, or silence the notification for a configurable amount of time.
With this blueprint, you may send the notification to multiple devices by leaving "Device" blank and instead use a [notification group][1].
### Required entities:
@roblandry
roblandry / devices_media_players.yaml
Last active June 21, 2020 22:12
Fix for media player in dwains-theme
# remove this: location: dwains-theme/views/main/devices/media_players.yaml
# dwains_theme
#House all media players
- title: {{ _d_t_trans.media_player.title_plural }}
path: devices_media_players
panel: true
cards:
- type: custom:mod-card
style: |
@roblandry
roblandry / config.yaml
Last active June 21, 2020 20:07
Printer addon
- name: Printer
icon: fas:print
path: 'dwains-theme/addons/rooms/the_room/printer/page.yaml'
button_path: 'dwains-theme/addons/rooms/the_room/printer/button.yaml'
data:
entity: sensor.hermes_status
status: sensor.hermes_status
printer: sensor.hermes_printer
scanner: sensor.hermes_scanner
ink_black: sensor.hermes_ink_black
{%- set iH = 360 -%}
{%- set iS = 100 -%}
{# Convert from hue/saturation to RGB #}
{%- set iV = 100 -%}
{# Hue is scaled 0-360 #}
{# Sat is scaled 0-100 #}
{# Val is scaled 0-100 #}
{%- set h = iH / 360 -%}
{%- set s = iS /100 -%}
{%- set v = iV / 100 -%}
light:
- platform: template
lights:
zha_group_living_room:
# light.living_room_hue_1, light.living_room_hue_1, light.living_room_hue_1, light.living_room_hue_1
friendly_name: "Living Room Lights"
# value_template: >-
# {% if states('light.living_room_hue_1') == 'on' or
# states('light.living_room_hue_2') == 'on' or
@roblandry
roblandry / docker.log.sh
Created January 25, 2020 22:38
Fixing docker on dl4100
root@WDMyCloudDL4100 _docker # docker run -d --name portainer -p 9000:9000 --restart always -v /var/run/docker.sock:/var/run/docker.sock -v /shares/Dockers/portainer:/data portainer/portainer
Unable to find image 'portainer/portainer:latest' locally
latest: Pulling from portainer/portainer
d1e017099d17: Pulling fs layer
cc61cd4105c3: Pulling fs layer
docker: open /mnt/HD/HD_a2/Nas_Prog/_docker/tmp/GetImageBlob184305216: no such file or directory.
See 'docker run --help'.
root@WDMyCloudDL4100 _docker # mkdir tmp
root@WDMyCloudDL4100 _docker # docker run -d --name portainer -p 9000:9000 --restart always -v /var/run/docker.sock:/var/run/docker.sock -v /shares/Dockers/portainer:/data portainer/portainer
Unable to find image 'portainer/portainer:latest' locally
@roblandry
roblandry / docker.log
Last active January 25, 2020 18:50
DL4100 docker log
# cat /var/lib/docker/docker.log
time="2020-01-25T10:35:56.131054205-08:00" level=info msg="Starting up"
time="2020-01-25T10:35:56.144466973-08:00" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not found"
time="2020-01-25T10:35:56.144698585-08:00" level=debug msg="Listener created for HTTP on unix (/var/run/docker.sock)"
time="2020-01-25T10:35:56.144756053-08:00" level=debug msg="Containerd not running, starting daemon managed containerd"
time="2020-01-25T10:35:56.145972050-08:00" level=info msg="libcontainerd: started new containerd process" pid=21182
time="2020-01-25T10:35:56.146095482-08:00" level=info msg="parsed scheme: \"unix\"" module=grpc
time="2020-01-25T10:35:56.146135154-08:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
time="2020-01-25T10:35:56.146212830-08:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 <nil>}] <nil>}" module=grpc
time="2020-0