Skip to content

Instantly share code, notes, and snippets.

View peyanski's full-sized avatar

Kiril Peyanski peyanski

View GitHub Profile
@peyanski
peyanski / HA_DevTOOLS_Actionable_Notifications.yaml
Created September 9, 2020 12:53
Home Assistant Developer Tools Fun YAML snippets to test Actionable Notifications in Companion App
# simple notification test
notify.mobile_app_kiril_s_iphone
message: subscribe
# click to open url
title: "Open my website"
message: "URL"
data:
url: https://peyanski.com
# Example configuration.yaml entry
sensor:
- platform: history_stats
name: "Vacation Kitchen"
entity_id: light.kitchen_lights
state: "on"
type: count
start: >
{{ as_timestamp(now()) - 86400 }}
duration: 00:00:10
@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
@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"