Skip to content

Instantly share code, notes, and snippets.

View cliffordwhansen's full-sized avatar

Clifford W. Hansen cliffordwhansen

View GitHub Profile
#!/bin/bash
# Detect and install ipmitool (to be adjusted, this is run on an alpine system)
which ipmitool >/dev/null 2>&1 || (apk update && apk add ipmitool)
# IPMI hostname or IP address
IPMI_HOST=<<ipmi_ip_address>>
# IPMI username
IPMI_USER=<<username>>
type: custom:button-card
entity: person.clifford_w_hansen
aspect_ratio: 1/1
name: Person
show_entity_picture: true
show_name: false
tap_action:
action: navigate
navigation_path: /lovelace/main-bedroom
hold_action:
@cliffordwhansen
cliffordwhansen / presence_non_binary.yaml
Last active September 29, 2023 13:07
Making Home Assistant’s Presence Detection not so Binary
blueprint:
name: "Person: Status Update"
description: Making Home Assistant’s Presence Detection not so Binary
domain: automation
input:
person_device_tracker:
name: Device tracker
description: This is the device tracker for the person
selector:
entity:
proximity:
p1_home:
zone: home
devices:
- device_tracker.p1_gpslogger
tolerance: 50
unit_of_measurement: km
p2_home:
zone: home
devices:
@cliffordwhansen
cliffordwhansen / loadshedding.yaml
Last active May 11, 2021 12:12
Homeassistant sensor.rest for Eskom Loadshedding status
- platform: rest
name: Eskom Loadshedding
resource: https://loadshedding.eskom.co.za/LoadShedding/GetStatus
scan_interval: 60
- platform: template
sensors:
eskom_loadshedding_status:
friendly_name: 'Eskom Loadshedding Status'
value_template: >-
{% if is_state('sensor.eskom_loadshedding', '1') %}
@cliffordwhansen
cliffordwhansen / capetowncablecar.yaml
Created December 3, 2018 13:16
Homeassistant sensor.rest for Capetown Cable car status
- platform: rest
name: Capetown CableCar
json_attributes:
- conditions
- conditions_stripped
- entry_date
- visibility
- wind_strength
- estimated_waiting_time
- estimated_waiting_time_top

Keybase proof

I hereby claim:

  • I am cliffordwhansen on github.
  • I am cliffordwhansen (https://keybase.io/cliffordwhansen) on keybase.
  • I have a public key whose fingerprint is 0A17 7BA6 260C 02E3 F064 4DD5 95BF F324 1941 650B

To claim this, I am signing this object: