Advertisement
Guest User

Home Assistant automation for TOU

a guest
Jun 8th, 2025
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.94 KB | Software | 0 0
  1. alias: Tesla Powerwall Automation - TOU
  2. description: ""
  3. triggers:
  4. - alias: Free Grid Usage ends
  5. trigger: time
  6. at: "05:59:00"
  7. id: Free grid usage ends
  8. - alias: Free Grid Usage starts
  9. trigger: time
  10. at: "21:01:00"
  11. id: Free grid usage starts
  12. - trigger: numeric_state
  13. entity_id:
  14. - sensor.tesla_netzero_battery
  15. below: 30
  16. id: Powerwall Battery falls below 30%
  17. conditions: []
  18. actions:
  19. - choose:
  20. - conditions:
  21. - condition: trigger
  22. id:
  23. - Free grid usage ends
  24. sequence:
  25. - device_id: 8034873aa4ca611c033caa7ec13
  26. domain: number
  27. entity_id: 95348b25a5853f49551671b770
  28. type: set_value
  29. value: 20
  30. - action: select.select_option
  31. metadata: {}
  32. data:
  33. option: Everything
  34. target:
  35. entity_id: select.tesla_netzero_energy_exports
  36. - action: select.select_option
  37. metadata: {}
  38. data:
  39. option: "No"
  40. target:
  41. entity_id: select.tesla_netzero_grid_charging
  42. - action: select.select_option
  43. metadata: {}
  44. data:
  45. option: Self-Powered
  46. target:
  47. entity_id: select.tesla_netzero_operation_mode
  48. - action: notify.my_phone
  49. metadata: {}
  50. data:
  51. message: Adjusting settings for expensive grid usage
  52. title: TOU - 6AM Automation
  53. - conditions:
  54. - condition: trigger
  55. id:
  56. - Free grid usage starts
  57. sequence:
  58. - device_id: 8034873aa4ca611c033caa7ec13
  59. domain: number
  60. entity_id: 95348b25a5853f49551671b770
  61. type: set_value
  62. value: 100
  63. - action: select.select_option
  64. metadata: {}
  65. data:
  66. option: Nothing
  67. target:
  68. entity_id: select.tesla_netzero_energy_exports
  69. - action: select.select_option
  70. metadata: {}
  71. data:
  72. option: "Yes"
  73. target:
  74. entity_id: select.tesla_netzero_grid_charging
  75. - action: select.select_option
  76. metadata: {}
  77. data:
  78. option: Time-Based Control
  79. target:
  80. entity_id: select.tesla_netzero_operation_mode
  81. - action: notify.my_phone
  82. metadata: {}
  83. data:
  84. message: Adjusting settings for free grid usage
  85. title: TOU - 9PM Automation
  86. - conditions:
  87. - condition: trigger
  88. id:
  89. - Powerwall Battery falls below 30%
  90. sequence:
  91. - action: notify.my_phone
  92. metadata: {}
  93. data:
  94. message: Powerwall Battery below 30%
  95. title: Backup Power levels low
  96. mode: single
  97.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement