Skip to content

Instantly share code, notes, and snippets.

View UngluedChalice's full-sized avatar

UngluedChalice

View GitHub Profile
@UngluedChalice
UngluedChalice / gist:844911480248bd2fa52057bec0d8a757
Created February 2, 2022 01:04
Home Assistant Error Logs with HTD integration
2022-01-30 12:01:03 ERROR (SyncWorker_4) [homeassistant.components.command_line] Command failed: python3 /config/HTD/htd-lync12.py query zone 2
2022-01-30 12:01:03 WARNING (SyncWorker_4) [homeassistant.components.command_line.sensor] Empty reply found when expecting JSON data
2022-01-30 12:01:03 ERROR (SyncWorker_8) [homeassistant.components.command_line] Command failed: python3 /config/HTD/htd-lync12.py query zone 12
2022-01-30 12:01:03 WARNING (SyncWorker_8) [homeassistant.components.command_line.sensor] Empty reply found when expecting JSON data
2022-01-30 12:01:03 ERROR (SyncWorker_3) [homeassistant.components.command_line] Command failed: python3 /config/HTD/htd-lync12.py query zone 10
2022-01-30 12:01:03 WARNING (SyncWorker_3) [homeassistant.components.command_line.sensor] Empty reply found when expecting JSON data
2022-01-30 12:01:03 ERROR (SyncWorker_13) [homeassistant.components.command_line] Command failed: python3 /config/HTD/htd-lync12.py query zone 7
2022-01-30 12:01:03 WARNING (SyncWorker_13) [h
@UngluedChalice
UngluedChalice / gist:0f2b535252d55d88c7bfef6b09055529
Created January 22, 2022 22:23
node red flow for shairport-sync MQTT
[
{
"id": "e801d3719bde9110",
"type": "mqtt in",
"z": "a6bfc374f6682a47",
"name": "",
"topic": "AirPlay/play_end",
"qos": "2",
"datatype": "auto",
"broker": "57702ac222889e79",
@UngluedChalice
UngluedChalice / gist:3466b816e0f1e15332791838c1020479
Created January 18, 2022 18:44
HA event state node substring filter
[
{
"id": "5ccf8e902ac9694b",
"type": "server-state-changed",
"z": "a6bfc374f6682a47",
"name": "",
"server": "da064c2a.9cfc8",
"version": 3,
"exposeToHomeAssistant": false,
"haConfig": [
@UngluedChalice
UngluedChalice / basement_door_alert.JSON
Created January 16, 2022 22:03
Example Node Red Door Alert Notification for Home Assistant
[
{
"id": "5c55b54cc1a56a0a",
"type": "server-state-changed",
"z": "9a9fa23ca7129bed",
"name": "Basement Door Open",
"server": "da064c2a.9cfc8",
"version": 3,
"exposeToHomeAssistant": false,
"haConfig": [
@UngluedChalice
UngluedChalice / gist:b957928f7585fab62a5d59a800d6f9cd
Created January 15, 2022 03:03
Home Assistant Script to Toggle Lock
alias: Toggle Front Door Lock
sequence:
- choose:
- conditions:
- condition: state
entity_id: lock.front_door_lock
state: locked
sequence:
- service: lock.unlock
target:
@UngluedChalice
UngluedChalice / gist:c2dbeb3312c18195b32531af60bee40d
Last active December 31, 2021 16:48
Home Assistant & Node-red actionable notificaiton
#Home Asssistant Automation created using the GUI
alias: Turn off Speakers (Alert Action)
description: ''
trigger:
- platform: event
event_type: ''
id: mobile_app_notification_action
event_data:
action: SPEAKERS_OFF
condition: []
@UngluedChalice
UngluedChalice / climate_state_attributes
Created December 26, 2021 23:42
State attributes with HomeKit integration for ecobee
hvac_modes:
- 'off'
- heat
- cool
- heat_cool
min_temp: 45
max_temp: 92
min_humidity: 20
max_humidity: 50
current_temperature: 68
@UngluedChalice
UngluedChalice / gist:d89a2fd1ee50e4fa260a8f1a38f9460c
Created December 26, 2021 21:36
Attempt at ecobee set preset mode away script
service: climate.set_preset_mode
target:
entity_id:
- climate.1st_floor
- climate.2nd_floor
- climate.3rd_floor
data:
preset_mode: "away"
@UngluedChalice
UngluedChalice / ecobeebutton.txt
Last active December 26, 2021 21:21
Attempt at ecobee set preset card in Home Assistant
type: button
tap_action:
action: call service
service: climate.set_preset_mode
data:
entity_id: climate.1st_floor
preset_mode: 'away'