Skip to content

Instantly share code, notes, and snippets.

#Requires -Version 5.1
<#
.SYNOPSIS
Posture & Standing Desk Reminder
.DESCRIPTION
Reminds you to check your posture once per hour (at a random minute within
that hour) and to use your standing desk twice per day, all within your
configured working hours.
@midasf
midasf / party.yaml
Created March 7, 2025 13:07
partymode!
lights_partying_on:
alias: Lights partying on
sequence:
- service: scene.create
data:
scene_id: studioprimaparty
snapshot_entities:
- light.app_buiten_rgb
- light.buiten_links
- light.buiten_midden
@midasf
midasf / googlehome.yaml
Created December 4, 2023 10:38
google home
google_assistant:
project_id: home-assistant-ID
service_account: !include SERVICE_ACCOUNT.JSON
report_state: true
expose_by_default: false
entity_config:
light.slaapkamer:
expose: true
name: Slaapkamer
light.woonkamer:
alias: verlichting aan in donker
description: ''
trigger:
- type: illuminance
platform: device
device_id: 16766568d55ce82f18c6fe0d244c5e1e
entity_id: sensor.wh_lichtsensor_wk_illuminance_lux
domain: sensor
below: 35
- platform: time_pattern
@midasf
midasf / TS0505B.js
Created May 18, 2022 18:53
TS0505B
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
const tuya = require("zigbee-herdsman-converters/lib/tuya");
const definition = {
- alias: update mindergas
trigger:
- platform: time
at: 00:01:03
action:
- service: rest_command.mindergas_post
data_template:
date: '{{ (now().timestamp() - 60*60) | timestamp_custom(''%Y-%m-%d'') }}'
meterreading: '{{ states(''sensor.gas_consumption'') }}'
id: 53f93d51587247939bae602c92b53c23
@midasf
midasf / solar.yaml
Created December 8, 2021 09:28
solar elevation
- platform: template
sensors:
solar_elevation:
friendly_name: "Solar"
unit_of_measurement: '°'
value_template: "{{ state_attr('sun.sun', 'elevation') }}"
@midasf
midasf / temperature.yaml
Last active December 8, 2021 08:50
Dashboard for temp sensors in HA
- title: Temperature
path: temperature
icon: mdi:temperature-celsius
type: custom:horizontal-layout
badges: []
cards:
- animate: true
color_thresholds:
- color: '#a55eea'
value: -6.9
@midasf
midasf / graph.yaml
Last active December 8, 2021 08:52
cards:
- animate: true
color_thresholds:
- color: '#a55eea'
value: -6.9
- color: '#8854d0'
value: -3.9
- color: '#3867d6'
value: -1.2
- color: '#4b7bec'
### Keybase proof
I hereby claim:
* I am midasf on github.
* I am hacktheplanetnl (https://keybase.io/hacktheplanetnl) on keybase.
* I have a public key ASCoxEySHMgkjeNkLEQYOHAhCIpLlH57aZvbziy_QGxofwo
To claim this, I am signing this object: