Skip to content

Instantly share code, notes, and snippets.

View Ruschi's full-sized avatar

Jan M. Rusch Ruschi

View GitHub Profile
blueprint:
name: IKEA five button remote
description: 'Control anything using IKEA five button remote'
domain: automation
input:
remote:
name: Remote
description: IKEA remote to use
selector:
device:
blueprint:
name: Philips Hue Dimmer Switch
description: |
Control lights with a Philips Hue Dimmer Switch.
The top "on" button will turn the lights on to the last set brightness
(unless the force brightness is toggled on in the blueprint).
Dim up/down buttons will change the brightness smoothly and can be pressed
and hold until the brightness is satisfactory.
blueprint:
name: Controll RGB Lamp from Octoprint
description: Turn a light on by Octoprint
domain: automation
input:
target_octoprint:
name: Octoprint Printing
description: This sensor will be synchronized with the light.
selector:
entity:
@Ruschi
Ruschi / sensors.yaml
Last active December 29, 2020 17:37
Shelly 3EM Mqtt Hass.io
sensor:
# Energy counter in Watt-minute
- platform: mqtt
name: "Energy 0"
state_topic: "shellies/shellyem3-40F520011095/emeter/0/energy"
qos: 1
value_template: "{{ value|float / 1000 }}" # Fix for Watt-minutes
unit_of_measurement: "kWh"
icon: mdi:chart-bar
- platform: mqtt
sensor:
# Energy counter in Watt-minute
- platform: mqtt
name: "Energy 0"
state_topic: "shellies/shellyem3-40F520011095/emeter/0/energy"
qos: 1
value_template: "{{ (value|float / 1000) | round(1)}}" # Fix for Watt-minutes
unit_of_measurement: "kWh"
icon: mdi:chart-bar
- platform: mqtt
@Ruschi
Ruschi / gist:4c483802ecaec7b813f03f47c4af4b42
Created November 9, 2023 12:01
Homeassistant Template Sensoren
Wochentag :
{{ ['Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag','Sonntag'][now().weekday()] }}
Monat :
{{ ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'][now().month-1] }}
Monat Kurz :
{{ ['Jan.', 'Feb.','März', 'Apr.','Mai', 'Jun.', 'Jul.', 'Aug.', 'Sept.', 'Okt.', 'Nov.', 'Dez.'][now().month-1] }}
Datum :
{
"openapi": "3.0.1",
"info": {
"title": "My API",
"description": "Description of your API.",
"termsOfService": "https://example.com/terms",
"contact": {
"name": "Example Contact",
"url": "https://example.com/contact"
},