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 | |
# This is heavily based on this code here: | |
# https://gist.github.com/maikeldotuk/54a91c21ed9623705fdce7bab2989742 | |
# Which is heavily based on this code here: | |
# https://gist.github.com/enpassant/0496e3db19e32e110edca03647c36541 | |
# Special thank you to the user enpassant for starting it https://github.com/enpassant | |
# ARGUMENT PARSING | |
# Do not overwrite (0) or overwrite (1) |
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
PORTCFG=/usr/local/apache2/conf/extra/ports.conf | |
sed -i 's# 80^# 8080#' ${PORTCFG} | |
sed -i 's# 443 https# 8443 https#' ${PORTCFG} | |
kill -HUP $(pidof httpd) |
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: Presence-activated Light | |
description: Turn on a light when presence is detected. | |
homeassistant: | |
min_version: 2023.8.0 | |
domain: automation | |
source_url: https://community.home-assistant.io/t/presence-sensor-light-automation/564590 | |
input: | |
presence_entity: | |
name: Presence 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: Motion-activated Light with Conditions | |
description: Turn on a light when motion is detected and conditions are fulfilled. | |
homeassistant: | |
min_version: 2023.8.0 | |
domain: automation | |
source_url: https://community.home-assistant.io/t/presence-sensor-light-automation/564590 | |
input: | |
motion_entity: | |
name: Motion 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: Motion-activated Light/Switch with Conditions | |
description: Turn on a light or switch when motion is detected and conditions are fulfilled. | |
homeassistant: | |
min_version: 2023.8.0 | |
domain: automation | |
source_url: https://community.home-assistant.io/t/presence-sensor-light-automation/564590 | |
input: | |
motion_entity: | |
name: Motion 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: Conversation agent Agenda Notification - Multiple Calendars | |
description: | |
Conversation agent generates a notification based on the upcoming agendas | |
from multiple calendars, location, and weather. | |
domain: automation | |
input: | |
notify_time: | |
name: Notification time | |
description: Time the automation is triggered to send the notification. |
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: Daily Conversation agent Agenda Notification | |
description: | |
Conversation agent generates a personalized notification based on the | |
upcoming calendar agenda, location, and weather information in your language. | |
domain: automation | |
input: | |
language: | |
name: Language | |
description: Language of Assistant Response |