-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from aderusha/dev
HASP v0.39
- Loading branch information
Showing
11 changed files
with
133 additions
and
42 deletions.
There are no files selected for viewing
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
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
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
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
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
############################################################################### | ||
# migrate-hasp-107.sh - Modify an existing Home Assistant configuration | ||
# with HASP deployed to accomodate breaking changes in v107 | ||
############################################################################### | ||
|
||
# Confirm that we're working in the .homeassistant folder by checking for configuration.yaml | ||
if [ ! -f configuration.yaml ] | ||
then | ||
echo "WARNING: 'configuration.yaml' not found in current directory." | ||
echo "Searching for Home Assistant 'configuration.yaml'..." | ||
configfile=$(find / -name configuration.yaml 2>/dev/null) | ||
count=$(echo "$configfile" | wc -l) | ||
if [ $count == 1 ] | ||
then | ||
configdir=$(dirname "${configfile}") | ||
cd $configdir | ||
echo "INFO: configuration.yaml found under: $configdir" | ||
else | ||
echo "ERROR: Failed to locate the active 'configuration.yaml'" | ||
echo " Please run this script from the homeassistant" | ||
echo " configuration folder for your environment." | ||
exit 1 | ||
fi | ||
fi | ||
|
||
# If the user has already deployed HASP devices... | ||
if [ -d packages ] | ||
then | ||
# Search through existing packages to see if we have any "view:" statements to remove as they have been deprecated | ||
find packages -name "hasp_*.yaml" -exec sed -i '/[[:blank:]]view\:/d' {} + | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,9 @@ | |
# these and/or replace with your own devices | ||
|
||
weather: | ||
- platform: met | ||
- platform: nws | ||
api_key: [email protected] | ||
name: nws | ||
|
||
alarm_control_panel: | ||
- platform: manual | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
- path: plate01 | ||
title: plate01 | ||
badges: | ||
- entity: binary_sensor.plate01_connected | ||
- entity: sensor.plate01_status | ||
cards: | ||
- type: entities | ||
title: plate01 Page Selection | ||
entities: | ||
- input_number.hasp_plate01_activepage | ||
- input_number.hasp_plate01_pagebutton1page | ||
- input_text.hasp_plate01_pagebutton1label | ||
- input_number.hasp_plate01_pagebutton2page | ||
- input_text.hasp_plate01_pagebutton2label | ||
- input_number.hasp_plate01_pagebutton3page | ||
- input_text.hasp_plate01_pagebutton3label | ||
- type: entities | ||
title: plate01 Colors | ||
entities: | ||
- input_number.hasp_plate01_selectedforegroundcolor | ||
- input_number.hasp_plate01_selectedbackgroundcolor | ||
- input_number.hasp_plate01_unselectedforegroundcolor | ||
- input_number.hasp_plate01_unselectedbackgroundcolor | ||
- type: entities | ||
title: plate01 automations | ||
entities: | ||
- automation.hasp_plate01_00_firsttimesetup | ||
- type: entities | ||
title: Light | ||
entities: | ||
- light.plate01_backlight |
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
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
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