Advertisement
fporcino

Untitled

Aug 22nd, 2022 (edited)
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. alias: Script Buongiorno NEW
  2. sequence:
  3. - service: media_player.turn_on
  4. data: {}
  5. target:
  6. entity_id: media_player.tv_samsung
  7. - delay:
  8. hours: 0
  9. minutes: 0
  10. seconds: 5
  11. milliseconds: 0
  12. - service: media_player.turn_on
  13. data: {}
  14. target:
  15. entity_id: media_player.sky_q
  16. - delay:
  17. hours: 0
  18. minutes: 0
  19. seconds: 5
  20. milliseconds: 0
  21. - service: switch.toggle
  22. data: {}
  23. target:
  24. entity_id: switch.skyq_giornaleradiotvsoggiorno
  25. - if:
  26. - condition: sun
  27. before: sunrise
  28. then:
  29. - service: light.turn_on
  30. data:
  31. rgb_color:
  32. - 17
  33. - 0
  34. - 255
  35. target:
  36. entity_id:
  37. - light.led_mobile
  38. - light.mobile2_lidl
  39. - light.lettura_tradfri
  40. - light.led_cucina
  41. else:
  42. - if:
  43. - condition: or
  44. conditions:
  45. - condition: time
  46. before: '10:00:00'
  47. - condition: time
  48. after: '18:59:59'
  49. then:
  50. - service: light.turn_on
  51. data:
  52. rgb_color:
  53. - 251
  54. - 255
  55. - 0
  56. target:
  57. entity_id:
  58. - light.led_mobile
  59. - service: light.turn_on
  60. data: {}
  61. target:
  62. entity_id: light.led_cucina
  63. mode: single
  64.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement