Skip to content

Instantly share code, notes, and snippets.

View peyanski's full-sized avatar

Kiril Peyanski peyanski

View GitHub Profile
[{"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:12345678@10.0.0.186: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":
@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
@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 / node-red_influxDB_integration.exp
Created March 25, 2020 09:56
Node-RED and InfluxDB integration example Flow
[{"id":"9cf79844.811da8","type":"tab","label":"InfluxDB","disabled":false,"info":""},{"id":"fa7003.cd5af","type":"influxdb out","z":"9cf79844.811da8","influxdb":"47a44304.44396c","name":"","measurement":"test","precision":"","retentionPolicy":"","x":730,"y":240,"wires":[]},{"id":"359eb20b.7b519e","type":"function","z":"9cf79844.811da8","name":"single value","func":"msg.payload = Math.random()*10;\nreturn msg;","outputs":1,"noerr":0,"x":417,"y":248,"wires":[["fa7003.cd5af","22509df2.cebb8a"]]},{"id":"3795af09.c58158","type":"inject","z":"9cf79844.811da8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":273,"y":223,"wires":[["359eb20b.7b519e"]]},{"id":"22509df2.cebb8a","type":"debug","z":"9cf79844.811da8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":570,"y":100,"wires":[]},{"id":"dd6779af.77dfe","type":"mqtt in","z":"9cf79844.811da8","name":"Temp 2nd Floor","topic":"tele/D1-2/SENSOR","qos":"1"
@peyanski
peyanski / HA_and_NR_Grafana_Dashboards.json
Created March 25, 2020 10:02
Home Assistant and Node-RED - Grafana Dashboards
{
"__inputs": [
{
"name": "DS_HOMEASSISTANT",
"label": "homeassistant",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
},
@peyanski
peyanski / Alexa_and_HA-TTS_test.yaml
Created April 1, 2020 05:39
My Alexa and Home Assistant video TTS test
message: Hello dear friends from YouTube!,
data:
type: tts
target: media_player.CHANGE_ME_TO_YOUR_DEVICE
@peyanski
peyanski / Alexa_and_HA_Play_sounds_test.json
Last active April 3, 2020 03:41
My Alexa and Home Assistant video - Play sounds test
{
"entity_id": "media_player.CHANGE_ME_TO_YOUR_DEVICE",
"media_content_id": "amzn_sfx_doorbell_chime_01",
"media_content_type": "sound"
}
@peyanski
peyanski / Alexa_and_HA-Sequence_test.json
Last active April 3, 2020 03:45
My Alexa and Home Assistant video - Sequence commands test
{
"entity_id": "media_player.CHANGE_ME_TO_YOUR_DEVICE",
"media_content_id": "Alexa.Joke.Play",
"media_content_type": "sequence"
}
@peyanski
peyanski / Shelly_Door_Window_Sensor-MQTT-telegram
Created May 12, 2020 22:03
Monitoring for Shelly Door Windows state changes in MQTT topic and send a Telegram notifications when there is change using Home Assistant integration
[
{
"id": "15497425.87c8f4",
"type": "tab",
"label": "Shelly Door",
"disabled": false,
"info": ""
},
{
"id": "57915752.82daf8",
@peyanski
peyanski / reolink_rlc-410w_RTSP.json
Created June 10, 2020 06:17
Custom flow to test the connectivity to Reolink RLC-410W camera using RTSP protocol