Wenar

Untitled

Nov 6th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. #- id: '1572896855110'
  2. # alias: lampka nocna
  3. #description: ''
  4. # trigger:
  5. # - event: sunset
  6. # offset: '-00:30:00'
  7. # platform: sun
  8. # - event: sunrise
  9. # offset: '+00:00:00'
  10. # platform: sun
  11. # - event: state
  12. # entity_id: binary_sensor.motion_sensor_158d0002c185b6
  13. # to: 'on'
  14. # action:
  15. # - service: light.turn_on
  16. # entity_id: light.night_lamp
  17. # - delay: '15'
  18. # - service: light.turn_off
  19. # entity-id: light.night_lamp
  20.  
  21.  
  22. ########
  23. - alias: Lampka nocna lili
  24. trigger:
  25. platform: state
  26. entity_id: binary_sensor.motion_sensor_158d0002c185b6
  27. to: 'on'
  28. action:
  29. service: light.turn_on
  30. entity_id: light.night_lamp
  31.  
  32. - alias: Turn off kitchen light 1 minutes after last movement
  33. trigger:
  34. platform: state
  35. entity_id: binary_sensor.motion_sensor_158d0002c185b6
  36. to: 'off'
  37. for:
  38. minutes: 1
  39. action:
  40. service: light.turn_off
  41. entity_id: light.night_lamp
  42.  
  43.  
  44. ############ testy powiadomień
  45.  
  46. #- alias: 'Send notification when sun rises'
  47. # trigger:
  48. # platform: sun
  49. # event: sunrise
  50. # offset: '+00:00:00'
  51. # action:
  52. # service: notify.pushbullet
  53. # data:
  54. # message: 'The sun is up.'
  55. #- alias: 'Send notification when sun sets'
  56. # trigger:
  57. # platform: sun
  58. # event: sunset
  59. # offset: '+00:00:00'
  60. # action:
  61. # service: notify.pushbullet
  62. # data:
  63. # message: 'The sun is down.'
  64.  
  65.  
  66. #- alias: 'lili wstala'
  67. # trigger:
  68. # - platform: state
  69. # entity_id: binary_sensor.motion_sensor_158d0002c185b6
  70. # from: 'off'
  71. # to: 'on'
  72. # condition:
  73. # condition: time
  74. # after: "06:10:00"
  75. # before: "15:30:00"
  76. # action:
  77. # - service: notify.pushbullet
  78. # data_template:
  79. # title: 'Lili'
  80. # target: 'LENOVO-Lenovo' #See Pushbullet integration for usage
  81. # message: "Home Assistant - Pragnę poinformować ze Lili wstała"
  82. #
  83. - alias: Update notification
  84. trigger:
  85. - platform: state
  86. entity_id: binary_sensor.motion_sensor_158d0002c185b6
  87. from: 'off'
  88. to: 'on'
  89. action:
  90. - service: notify.pushbullet
  91. data_template:
  92. title: 'New Home Assistant Release'
  93. target: 'LENOVO-Lenovo' #See Pushbullet integration for usage
  94. message: "Home Assistant {{ state_attr('binary_sensor.updater', 'newest_version') }} is now available."
  95.  
  96.  
  97.  
  98.  
  99. configuracion.yaml
  100.  
  101.  
  102. ######### notyfikacje jako sensor dodaje #########
  103. notify:
  104. - platform: pushbullet
  105. api_key: o.XXXXxxYyyYYyyZyZYY
  106. name: pushbullet
  107.  
  108. # xiaomi_aqara:
Advertisement
Add Comment
Please, Sign In to add comment