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
NEW_IP=192.168.1.5 | |
for HOST in 39 40 23 32 36 31 33 29 37 24 35; do | |
curl "http://192.168.1.$HOST/settings" --data-raw "coiot_peer=$NEW_IP%3A5683" && \ | |
curl "http://192.168.1.$HOST/reboot" | |
echo $HOST | |
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
blueprint: | |
name: Toggle Lights | |
description: Toggle lights brightness with a button press. | |
domain: automation | |
input: | |
button_entity: | |
name: Button Entity | |
description: The entity ID of the button or switch. | |
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: Turn on after random time | |
domain: automation | |
author: Fredrik Erlandsson | |
input: | |
light: | |
name: Light | |
selector: | |
target: | |
device: |
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: Turn off after random time | |
domain: automation | |
author: Fredrik Erlandsson | |
input: | |
light: | |
name: Light | |
selector: | |
target: | |
device: |
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
package_name("com.foo.bar") |
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: Car heater | |
description: Activate car heater based on sensor temperature | |
domain: automation | |
input: | |
temp_sensor: | |
name: Reference temperature sensor | |
selector: | |
entity: | |
domain: sensor |
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: Notify when car is charging | |
description: Send push notification when the car is plugged in and have started charging | |
domain: automation | |
input: | |
battery_charging: | |
name: Car battery charging sensor | |
selector: | |
entity: | |
domain: binary_sensor |
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
## Import Libraries | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
from pandas.plotting import register_matplotlib_converters | |
register_matplotlib_converters() | |
#%matplotlib inline | |
import plotly.express as px | |
import plotly.graph_objects as go | |
from plotly.subplots import make_subplots |
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 | |
CONFIG_FILE="/usr/local/hassio/etc/hassio.json" | |
fix_usb_devices() { | |
USB_FILE="${HASSIO_DATA}/usb_devices.txt" | |
docker cp hassio_supervisor:/lib/udev/rules.d/60-serial.rules /lib/udev/rules.d/60-serial-hassio.rules | |
docker cp hassio_supervisor:/lib/udev/rules.d/60-input-id.rules /lib/udev/rules.d/60-input-id-hassio.rules |
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 | |
fix_usb_devices() { | |
RULES_FILE="/lib/udev/rules.d/59-usb-hassio.rules" | |
RULES_FILE="/dev/stdout" | |
HASSIO_DATA="$(jq --raw-output '.data // "/usr/share/hassio"' ${CONFIG_FILE})" | |
USB_FILE="usb_devices.txt" | |
# Clear entris from file |
NewerOlder