This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |