This file contains hidden or 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: Match Outside Colour Temperature Kelvin | |
description: When a light turns on or the sun elevation changes match the outside | |
colour temperature. It will apply to any bulb that supports color temperature. | |
It triggers whenever a bulb turns on, on sun elevation changes and every 5 minutes. | |
domain: automation | |
input: | |
target_lights: | |
name: Lights | |
description: The primary lights to be controlled |
This file contains hidden or 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
substitutions: | |
devicename: magtag | |
upper_devicename: Magtag | |
esphome: | |
name: magtag | |
platform: esp32 | |
board: esp32dev | |
platformio_options: |
This file contains hidden or 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 | |
SOC_USB=/sys/devices/platform/soc/20980000.usb | |
if [ ! -d $SOC_USB ]; | |
then | |
SOC_USB=/sys/devices/platform/soc/3f980000.usb # Raspberry Pi 3 | |
fi | |
BUSPOWER=$SOC_USB/buspower |