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
substitutions: | |
system_name: esph_dining_room_air_freshener | |
friendly_name: Esph Dining Room Air Freshener | |
esphome: | |
name: ${system_name} | |
platform: ESP32 | |
board: esp32doit-devkit-v1 | |
wifi: |
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
# Remotely create a number of content databases using New-SPContentDatabase | |
# https://docs.microsoft.com/en-us/powershell/module/sharepoint-server/new-spcontentdatabase | |
$SPServers = @("server1") | |
$webApp = "https://webapp.domain.com" | |
$databasesRequired = 10 | |
$databasePrefix = "AG5Q_Prefix_Content" | |
$databaseServer = "DBserver.domain.com" | |
# Prepare remote PS session and load SP module |
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
Deep sleep switch |
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
# https://www.home-assistant.io/docs/automation/ | |
automation: !include_dir_list ../automations | |
alias: 'Bathroom - Bath full alarm' | |
id: bath_full | |
trigger: | |
# Trigger when the water sensor in the bath turns on |
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
input_datetime: | |
air_freshener_changed_date: | |
name: Bathroom Air Freshener | |
has_date: true | |
has_time: false | |
icon: mdi:air-purifier | |
counter: | |
air_freshener_bathroom: | |
name: Bathroom Air Freshener |
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
<?xml version="1.0" encoding="UTF-16"?> | |
<Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> | |
<RegistrationInfo> | |
<Date>2020-01-18T11:20:27.7660341</Date> | |
<Author>James Callaghan</Author> | |
<URI>\Home Assistant\Desk Lights on with Unlock</URI> | |
</RegistrationInfo> | |
<Triggers> | |
<SessionStateChangeTrigger> | |
<Enabled>true</Enabled> |
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
<?xml version="1.0" encoding="UTF-16"?> | |
<Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> | |
<RegistrationInfo> | |
<Date>2020-01-18T11:19:09.6988975</Date> | |
<Author>James Callaghan</Author> | |
<URI>\Home Assistant\Desk Lights off with Lock</URI> | |
</RegistrationInfo> | |
<Triggers> | |
<SessionStateChangeTrigger> | |
<Enabled>true</Enabled> |
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
alias: 'Office - James desk lights on/off with workstation state' | |
trigger: | |
- platform: state | |
entity_id: input_boolean.james_desk | |
action: | |
- service: scene.turn_on |
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
input_boolean: | |
james_desk: | |
name: James' Workstation Unlocked | |
initial: false | |
icon: mdi:desk |
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
Set objShell = CreateObject("Wscript.Shell") | |
Set args = Wscript.Arguments | |
For Each arg In args | |
Dim PSRun | |
PSRun = "powershell.exe -WindowStyle hidden -ExecutionPolicy bypass -NonInteractive -File " & arg | |
objShell.Run(PSRun),0 | |
Next | |
WScript.Quit |