This file contains hidden or 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
blueprint: | |
name: Aqara Wireless Switch (single, double, hold) | |
description: 'Control anything using Aqara Wireless Switch. | |
Customizable actions for each press. | |
This version of the blueprint is for buttons supporting single, double and hold actions. | |
' | |
domain: automation |
This file contains hidden or 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
# Calculation References: | |
# https://nathanfiscus.github.io/inovelli-notification-calc/ | |
# https://community.inovelli.com/t/home-assistant-2nd-gen-switch-rgb-working/168/62 | |
# https://docs.google.com/spreadsheets/u/1/d/1SGJrJHCUtz8AzznWL_mLCTJjjr2U0IpltcUkRr7N_6M/edit?usp=sharing | |
# | |
# Changes: | |
# July 22, 2020: Incorporating some changes from Kevin Schlichter. | |
# https://github.com/kschlichter/Home-Assistant-Inovelli-Red-Dimmer-Switch | |
# | |
# August 6, 2020: Converting `zwave` service to `ozw` service due to the new Z-Wave integration. |
This file contains hidden or 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
--- | |
alias: front_door_locked | |
initial_state: true | |
trigger: | |
- platform: state | |
entity_id: lock.front_door | |
from: 'unlocked' | |
to: 'locked' | |
action: | |
# Return the Status LED to normal. |
This file contains hidden or 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
service: script.inovelli_led | |
data: | |
entity_id: zwave.dimmer_family_room | |
color: purple | |
dimmer: "true" # Set to "false" for the non-dimmable switch. | |
duration: 10 seconds | |
effect: chase | |
level: 10 |
This file contains hidden or 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
{% macro add_time(time, add_minutes) %} | |
{% if time|lower != 'unavailable' %} | |
{% set time = time.split(':') %} | |
{% set hour = time[0]|int %} | |
{% set minutes = time[1]|int %} | |
{% if (minutes + add_minutes) < 60 %} | |
{{ "%0.02d:%0.02d"|format(hour, minutes + add_minutes) }} | |
{% else %} | |
{{ "%0.02d:%0.02d"|format(hour + 1, (minutes + add_minutes) - 60) }} | |
{% endif %} |
This file contains hidden or 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
hass-cli --columns=ENTITY="entity_id,state,attributes[duration],attributes[remaining]" --no-headers --table-format tsv state list ^timer \ | |
| grep active \ | |
| sed -e 's/timer.//g' \ | |
| sed -e 's/\<active\>//g' \ | |
| sed -e 's/\t/,/g' \ | |
| sed -e 's/,,/,/g' \ | |
| sed -e 's/ //g' \ | |
www/data/active_timers_snapshot.csv | |
This file contains hidden or 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
# Sonoff S31 Power Monitoring Plug | |
# | |
substitutions: | |
devicename: sonoff_s31_01 | |
upper_devicename: Sonoff S31 01 | |
esphome: | |
name: ${devicename} | |
platform: ESP8266 | |
board: esp01_1m |
This file contains hidden or 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
[root@photos ~]# DMAPD_DEBUG=y dmapd -f | |
Loading /usr/lib/dmapd/0.0.48/modules/libav-meta-reader-gst.so. | |
Loading /usr/lib/dmapd/0.0.48/modules/libav-render-gst.so. | |
(process:703): GLib-GObject-CRITICAL **: Object class AVRender doesn't implement property 'volume' from interface 'DACPPlayer' | |
(process:703): GLib-GObject-CRITICAL **: Object class AVRender doesn't implement property 'shuffle-state' from interface 'DACPPlayer' | |
(process:703): GLib-GObject-CRITICAL **: Object class AVRender doesn't implement property 'repeat-state' from interface 'DACPPlayer' |
This file contains hidden or 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
NSDate *start = [NSDate date]; | |
. | |
. | |
. | |
NSLog(@"duration: %f", [start timeIntervalSinceNow]); |
NewerOlder