Skip to content

Instantly share code, notes, and snippets.

Avatar

James Callaghan jcallaghan

View GitHub Profile
View Home-Assistant - Smart Pet Training Buttons - configuration.yaml
template:
- trigger:
- platform: event
event_type: zha_event
event_data:
device_id: 8f7901e0614a3cdc7eeb864e896efa87
binary_sensor:
- name: "Paw Button #1"
View Home-Assistant - Smart Pet Training Buttons - input_text.yaml
input_text:
paw_button_1_tts:
name: "#1 Announcement"
icon: mdi:bullhorn
max: 255
paw_button_1_notification:
name: "#1 Notification"
icon: mdi:bullhorn
View Home-Assistant - Smart Pet Training Buttons - input_number.yaml
input_number:
paw_button_1_wait:
name: "#1 Wait"
min: 0
max: 300
step: 1
mode: box
unit_of_measurement: "mins"
icon: mdi:timer
View Home-Assistant - Smart Pet Training Buttons - automation.yaml
alias: 'Paw Button 1'
id: '5c631613-1253-4b21-a342-ddea791e0000'
initial_state: true
mode: single
trigger:
- platform: state
entity_id: binary_sensor.paw_button_1
to: 'on'
View Home-Assistant - Smart Pet Training Buttons - lovelace.yaml
type: vertical-stack
cards:
- type: entities
title: Back Garden
show_header_toggle: false
entities:
- entity: binary_sensor.paw_button_1
secondary_info: last-updated
- type: custom:fold-entity-row
head:
View automation-remote_on.yaml
alias: 'Remote - Next scene'
id: '6999bb6f-2240-4351-8713-9b5ff51ae34d'
description: ''
initial_state: true
# mode: queued
trigger:
- platform: device
domain: zha
View Yammer-CreateMessage-Sample.ps1
function Get-BaererToken() {
$headers = @{ Authorization=("Bearer " + $token) }
return $headers
}
# Yammer app developer token
$token = "12345678-ABCDEabcdeABCDEabcdeAB"
# Base Yammer API url
$yammerBaseUrl = "https://www.yammer.com/api/v1"
@jcallaghan
jcallaghan / ESPHome - Air Freshener Config - Deep Sleep.yaml
Created Mar 13, 2020
This is the ESPHome configuration I've used to enable deep sleep.
@jcallaghan
jcallaghan / Create-AADGroupClassification.ps1
Last active Oct 25, 2020
Apply configuration for Office3 365 Group Classification
View Create-AADGroupClassification.ps1
<#
Azure Active Directory cmdlets for configuring group settings
Reference - https://docs.microsoft.com/en-gb/azure/active-directory/users-groups-roles/groups-settings-cmdlets
Note:
Update group classifications (lines 39 and 40)
Set GroupCreationAllowedGroupId to your group if change is required (lines 30 and 31)
#>
View PowerPlatform-GetFlowConnections.ps1
Add-PowerAppsAccount
Get-AdminPowerAppEnvironment
#Get-AdminPowerAppConnection | Where-Object {$_.ConnectionName -like "shared-sharepointonl*" -and $_.DisplayName -notlike "*tenantname*" }| format-table ConnectionName, DisplayName
Get-AdminPowerAppConnection| Select-Object * | Where-Object {$_.ConnectionName -like "shared-sharepointonl*" } | Export-Csv .\FlowConnections.csv -NoTypeInformation
Get-AdminPowerAppConnection| Select-Object * | Export-Csv .\FlowConnections.csv -NoTypeInformation