Нема описа
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

scripts.yaml 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. coverup:
  2. alias: Cover Up
  3. sequence:
  4. - alias: Cancel Down Script
  5. service: script.turn_off
  6. data:
  7. entity_id: script.coverdown
  8. - alias: Switch Direction Relay ON (upwards)
  9. service: switch.turn_on
  10. data:
  11. entity_id: switch.coverdirection
  12. - delay:
  13. seconds: 1
  14. - alias: Enable Pre Relay
  15. service: switch.turn_on
  16. data:
  17. entity_id: switch.coverenable
  18. - delay:
  19. seconds: 90
  20. - alias: Stop Covers by calling script
  21. service: script.turn_on
  22. data:
  23. entity_id: script.coverstop
  24. coverdown:
  25. alias: Cover Down
  26. sequence:
  27. - alias: Cancel Up Script
  28. service: script.turn_off
  29. data:
  30. entity_id: script.coverup
  31. - alias: Switch Direction Relay OFF (downwards)
  32. service: switch.turn_off
  33. data:
  34. entity_id: switch.coverdirection
  35. - delay:
  36. seconds: 1
  37. - alias: Enable Pre Relay
  38. service: switch.turn_on
  39. data:
  40. entity_id: switch.coverenable
  41. - delay:
  42. seconds: 90
  43. - alias: Stop Covers by calling script
  44. service: script.turn_on
  45. data:
  46. entity_id: script.coverstop
  47. coverposition:
  48. alias: Cover Position
  49. sequence:
  50. - alias: Cancel Down Script
  51. service: script.turn_off
  52. data:
  53. entity_id: script.coverdown
  54. - alias: Switch Direction Relay ON (upwards)
  55. service: switch.turn_on
  56. data:
  57. entity_id: switch.coverdirection
  58. - delay:
  59. seconds: 1
  60. - alias: Enable Pre Relay
  61. service: switch.turn_on
  62. data:
  63. entity_id: switch.coverenable
  64. - delay: '00:00:{{delay | int}}'
  65. - alias: Stop Covers by calling script
  66. service: script.turn_on
  67. data:
  68. entity_id: script.coverstop
  69. coverstop:
  70. alias: Cover Stop
  71. sequence:
  72. - alias: Cancel Down Script
  73. service: script.turn_off
  74. data:
  75. entity_id: script.coverdown
  76. - alias: Cancel Up Script
  77. service: script.turn_off
  78. data:
  79. entity_id: script.coverup
  80. - alias: Disable Pre Relay
  81. service: switch.turn_off
  82. data:
  83. entity_id: switch.coverenable
  84. - delay:
  85. seconds: 2
  86. - alias: Switch Direction Relay OFF (does not matter, but saves power)
  87. service: switch.turn_off
  88. data:
  89. entity_id: switch.coverdirection
  90. fadein:
  91. alias: Fade In LEDs
  92. sequence:
  93. - alias: Turn on with transition
  94. service: light.turn_on
  95. data:
  96. entity_id: light.led_strip
  97. brightness: 255
  98. transition: 5