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
# Install the PowerBI module | |
# Install-Module -Name MicrosoftPowerBIMgmt | |
# Import the PowerBI module | |
Import-Module MicrosoftPowerBIMgmt | |
# Login to Power BI | |
Login-PowerBI | |
# Connect to Power BI (Optional -UserName "yourusername@yourdomain.com") |
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
## The following four lines only need to be declared once in your script. | |
$yes = New-Object System.Management.Automation.Host.ChoiceDescription "&Yes","Description." | |
$no = New-Object System.Management.Automation.Host.ChoiceDescription "&No","Description." | |
$cancel = New-Object System.Management.Automation.Host.ChoiceDescription "&Cancel","Description." | |
$options = [System.Management.Automation.Host.ChoiceDescription[]]($yes, $no, $cancel) | |
## Use the following each time your want to prompt the use | |
$title = "Title" | |
$message = "Question?" | |
$result = $host.ui.PromptForChoice($title, $message, $options, 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
alias: 'Family - James - Track Medicine' | |
id: '4df574c4-bb48-4108-b679-76a47966af92' | |
description: 'Track medicine and order more when low.' | |
initial_state: true | |
mode: 'single' | |
max_exceeded: silent | |
trigger: | |
# Let's keep this simple and assume the medicine was taken each day. |
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: Alexa - It's stinky | |
trigger: | |
# Trigger based on Alexa routine turning on the light. | |
- platform: state | |
entity_id: light.alexa_virtual | |
to: 'on' | |
condition: |
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: 'Bathroom - Toilet flush air freshener + tts' | |
trigger: | |
# Trigger when the toilet is flushed usng a sensor on the cistern flush arm. | |
platform: state | |
entity_id: binary_sensor.toilet_flusher_contact | |
to: "on" | |
action: |
NewerOlder