mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-18 23:36:11 +00:00
Updated with Code location.
This commit is contained in:
parent
2fe908e16e
commit
d3119251db
@ -1,6 +1,6 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
### Detect when lights are turned on and adjust them accordingly based on time.
|
### Detect when lights are turned on and adjust them accordingly based on time.
|
||||||
### Here is 8pm to 5am
|
### Code by @JesseWebDotCom
|
||||||
##############################################################################
|
##############################################################################
|
||||||
- alias: detect_light_between 5am and 8am
|
- alias: detect_light_between 5am and 8am
|
||||||
trigger:
|
trigger:
|
||||||
@ -38,7 +38,9 @@
|
|||||||
50
|
50
|
||||||
{%- elif hour >= 8 or hour <20 -%}
|
{%- elif hour >= 8 or hour <20 -%}
|
||||||
255
|
255
|
||||||
|
{%- elif hour >= 20 or hour <24 -%}
|
||||||
|
40
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
35
|
20
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
@ -1,3 +1,5 @@
|
|||||||
|
## These scripts are run from /home/pi
|
||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cd /home/hass/.homeassistant
|
cd /home/hass/.homeassistant
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
## These scripts are run from /home/pi
|
||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Setting up Environment"
|
echo "Setting up Environment"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
## These scripts are run from /home/pi
|
||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cd /home/hass/.homeassistant
|
cd /home/hass/.homeassistant
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
## These scripts are run from /home/pi
|
||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cat hassuser
|
cat hassuser
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user