Skip to content

Instantly share code, notes, and snippets.

View SteveDinn's full-sized avatar

Steve Dinn SteveDinn

View GitHub Profile
@SteveDinn
SteveDinn / MastodonServerBlocks.ps1
Last active November 25, 2022 13:34
PowerShell functions to get and set Mastodon server blocks
# You need to run the .ps file in PowerShell so that the functions get
# loaded but after that you can just use them like regular commands.
#
# e.g.
# Get-MastodonServerBlock `
# -domain source.social `
# -accessToken "source_domain_token" |
# Foreach-Object {
# Add-MastodonServerBlock `
# -domain target.social `
# This file is the common stuff that both the recroom heatpump and the livingroom heatpump
# can use.
# This defines the climate mode for the whole house. Since I have a mini-split heat pump,
# the two indoor units don't like it if one is set to cooling and the other to heating.
input_select:
climate_mode:
name: Climate mode
options:
- "Off"
# This file describes the climate component that will get displayed on the Home Assistant
# UI, and ultimately is what people will interact with to control the living room heat pump
#######################################################
# climate component
#######################################################
climate:
- platform: mqtt
name: livingroom
current_temperature_topic: tele/NodeMCU03/SENSOR
automation:
- id: rf_signal_receiver
alias: rf_signal_receiver
trigger:
- platform: mqtt
topic: tele/RFBridge/RESULT
condition:
- condition: template
value_template: >
{{ trigger.payload_json["RfReceived"] is not none }}