Skip to content

Instantly share code, notes, and snippets.

View peyanski's full-sized avatar

Kiril Peyanski peyanski

View GitHub Profile
@peyanski
peyanski / room-assistant_docker-compose.yml
Created March 11, 2020 14:15
Use this to get the room-assistant image
version: '3'
services:
room-assistant:
image: mkerix/room-assistant
restart: unless-stopped
network_mode: host
volumes:
- /var/run/dbus:/var/run/dbus
- /home/pi/room-assistant/config:/room-assistant/config
@peyanski
peyanski / cluster_local.yml
Created March 11, 2020 14:12
Cluster Room-Assistant configuration
global:
cluster:
autoDiscovery: false
port: 6425
peerAddresses:
- THE_IP_OF_THE_OTHER_RasoberryPI:6425
instanceName: corridor
integrations:
- homeAssistant
- bluetoothClassic
@peyanski
peyanski / local.yml
Created March 11, 2020 14:09
Standalone Room-Assistant configuration
global:
instanceName: livingroom
integrations:
- homeAssistant
- bluetoothClassic
homeAssistant:
mqttUrl: 'mqtt://YOUR_MQTT_BROKER:1883'
mqttOptions:
username: YOUR_USER
password: YoUR_PASS
@peyanski
peyanski / room-assistant_automations.yaml
Created March 11, 2020 14:03
Room-Assistant Automation to turn on the Kitchen Lights when smart watch device is detected as in home
Automations.yaml
# presence detection with room assistant
- id: '1574110134678355'
alias: Lights ON when I got home
description: 'When Im home'
trigger:
platform: state
entity_id: sensor.kirils_apple_watch_room_presence
from: not_home
to: kitchen
[{"id":"41a577c9.ee6c5","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"7edc8975.a2ca2","type":"exec","z":"41a577c9.ee6c5","command":"ffmpeg -f rtsp -i \"rtsp://rtsp:[email protected]:554/av_stream/ch0\" -f image2pipe pipe:1","addpay":false,"append":"","useSpawn":"true","timer":"","oldrc":false,"name":"Decode RTSP stream","x":520,"y":240,"wires":[["738531db.a89da","e2a11b69.d66c88"],["c8fa95b2.b7b268"],["412f5cc8.fc89ec"]]},{"id":"87089176.96e53","type":"inject","z":"41a577c9.ee6c5","name":"Start stream","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":190,"y":240,"wires":[["7edc8975.a2ca2"]]},{"id":"a8a37b87.1047c8","type":"inject","z":"41a577c9.ee6c5","name":"Pause all streams","topic":"","payload":"SIGSTOP","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":200,"y":280,"wires":[["b72b3fe3.c933c8"]]},{"id":"a29eac62.280ae8","type":"inject","z":"41a577c9.ee6c5","name":"Resume all streams","topic":"","payload":