Skip to content

Instantly share code, notes, and snippets.

@owenb321
owenb321 / epaper_sensor_update.yaml
Created February 5, 2021 16:36
Home Assistant sensors used in epaper display
# Automation to publish sensor data to MQTT
- id: publish_epaper_sensors
alias: Publish epaper sensors
initial_state: true
mode: parallel
max: 50
trigger:
- platform: state
entity_id: input_boolean.waveshare_ota_mode
- platform: state
@owenb321
owenb321 / prismatikProfileSwitch.sh
Created November 8, 2014 04:17
Expect script to switch profiles in Prismatik
#!/usr/bin/expect
set timeout 5
set host [lindex $argv 0]
set port [lindex $argv 1]
set profile [lindex $argv 2]
set apikey [lindex $argv 3]
spawn telnet $host $port
expect "Lightpack API v1.4 (type \"help\" for more info)\r"