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
blueprint: | |
name: Vannlekasje | |
description: Varsel for vannlekasje | |
domain: automation | |
input: | |
water_sensor: | |
name: Lekasje sensor | |
description: Vannlekasje sensor | |
selector: | |
entity: |
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
blueprint: | |
name: Brannalarm | |
description: Brannalarm varsel | |
domain: automation | |
input: | |
smoke_sensor: | |
name: Smoke sensor | |
description: Smoke alert sensor | |
selector: | |
entity: |
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
[ | |
{"component": "main", "capability":"samsungce.ovenMode", "command":"setOvenMode", "arguments": [ "BottomHeatPluseConvection" ]}, | |
{"component": "main", "capability":"ovenSetpoint", "command":"setOvenSetpoint", "arguments": [ 225 ]}, | |
{"component": "main", "capability":"samsungce.ovenOperatingState", "command":"setOperationTime", "arguments": [ "00:30:00" ]}, | |
{"component": "main", "capability":"samsungce.ovenOperatingState", "command":"start", "arguments": null }, | |
{"component": "main", "capability":"ovenOperatingState", "command":"start", "arguments": ["Conventional"] } | |
] |
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/sh | |
for usb_ctrl in $(find /sys/bus/usb/devices/usb* -maxdepth 0 -type l); do | |
pci_path="$(dirname "$(realpath "${usb_ctrl}")")"; | |
echo "Bus $(cat "${usb_ctrl}/busnum") --> $(basename $pci_path) (IOMMU group $(basename $(realpath $pci_path/iommu_group)))"; | |
lsusb -s "$(cat "${usb_ctrl}/busnum"):"; | |
echo; done |
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/sh | |
shopt -s nullglob | |
for g in `find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V`; do | |
echo "IOMMU Group ${g##*/}:" | |
for d in $g/devices/*; do | |
echo "\t$(lspci -nns ${d##*/})" | |
done; | |
done; |
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
@state_trigger("binary_sensor.garderobedor_r_contact == 'on'") | |
@state_trigger("binary_sensor.garderobedor_l_contact == 'on'") | |
def contact_opened(): | |
# Slå på lyset uansett lysstatus | |
service.call('light', 'turn_on', entity_id='light.garderobe') | |
@state_trigger("light.garderobe == 'on'") | |
@state_trigger("binary_sensor.garderobedor_r_contact == 'off'") |
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 | |
cat > docker-compose.yaml <<EOL | |
version: '3.2' | |
services: | |
homebridge: | |
hostname: homebridge | |
container_name: homebridge | |
image: oznu/homebridge:latest |
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 | |
echo " | |
_ _ ____ __ __ ______ _____ _____ _____ _____ _______ _ _ _______ | |
| | | |/ __ \| \/ | ____| /\ / ____/ ____|_ _|/ ____|__ __|/\ | \ | |__ __| | |
| |__| | | | | \ / | |__ / \ | (___| (___ | | | (___ | | / \ | \| | | | | |
| __ | | | | |\/| | __| / /\ \ \___ \\___ \ | | \___ \ | | / /\ \ | | | | | |
| | | | |__| | | | | |____ / ____ \ ____) |___) |_| |_ ____) | | |/ ____ \| |\ | | | | |
|_| |_|\____/|_| |_|______/_/ \_\_____/_____/|_____|_____/ |_/_/ \_\_| \_| |_| |
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 | |
warning() { | |
sudo wall -n "[WARNING] SSH Configuration is about to change!" | |
echo -e " | |
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 | |
echo " | |
_____ ____ _____ ______ _ __ _____ | |
| __ \ / __ \ / ____|| ____|| |/ /| __ \ | |
| | | || | | || | | |__ | ' / | |__) | | |
| | | || | | || | | __| | < | _ / | |
| |__| || |__| || |____ | |____ | . \ | | \ \ | |
|_____/ \____/ \_____||______||_|\_\|_| \_\ |