Skip to content

Instantly share code, notes, and snippets.

View peyanski's full-sized avatar

Kiril Peyanski peyanski

View GitHub Profile
@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 / 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 / Alexa_and_HA-Whispering_test.json
Created April 1, 2020 05:42
My Alexa and Home Assistant video - Announce/Whispering test
{
"message":"<amazon:effect name='whispered'>I am whispering this.</amazon:effect>",
"data":{"type":"announce", "method":"speak"},
"target":["media_player.CHANGE_ME_TO_YOUR_DEVICE"]
}
@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 / 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 / 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 / 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