This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title: Home | |
views: | |
- title: View 1 | |
cards: | |
- &card1 | |
type: entities | |
title: Card 1 | |
show_header_toggle: false | |
entities: | |
- light.bedroom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################################################################ | |
## @usage pkg-x node=nodejs node /my/node-script.js "arg1" "arg2" | |
## @usage pkg-x expect,telnet=busybox-extras /path/to/telnet.sh "uptime" | |
## @description Ensure Alpine packages are installed and then run a command | |
## @license MIT | |
## @author Dale Higgs <@dale3h> | |
################################################################ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http: | |
... | |
trusted_networks: | |
- 127.0.0.1 | |
rest_command: | |
ha_rest_api: | |
url: "http://localhost:8123/api/services/{{ service|replace('.', '/') }}" | |
method: post | |
content_type: application/json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
readonly BACKUP_DIR=/backup/speck | |
usage() { | |
echo "usage: $(basename "$0") addon_name" 2>&1 | |
exit 1 | |
} | |
addon_install() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################ | |
## Packages / Light Toggle with Brightness | |
## | |
## @description Toggle lights with a brightness based on time | |
## @component automation, binary_sensor, light | |
## @license MIT | |
## @author @mattlward, Dale Higgs <@dale3h> | |
################################################################ | |
automation: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################################################################ | |
## @usage clog folder_watcher=magenta,system_log=red | |
## @colors https://www.npmjs.com/package/colors#text-colors | |
## @license MIT | |
## @author Dale Higgs <@dale3h> | |
################################################################ | |
[[ -n "$(command -v apk)" ]] \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################################################################ | |
## @usage telnet-wrapper.sh "uptime" | |
## @usage telnet-wrapper.sh "ping -c1 10.0.0.2" | |
## @description Install Alpine packages and run telnet command | |
## @license MIT | |
## @author Dale Higgs <@dale3h> | |
################################################################ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################ | |
## Packages / Dimmer Test | |
## | |
## @description I2C based light with dimming | |
## @component input_number, light, shell_command | |
## @license MIT | |
## @author Dale Higgs <@dale3h> | |
################################################################ | |
################################################ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################ | |
## Packages / Boy's Room Brightness | |
## | |
## @description Time and button restricted light control | |
## @component input_datetime, input_number, light, script | |
## @license MIT | |
## @author Dale Higgs <@dale3h> | |
################################################################ | |
################################################ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# File: custom_components/automation/mqtt.py | |
""" | |
Offer MQTT listening automation rules. | |
For more details about this automation rule, please refer to the documentation | |
at https://home-assistant.io/docs/automation/trigger/#mqtt-trigger | |
""" | |
import asyncio | |
import json |