Skip to content

Instantly share code, notes, and snippets.

root@raspberrypi:~# cat /dev/random|head -1|hexdump -C
00000000 2f d7 68 0f 44 c1 29 00 0c a9 0d 03 a4 20 a4 51 |/.h.D.)...... .Q|
00000010 51 f6 1a ff 1e c0 15 9b 06 8b 5e 33 96 f3 41 cc |Q.........^3..A.|
00000020 10 70 07 35 29 c0 c7 23 49 d6 d3 30 07 68 0b 45 |.p.5)..#I..0.h.E|
00000030 a2 b0 78 81 dd fb ac 5e 82 1e 71 af 1c c2 8e 71 |..x....^..q....q|
00000040 60 8f c7 86 6d dd b2 dc ea 36 c0 f1 ad dc b4 44 |`...m....6.....D|
00000050 81 99 fc f4 9f e8 b6 2f 04 42 51 bf b8 61 54 78 |......./.BQ..aTx|
00000060 aa 94 a6 e4 4e f7 1d 85 cf 79 59 37 b5 eb 95 00 |....N....yY7....|
00000070 fb 59 4c 61 4e 76 24 cb cd 0c 19 e6 6a e5 26 67 |.YLaNv$.....j.&g|
00000080 e0 ae a4 16 90 91 d4 3e 5f a8 ef 9a c4 6f 99 11 |.......>_....o..|
- title: water
path: water
icon: mdi:water-outline
panel: true
badges: []
cards:
- type: custom:layout-card
layout: vertical
cards:
input_number:
on_minutes:
min: 0
max: 10000000000
step: 1
mode: box
automation:
- alias: Record uf lamp work time
trigger:
input_boolean:
uf_lamp:
input_number:
on_seconds:
min: 0
max: 10000000000
step: 1
mode: box
- type: 'custom:bar-card'
entities:
- entity: sensor.water_filter_1_usage
name: Filter 1
icon: 'mdi:filter'
decimal: 1
- entity: sensor.water_filter_2_usage
name: Filter 2
icon: 'mdi:filter'
decimal: 1
timer:
toilet:
automation:
- alias: Turn on light in the toilet by aqara sensor motion
trigger:
platform: mqtt
topic: zigbee2mqtt/0x00158d0004518e15
condition:
sqlite> select entity_id, state from states where entity_id = 'sensor.cpu_get_throttled' limit 10;
entity_id|state
sensor.cpu_get_throttled|0
sensor.cpu_get_throttled|80008
sensor.cpu_get_throttled|0
sensor.cpu_get_throttled|80008
sensor.cpu_get_throttled|80000
sensor.cpu_get_throttled|0
sensor.cpu_get_throttled|80000
sensor.cpu_get_throttled|80008
automation:
- id: turn_outdoor_lights_on
alias: Turn outdoor lights on
trigger:
- platform: state
entity_id: binary_sensor.somebody_at_dacha
- platform: time_pattern
minutes: "/5"
condition:
esphome:
name: sonoffbasic
platform: ESP8266
board: esp01_1m
board_flash_mode: dout
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
automation:
id: device_zigbee_join
alias: device_zigbee_join
trigger:
action:
- service: mqtt.publish
data:
topic: zigbee2mqtt/bridge/config/permit_join
payload: 'true'