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
# Xiaomi HomeKit | |
fan: | |
- platform: template | |
fans: | |
xiaomi_fan: | |
friendly_name: "Xiaomi Vacuum" | |
value_template: "{%if states('vacuum.xiaomi_vacuum_cleaner') == 'cleaning' %}on{%elif states('vacuum.xiaomi_vacuum_cleaner') == 'paused' %}on{%else %}off{% endif %}" | |
speed_template: "{{ state_attr('vacuum.xiaomi_vacuum_cleaner', 'fan_speed') }}" | |
turn_on: | |
service: vacuum.start |
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
pcm.card0 { | |
type hw | |
card 0 | |
} | |
ctl.card0 { | |
type hw | |
card 0 | |
} |
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
# Airquality at measuring station "Kendlerstraße" in Vienna | |
sensor: | |
- platform: command_line | |
name: wien pm25 | |
scan_interval: 3600 | |
command: curl https://www.wien.gv.at/ma22-lgb/tb/tb-aktuell.htm | grep -oP "Kendler.+\|.+\|.+\|.+\|.+\|\s+\K\d{0,3}(?=.\|.+\|.+\|)" | |
value_template: '{{ value | int }}' | |
unit_of_measurement: 'µg/m³' |
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
binary_sensor: | |
- platform: command_line | |
name: Monitor Status | |
command: ( /bin/echo -en "1048_b{{'%03d'%states.input_number.iiyama.state|int}}{{'\r'}}" > /dev/ttyUSB0 & timeout 2 /bin/cat < /dev/ttyUSB0 | /bin/grep -oP "1048_b" ; /bin/echo "off" ) | head -n 1 | |
payload_on: "1048_b" | |
payload_off: "off" | |
scan_interval: 10 | |
input_boolean: | |
iiyama: |
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
# Availability and lock status of Zigbee network | |
lock: | |
- platform: mqtt | |
name: Zigbee Network | |
state_topic: "zigbee2mqtt/bridge/config" | |
state_locked: "False" | |
state_unlocked: "True" | |
value_template: '{{value_json.permit_join}}' | |
command_topic: "zigbee2mqtt/bridge/config/permit_join" | |
payload_lock: "false" |