Guest User

Zendure Manager Automation

a guest
Jul 28th, 2025
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.48 KB | None | 0 0
  1. alias: Zendure Manager
  2. description: ""
  3. triggers:
  4. - entity_id:
  5. - input_select.zendure_manager
  6. trigger: state
  7. id: "1"
  8. - trigger: time
  9. at: "15:00:00"
  10. id: "2"
  11. - trigger: state
  12. entity_id:
  13. - input_text.zendure_fout_met_nom_aansturing
  14. to: "1"
  15. id: "3"
  16. - trigger: state
  17. entity_id:
  18. - automation.zendure_worker
  19. to: "on"
  20. id: "4"
  21. - trigger: state
  22. entity_id:
  23. - automation.zendure_worker
  24. to: "off"
  25. id: "5"
  26. for:
  27. hours: 0
  28. minutes: 1
  29. seconds: 30
  30. - trigger: time_pattern
  31. seconds: /15
  32. id: "6"
  33. conditions: []
  34. actions:
  35. - if:
  36. - condition: trigger
  37. id:
  38. - "1"
  39. alias: Wanneer Zendure Manager verandert van staat of een van de attributen
  40. - condition: not
  41. conditions:
  42. - condition: state
  43. entity_id: input_select.zendure_manager
  44. state: Kalibreren
  45. then:
  46. - action: input_text.set_value
  47. metadata: {}
  48. data:
  49. value: "{{ states('input_select.zendure_manager') }}"
  50. target:
  51. entity_id: input_text.zendure_modus_onthouden
  52. alias: Zendure Modus Onthouden
  53. - alias: Wanneer Zendure Manager verandert nieuwe Modus uitvoeren
  54. if:
  55. - alias: Wanneer Zendure Manager verandert van staat of een van de attributen
  56. condition: trigger
  57. id:
  58. - "1"
  59. then:
  60. - action: automation.turn_off
  61. metadata: {}
  62. data:
  63. stop_actions: true
  64. target:
  65. entity_id: automation.zendure_worker
  66. - if:
  67. - condition: numeric_state
  68. entity_id: sensor.zendure_2400_ac_1_ingesteld_oplaadvermogen
  69. above: 0
  70. - condition: state
  71. entity_id: sensor.zendure_2400_ac_1_modus
  72. state: Opladen
  73. then:
  74. - action: rest_command.zendure_2400_ac_1_stoppen_modus_is_opladen
  75. data: {}
  76. - if:
  77. - condition: numeric_state
  78. entity_id: sensor.zendure_2400_ac_2_ingesteld_oplaadvermogen
  79. above: 0
  80. - condition: state
  81. entity_id: sensor.zendure_2400_ac_2_modus
  82. state: Opladen
  83. then:
  84. - action: rest_command.zendure_2400_ac_2_stoppen_modus_is_opladen
  85. data: {}
  86. - if:
  87. - condition: numeric_state
  88. entity_id: sensor.zendure_2400_ac_3_ingesteld_oplaadvermogen
  89. above: 0
  90. - condition: state
  91. entity_id: sensor.zendure_2400_ac_3_modus
  92. state: Opladen
  93. then:
  94. - action: rest_command.zendure_2400_ac_3_stoppen_modus_is_opladen
  95. data: {}
  96. - if:
  97. - condition: numeric_state
  98. entity_id: sensor.zendure_2400_ac_1_ingesteld_ontlaadvermogen
  99. above: 0
  100. - condition: state
  101. entity_id: sensor.zendure_2400_ac_1_modus
  102. state: Ontladen
  103. then:
  104. - action: rest_command.zendure_2400_ac_1_stoppen_modus_is_ontladen
  105. data: {}
  106. - if:
  107. - condition: numeric_state
  108. entity_id: sensor.zendure_2400_ac_2_ingesteld_ontlaadvermogen
  109. above: 0
  110. - condition: state
  111. entity_id: sensor.zendure_2400_ac_2_modus
  112. state: Ontladen
  113. then:
  114. - action: rest_command.zendure_2400_ac_2_stoppen_modus_is_ontladen
  115. data: {}
  116. - if:
  117. - condition: numeric_state
  118. entity_id: sensor.zendure_2400_ac_3_ingesteld_ontlaadvermogen
  119. above: 0
  120. - condition: state
  121. entity_id: sensor.zendure_2400_ac_3_modus
  122. state: Ontladen
  123. then:
  124. - action: rest_command.zendure_2400_ac_3_stoppen_modus_is_ontladen
  125. data: {}
  126. - if:
  127. - condition: not
  128. conditions:
  129. - condition: state
  130. entity_id: input_select.zendure_manager
  131. state: Handmatig
  132. - condition: state
  133. entity_id: input_number.zendure_handmatig_vermogen
  134. state: "0"
  135. then:
  136. - action: input_number.set_value
  137. metadata: {}
  138. data:
  139. value: 0
  140. target:
  141. entity_id: input_number.zendure_handmatig_vermogen
  142. - alias: Als Zendure Manager gelijk is aan Standby
  143. if:
  144. - condition: state
  145. entity_id: input_select.zendure_manager
  146. state: Standby
  147. then:
  148. - stop: Acties benodigd voor Standby Modus zijn allemaal uitgevoerd
  149. - alias: Als Zendure Manager gelijk is aan Kalibreren
  150. if:
  151. - condition: state
  152. entity_id: input_select.zendure_manager
  153. state: Kalibreren
  154. then:
  155. - data:
  156. socSet: 1000
  157. action: rest_command.zendure_2400_ac_1_maximale_laadpercentage_instellen
  158. - data:
  159. socSet: 1000
  160. action: rest_command.zendure_2400_ac_2_maximale_laadpercentage_instellen
  161. - data:
  162. socSet: 1000
  163. action: rest_command.zendure_2400_ac_3_maximale_laadpercentage_instellen
  164. - wait_template: >-
  165. {{ is_state('sensor.zendure_2400_ac_1_maximale_laadpercentage',
  166. '100') and
  167. is_state('sensor.zendure_2400_ac_2_maximale_laadpercentage',
  168. '100') and
  169. is_state('sensor.zendure_2400_ac_3_maximale_laadpercentage',
  170. '100') }}
  171. continue_on_timeout: true
  172. timeout: "60"
  173. - action: automation.turn_on
  174. metadata: {}
  175. data: {}
  176. target:
  177. entity_id: automation.zendure_worker
  178. - alias: Elke Zondag om 15:00 uur Zendure Manager instellen op Kalibreren
  179. if:
  180. - condition: trigger
  181. id:
  182. - "2"
  183. alias: Wanneer de tijd gelijk is aan 15:00
  184. - condition: time
  185. weekday:
  186. - sun
  187. - condition: not
  188. conditions:
  189. - condition: state
  190. entity_id: input_select.zendure_manager
  191. state: Kalibreren
  192. then:
  193. - action: input_select.select_option
  194. metadata: {}
  195. data:
  196. option: Kalibreren
  197. target:
  198. entity_id: input_select.zendure_manager
  199. - alias: Wanneer Zendure Fout met NOM Aansturing en NOM is actief dan stoppen
  200. if:
  201. - alias: >-
  202. Wanneer Zendure Fout met NOM Aansturing verandert naar 1 of Wanneer
  203. Zendure Worker verandert naar Aan
  204. condition: trigger
  205. id:
  206. - "3"
  207. - "4"
  208. - condition: state
  209. entity_id: input_text.zendure_fout_met_nom_aansturing
  210. state: "1"
  211. - condition: or
  212. conditions:
  213. - condition: state
  214. entity_id: input_select.zendure_manager
  215. state: Nul op de Meter (NOM)
  216. - condition: state
  217. entity_id: input_select.zendure_manager
  218. state: NOM Alleen Opladen
  219. - condition: state
  220. entity_id: input_select.zendure_manager
  221. state: NOM Alleen Ontladen
  222. then:
  223. - action: automation.turn_off
  224. metadata: {}
  225. data:
  226. stop_actions: true
  227. target:
  228. entity_id: automation.zendure_worker
  229. - if:
  230. - condition: numeric_state
  231. entity_id: sensor.zendure_2400_ac_1_ingesteld_oplaadvermogen
  232. above: 0
  233. - condition: state
  234. entity_id: sensor.zendure_2400_ac_1_modus
  235. state: Opladen
  236. then:
  237. - action: rest_command.zendure_2400_ac_1_stoppen_modus_is_opladen
  238. data: {}
  239. - if:
  240. - condition: numeric_state
  241. entity_id: sensor.zendure_2400_ac_2_ingesteld_oplaadvermogen
  242. above: 0
  243. - condition: state
  244. entity_id: sensor.zendure_2400_ac_2_modus
  245. state: Opladen
  246. then:
  247. - action: rest_command.zendure_2400_ac_2_stoppen_modus_is_opladen
  248. data: {}
  249. - if:
  250. - condition: numeric_state
  251. entity_id: sensor.zendure_2400_ac_3_ingesteld_oplaadvermogen
  252. above: 0
  253. - condition: state
  254. entity_id: sensor.zendure_2400_ac_3_modus
  255. state: Opladen
  256. then:
  257. - action: rest_command.zendure_2400_ac_3_stoppen_modus_is_opladen
  258. data: {}
  259. - if:
  260. - condition: numeric_state
  261. entity_id: sensor.zendure_2400_ac_1_ingesteld_ontlaadvermogen
  262. above: 0
  263. - condition: state
  264. entity_id: sensor.zendure_2400_ac_1_modus
  265. state: Ontladen
  266. then:
  267. - action: rest_command.zendure_2400_ac_1_stoppen_modus_is_ontladen
  268. data: {}
  269. - if:
  270. - condition: numeric_state
  271. entity_id: sensor.zendure_2400_ac_2_ingesteld_ontlaadvermogen
  272. above: 0
  273. - condition: state
  274. entity_id: sensor.zendure_2400_ac_2_modus
  275. state: Ontladen
  276. then:
  277. - action: rest_command.zendure_2400_ac_2_stoppen_modus_is_ontladen
  278. data: {}
  279. - if:
  280. - condition: numeric_state
  281. entity_id: sensor.zendure_2400_ac_3_ingesteld_ontlaadvermogen
  282. above: 0
  283. - condition: state
  284. entity_id: sensor.zendure_2400_ac_3_modus
  285. state: Ontladen
  286. then:
  287. - action: rest_command.zendure_2400_ac_3_stoppen_modus_is_ontladen
  288. data: {}
  289. - stop: Fout met NOM Aansturing
  290. error: true
  291. - alias: >-
  292. Wanneer Zendure Fout met NOM Aansturing hersteld en NOM is actief dan
  293. starten
  294. if:
  295. - condition: trigger
  296. id:
  297. - "6"
  298. - condition: state
  299. entity_id: input_text.zendure_fout_met_nom_aansturing
  300. state: "1"
  301. - condition: template
  302. value_template: >-
  303. {{ (now().timestamp() -
  304. as_timestamp(states.sensor.p1_aansturing_api_v1.last_changed)) < 6 }}
  305. - condition: or
  306. conditions:
  307. - condition: template
  308. value_template: >-
  309. {{ (now().timestamp() -
  310. as_timestamp(states.sensor.zendure_2400_ac_1_3_vermogen_aansturing_api_v1.last_changed))
  311. < 6 }}
  312. - condition: template
  313. value_template: >-
  314. {{ (now().timestamp() -
  315. as_timestamp(states.sensor.zendure_2400_ac_1_voltage_aansturing_api_v1.last_changed))
  316. < 6 }}
  317. - condition: template
  318. value_template: >-
  319. {{ (now().timestamp() -
  320. as_timestamp(states.sensor.zendure_2400_ac_2_voltage_aansturing_api_v1.last_changed))
  321. < 6 }}
  322. - condition: template
  323. value_template: >-
  324. {{ (now().timestamp() -
  325. as_timestamp(states.sensor.zendure_2400_ac_3_voltage_aansturing_api_v1.last_changed))
  326. < 6 }}
  327. then:
  328. - action: input_text.set_value
  329. metadata: {}
  330. data:
  331. value: "0"
  332. target:
  333. entity_id: input_text.zendure_fout_met_nom_aansturing
  334. - if:
  335. - condition: or
  336. conditions:
  337. - condition: state
  338. entity_id: input_select.zendure_manager
  339. state: Nul op de Meter (NOM)
  340. - condition: state
  341. entity_id: input_select.zendure_manager
  342. state: NOM Alleen Opladen
  343. - condition: state
  344. entity_id: input_select.zendure_manager
  345. state: NOM Alleen Ontladen
  346. then:
  347. - action: automation.turn_on
  348. metadata: {}
  349. data: {}
  350. target:
  351. entity_id: automation.zendure_worker
  352. - alias: >-
  353. Wanneer Zendure Worker verandert naar Uit gedurende 1:30 en ingestelde
  354. Modus heeft Zendure Worker nodig dan Zendure Worker Aanzetten
  355. if:
  356. - condition: trigger
  357. id:
  358. - "5"
  359. alias: Wanneer Zendure Worker verandert naar Uit gedurende 1:30
  360. - condition: state
  361. entity_id: input_text.zendure_ha_stop_of_herstart_wordt_uitgevoerd
  362. state: "0"
  363. - condition: state
  364. entity_id: input_text.zendure_fout_met_nom_aansturing
  365. state: "0"
  366. - condition: not
  367. conditions:
  368. - condition: state
  369. entity_id: input_select.zendure_manager
  370. state: Standby
  371. then:
  372. - action: automation.turn_on
  373. metadata: {}
  374. data: {}
  375. target:
  376. entity_id: automation.zendure_worker
  377. - alias: Wanneer opslag modus op Flash staat deze op RAM instellen
  378. if:
  379. - condition: trigger
  380. id:
  381. - "6"
  382. - condition: or
  383. conditions:
  384. - condition: state
  385. entity_id: sensor.zendure_2400_ac_1_opslagmodus
  386. state: Opslaan in Flash
  387. - condition: state
  388. entity_id: sensor.zendure_2400_ac_2_opslagmodus
  389. state: Opslaan in Flash
  390. - condition: state
  391. entity_id: sensor.zendure_2400_ac_3_opslagmodus
  392. state: Opslaan in Flash
  393. then:
  394. - if:
  395. - condition: state
  396. entity_id: sensor.zendure_2400_ac_1_opslagmodus
  397. state: Opslaan in Flash
  398. - condition: state
  399. entity_id: sensor.zendure_2400_ac_2_opslagmodus
  400. state: Opslaan in Flash
  401. - condition: state
  402. entity_id: sensor.zendure_2400_ac_3_opslagmodus
  403. state: Opslaan in Flash
  404. then:
  405. - action: rest_command.zendure_2400_ac_1_opslaan_in_ram
  406. data: {}
  407. - action: rest_command.zendure_2400_ac_2_opslaan_in_ram
  408. data: {}
  409. - action: rest_command.zendure_2400_ac_3_opslaan_in_ram
  410. data: {}
  411. - if:
  412. - condition: state
  413. entity_id: sensor.zendure_2400_ac_1_opslagmodus
  414. state: Opslaan in Flash
  415. - condition: state
  416. entity_id: sensor.zendure_2400_ac_2_opslagmodus
  417. state: Opslaan in Flash
  418. - condition: state
  419. entity_id: sensor.zendure_2400_ac_3_opslagmodus
  420. state: Opslaan in RAM
  421. then:
  422. - action: rest_command.zendure_2400_ac_1_opslaan_in_ram
  423. data: {}
  424. - action: rest_command.zendure_2400_ac_2_opslaan_in_ram
  425. data: {}
  426. - if:
  427. - condition: state
  428. entity_id: sensor.zendure_2400_ac_1_opslagmodus
  429. state: Opslaan in Flash
  430. - condition: state
  431. entity_id: sensor.zendure_2400_ac_2_opslagmodus
  432. state: Opslaan in RAM
  433. - condition: state
  434. entity_id: sensor.zendure_2400_ac_3_opslagmodus
  435. state: Opslaan in Flash
  436. then:
  437. - action: rest_command.zendure_2400_ac_1_opslaan_in_ram
  438. data: {}
  439. - action: rest_command.zendure_2400_ac_3_opslaan_in_ram
  440. data: {}
  441. - if:
  442. - condition: state
  443. entity_id: sensor.zendure_2400_ac_1_opslagmodus
  444. state: Opslaan in RAM
  445. - condition: state
  446. entity_id: sensor.zendure_2400_ac_2_opslagmodus
  447. state: Opslaan in Flash
  448. - condition: state
  449. entity_id: sensor.zendure_2400_ac_3_opslagmodus
  450. state: Opslaan in Flash
  451. then:
  452. - action: rest_command.zendure_2400_ac_2_opslaan_in_ram
  453. data: {}
  454. - action: rest_command.zendure_2400_ac_3_opslaan_in_ram
  455. data: {}
  456. - if:
  457. - condition: state
  458. entity_id: sensor.zendure_2400_ac_1_opslagmodus
  459. state: Opslaan in Flash
  460. - condition: state
  461. entity_id: sensor.zendure_2400_ac_2_opslagmodus
  462. state: Opslaan in RAM
  463. - condition: state
  464. entity_id: sensor.zendure_2400_ac_3_opslagmodus
  465. state: Opslaan in RAM
  466. then:
  467. - action: rest_command.zendure_2400_ac_1_opslaan_in_ram
  468. data: {}
  469. - if:
  470. - condition: state
  471. entity_id: sensor.zendure_2400_ac_1_opslagmodus
  472. state: Opslaan in RAM
  473. - condition: state
  474. entity_id: sensor.zendure_2400_ac_2_opslagmodus
  475. state: Opslaan in Flash
  476. - condition: state
  477. entity_id: sensor.zendure_2400_ac_3_opslagmodus
  478. state: Opslaan in RAM
  479. then:
  480. - action: rest_command.zendure_2400_ac_2_opslaan_in_ram
  481. data: {}
  482. - if:
  483. - condition: state
  484. entity_id: sensor.zendure_2400_ac_1_opslagmodus
  485. state: Opslaan in RAM
  486. - condition: state
  487. entity_id: sensor.zendure_2400_ac_2_opslagmodus
  488. state: Opslaan in RAM
  489. - condition: state
  490. entity_id: sensor.zendure_2400_ac_3_opslagmodus
  491. state: Opslaan in Flash
  492. then:
  493. - action: rest_command.zendure_2400_ac_3_opslaan_in_ram
  494. data: {}
  495. - alias: >-
  496. Wanneer Minimale Laadpercentage niet op 10% en/of Maximale Laadpercentage
  497. niet op 90% staat deze instellen (tenzij Kalibreren)
  498. if:
  499. - condition: trigger
  500. id:
  501. - "6"
  502. - condition: or
  503. conditions:
  504. - condition: not
  505. conditions:
  506. - condition: state
  507. entity_id: sensor.zendure_2400_ac_1_minimale_laadpercentage
  508. state: "10"
  509. - condition: not
  510. conditions:
  511. - condition: state
  512. entity_id: sensor.zendure_2400_ac_2_minimale_laadpercentage
  513. state: "10"
  514. - condition: not
  515. conditions:
  516. - condition: state
  517. entity_id: sensor.zendure_2400_ac_3_minimale_laadpercentage
  518. state: "10"
  519. - condition: and
  520. conditions:
  521. - condition: not
  522. conditions:
  523. - condition: state
  524. entity_id: input_select.zendure_manager
  525. state: Kalibreren
  526. - condition: or
  527. conditions:
  528. - condition: not
  529. conditions:
  530. - condition: state
  531. entity_id: sensor.zendure_2400_ac_1_maximale_laadpercentage
  532. state: "90"
  533. - condition: not
  534. conditions:
  535. - condition: state
  536. entity_id: sensor.zendure_2400_ac_2_maximale_laadpercentage
  537. state: "90"
  538. - condition: not
  539. conditions:
  540. - condition: state
  541. entity_id: sensor.zendure_2400_ac_3_maximale_laadpercentage
  542. state: "90"
  543. then:
  544. - if:
  545. - condition: not
  546. conditions:
  547. - condition: state
  548. entity_id: sensor.zendure_2400_ac_1_minimale_laadpercentage
  549. state: "10"
  550. then:
  551. - data:
  552. minSoc: 100
  553. action: rest_command.zendure_2400_ac_1_minimale_laadpercentage_instellen
  554. - if:
  555. - condition: not
  556. conditions:
  557. - condition: state
  558. entity_id: sensor.zendure_2400_ac_2_minimale_laadpercentage
  559. state: "10"
  560. then:
  561. - data:
  562. minSoc: 100
  563. action: rest_command.zendure_2400_ac_2_minimale_laadpercentage_instellen
  564. - if:
  565. - condition: not
  566. conditions:
  567. - condition: state
  568. entity_id: sensor.zendure_2400_ac_3_minimale_laadpercentage
  569. state: "10"
  570. then:
  571. - data:
  572. minSoc: 100
  573. action: rest_command.zendure_2400_ac_3_minimale_laadpercentage_instellen
  574. - if:
  575. - condition: not
  576. conditions:
  577. - condition: state
  578. entity_id: input_select.zendure_manager
  579. state: Kalibreren
  580. then:
  581. - if:
  582. - condition: not
  583. conditions:
  584. - condition: state
  585. entity_id: sensor.zendure_2400_ac_1_maximale_laadpercentage
  586. state: "90"
  587. then:
  588. - data:
  589. socSet: 900
  590. action: >-
  591. rest_command.zendure_2400_ac_1_maximale_laadpercentage_instellen
  592. - if:
  593. - condition: not
  594. conditions:
  595. - condition: state
  596. entity_id: sensor.zendure_2400_ac_2_maximale_laadpercentage
  597. state: "90"
  598. then:
  599. - data:
  600. socSet: 900
  601. action: >-
  602. rest_command.zendure_2400_ac_2_maximale_laadpercentage_instellen
  603. - if:
  604. - condition: not
  605. conditions:
  606. - condition: state
  607. entity_id: sensor.zendure_2400_ac_3_maximale_laadpercentage
  608. state: "90"
  609. then:
  610. - data:
  611. socSet: 900
  612. action: >-
  613. rest_command.zendure_2400_ac_3_maximale_laadpercentage_instellen
  614. - alias: Wanneer Modus Omvormers niet Synchroon detecteren en corrigeren
  615. if:
  616. - condition: trigger
  617. id:
  618. - "6"
  619. - condition: or
  620. conditions:
  621. - condition: and
  622. conditions:
  623. - condition: state
  624. entity_id: sensor.zendure_2400_ac_1_modus
  625. state: Opladen
  626. for:
  627. hours: 0
  628. minutes: 1
  629. seconds: 30
  630. - condition: state
  631. entity_id: sensor.zendure_2400_ac_2_modus
  632. state: Opladen
  633. for:
  634. hours: 0
  635. minutes: 1
  636. seconds: 30
  637. - condition: state
  638. entity_id: sensor.zendure_2400_ac_3_modus
  639. state: Ontladen
  640. for:
  641. hours: 0
  642. minutes: 1
  643. seconds: 30
  644. - condition: or
  645. conditions:
  646. - condition: numeric_state
  647. entity_id: sensor.zendure_2400_ac_3_ingesteld_oplaadvermogen
  648. above: 0
  649. - condition: state
  650. entity_id: input_select.zendure_manager
  651. state: Standby
  652. for:
  653. hours: 0
  654. minutes: 1
  655. seconds: 30
  656. - condition: and
  657. conditions:
  658. - condition: state
  659. entity_id: sensor.zendure_2400_ac_1_modus
  660. state: Opladen
  661. for:
  662. hours: 0
  663. minutes: 1
  664. seconds: 30
  665. - condition: state
  666. entity_id: sensor.zendure_2400_ac_2_modus
  667. state: Ontladen
  668. for:
  669. hours: 0
  670. minutes: 1
  671. seconds: 30
  672. - condition: state
  673. entity_id: sensor.zendure_2400_ac_3_modus
  674. state: Opladen
  675. for:
  676. hours: 0
  677. minutes: 1
  678. seconds: 30
  679. - condition: or
  680. conditions:
  681. - condition: numeric_state
  682. entity_id: sensor.zendure_2400_ac_2_ingesteld_oplaadvermogen
  683. above: 0
  684. - condition: state
  685. entity_id: input_select.zendure_manager
  686. state: Standby
  687. for:
  688. hours: 0
  689. minutes: 1
  690. seconds: 30
  691. - condition: and
  692. conditions:
  693. - condition: state
  694. entity_id: sensor.zendure_2400_ac_1_modus
  695. state: Ontladen
  696. for:
  697. hours: 0
  698. minutes: 1
  699. seconds: 30
  700. - condition: state
  701. entity_id: sensor.zendure_2400_ac_2_modus
  702. state: Opladen
  703. for:
  704. hours: 0
  705. minutes: 1
  706. seconds: 30
  707. - condition: state
  708. entity_id: sensor.zendure_2400_ac_3_modus
  709. state: Opladen
  710. for:
  711. hours: 0
  712. minutes: 1
  713. seconds: 30
  714. - condition: or
  715. conditions:
  716. - condition: numeric_state
  717. entity_id: sensor.zendure_2400_ac_1_ingesteld_oplaadvermogen
  718. above: 0
  719. - condition: state
  720. entity_id: input_select.zendure_manager
  721. state: Standby
  722. for:
  723. hours: 0
  724. minutes: 1
  725. seconds: 30
  726. - condition: and
  727. conditions:
  728. - condition: state
  729. entity_id: sensor.zendure_2400_ac_1_modus
  730. state: Ontladen
  731. for:
  732. hours: 0
  733. minutes: 1
  734. seconds: 30
  735. - condition: state
  736. entity_id: sensor.zendure_2400_ac_2_modus
  737. state: Ontladen
  738. for:
  739. hours: 0
  740. minutes: 1
  741. seconds: 30
  742. - condition: state
  743. entity_id: sensor.zendure_2400_ac_3_modus
  744. state: Opladen
  745. for:
  746. hours: 0
  747. minutes: 1
  748. seconds: 30
  749. - condition: or
  750. conditions:
  751. - condition: numeric_state
  752. entity_id: sensor.zendure_2400_ac_3_ingesteld_ontlaadvermogen
  753. above: 0
  754. - condition: state
  755. entity_id: input_select.zendure_manager
  756. state: Standby
  757. for:
  758. hours: 0
  759. minutes: 1
  760. seconds: 30
  761. - condition: and
  762. conditions:
  763. - condition: state
  764. entity_id: sensor.zendure_2400_ac_1_modus
  765. state: Ontladen
  766. for:
  767. hours: 0
  768. minutes: 1
  769. seconds: 30
  770. - condition: state
  771. entity_id: sensor.zendure_2400_ac_2_modus
  772. state: Opladen
  773. for:
  774. hours: 0
  775. minutes: 1
  776. seconds: 30
  777. - condition: state
  778. entity_id: sensor.zendure_2400_ac_3_modus
  779. state: Ontladen
  780. for:
  781. hours: 0
  782. minutes: 1
  783. seconds: 30
  784. - condition: or
  785. conditions:
  786. - condition: numeric_state
  787. entity_id: sensor.zendure_2400_ac_2_ingesteld_ontlaadvermogen
  788. above: 0
  789. - condition: state
  790. entity_id: input_select.zendure_manager
  791. state: Standby
  792. for:
  793. hours: 0
  794. minutes: 1
  795. seconds: 30
  796. - condition: and
  797. conditions:
  798. - condition: state
  799. entity_id: sensor.zendure_2400_ac_1_modus
  800. state: Opladen
  801. for:
  802. hours: 0
  803. minutes: 1
  804. seconds: 30
  805. - condition: state
  806. entity_id: sensor.zendure_2400_ac_2_modus
  807. state: Ontladen
  808. for:
  809. hours: 0
  810. minutes: 1
  811. seconds: 30
  812. - condition: state
  813. entity_id: sensor.zendure_2400_ac_3_modus
  814. state: Ontladen
  815. for:
  816. hours: 0
  817. minutes: 1
  818. seconds: 30
  819. - condition: or
  820. conditions:
  821. - condition: numeric_state
  822. entity_id: sensor.zendure_2400_ac_1_ingesteld_ontlaadvermogen
  823. above: 0
  824. - condition: state
  825. entity_id: input_select.zendure_manager
  826. state: Standby
  827. for:
  828. hours: 0
  829. minutes: 1
  830. seconds: 30
  831. then:
  832. - action: automation.turn_off
  833. metadata: {}
  834. data:
  835. stop_actions: true
  836. target:
  837. entity_id: automation.zendure_worker
  838. - if:
  839. - condition: state
  840. entity_id: sensor.zendure_2400_ac_1_modus
  841. state: Opladen
  842. for:
  843. hours: 0
  844. minutes: 1
  845. seconds: 30
  846. - condition: state
  847. entity_id: sensor.zendure_2400_ac_2_modus
  848. state: Opladen
  849. for:
  850. hours: 0
  851. minutes: 1
  852. seconds: 30
  853. - condition: state
  854. entity_id: sensor.zendure_2400_ac_3_modus
  855. state: Ontladen
  856. for:
  857. hours: 0
  858. minutes: 1
  859. seconds: 30
  860. - condition: or
  861. conditions:
  862. - condition: numeric_state
  863. entity_id: sensor.zendure_2400_ac_3_ingesteld_oplaadvermogen
  864. above: 0
  865. - condition: state
  866. entity_id: input_select.zendure_manager
  867. state: Standby
  868. for:
  869. hours: 0
  870. minutes: 1
  871. seconds: 30
  872. then:
  873. - action: rest_command.zendure_2400_ac_1_stoppen_modus_is_ontladen
  874. data: {}
  875. - action: rest_command.zendure_2400_ac_2_stoppen_modus_is_ontladen
  876. data: {}
  877. - action: rest_command.zendure_2400_ac_3_stoppen_modus_is_ontladen
  878. data: {}
  879. - if:
  880. - condition: state
  881. entity_id: sensor.zendure_2400_ac_1_modus
  882. state: Opladen
  883. for:
  884. hours: 0
  885. minutes: 1
  886. seconds: 30
  887. - condition: state
  888. entity_id: sensor.zendure_2400_ac_2_modus
  889. state: Ontladen
  890. for:
  891. hours: 0
  892. minutes: 1
  893. seconds: 30
  894. - condition: state
  895. entity_id: sensor.zendure_2400_ac_3_modus
  896. state: Opladen
  897. for:
  898. hours: 0
  899. minutes: 1
  900. seconds: 30
  901. - condition: or
  902. conditions:
  903. - condition: numeric_state
  904. entity_id: sensor.zendure_2400_ac_2_ingesteld_oplaadvermogen
  905. above: 0
  906. - condition: state
  907. entity_id: input_select.zendure_manager
  908. state: Standby
  909. for:
  910. hours: 0
  911. minutes: 1
  912. seconds: 30
  913. then:
  914. - action: rest_command.zendure_2400_ac_1_stoppen_modus_is_ontladen
  915. data: {}
  916. - action: rest_command.zendure_2400_ac_2_stoppen_modus_is_ontladen
  917. data: {}
  918. - action: rest_command.zendure_2400_ac_3_stoppen_modus_is_ontladen
  919. data: {}
  920. - if:
  921. - condition: state
  922. entity_id: sensor.zendure_2400_ac_1_modus
  923. state: Ontladen
  924. for:
  925. hours: 0
  926. minutes: 1
  927. seconds: 30
  928. - condition: state
  929. entity_id: sensor.zendure_2400_ac_2_modus
  930. state: Opladen
  931. for:
  932. hours: 0
  933. minutes: 1
  934. seconds: 30
  935. - condition: state
  936. entity_id: sensor.zendure_2400_ac_3_modus
  937. state: Opladen
  938. for:
  939. hours: 0
  940. minutes: 1
  941. seconds: 30
  942. - condition: or
  943. conditions:
  944. - condition: numeric_state
  945. entity_id: sensor.zendure_2400_ac_1_ingesteld_oplaadvermogen
  946. above: 0
  947. - condition: state
  948. entity_id: input_select.zendure_manager
  949. state: Standby
  950. for:
  951. hours: 0
  952. minutes: 1
  953. seconds: 30
  954. then:
  955. - action: rest_command.zendure_2400_ac_1_stoppen_modus_is_ontladen
  956. data: {}
  957. - action: rest_command.zendure_2400_ac_2_stoppen_modus_is_ontladen
  958. data: {}
  959. - action: rest_command.zendure_2400_ac_3_stoppen_modus_is_ontladen
  960. data: {}
  961. - if:
  962. - condition: state
  963. entity_id: sensor.zendure_2400_ac_1_modus
  964. state: Ontladen
  965. for:
  966. hours: 0
  967. minutes: 1
  968. seconds: 30
  969. - condition: state
  970. entity_id: sensor.zendure_2400_ac_2_modus
  971. state: Ontladen
  972. for:
  973. hours: 0
  974. minutes: 1
  975. seconds: 30
  976. - condition: state
  977. entity_id: sensor.zendure_2400_ac_3_modus
  978. state: Opladen
  979. for:
  980. hours: 0
  981. minutes: 1
  982. seconds: 30
  983. - condition: or
  984. conditions:
  985. - condition: numeric_state
  986. entity_id: sensor.zendure_2400_ac_3_ingesteld_ontlaadvermogen
  987. above: 0
  988. - condition: state
  989. entity_id: input_select.zendure_manager
  990. state: Standby
  991. for:
  992. hours: 0
  993. minutes: 1
  994. seconds: 30
  995. then:
  996. - action: rest_command.zendure_2400_ac_1_stoppen_modus_is_opladen
  997. data: {}
  998. - action: rest_command.zendure_2400_ac_2_stoppen_modus_is_opladen
  999. data: {}
  1000. - action: rest_command.zendure_2400_ac_3_stoppen_modus_is_opladen
  1001. data: {}
  1002. - if:
  1003. - condition: state
  1004. entity_id: sensor.zendure_2400_ac_1_modus
  1005. state: Ontladen
  1006. for:
  1007. hours: 0
  1008. minutes: 1
  1009. seconds: 30
  1010. - condition: state
  1011. entity_id: sensor.zendure_2400_ac_2_modus
  1012. state: Opladen
  1013. for:
  1014. hours: 0
  1015. minutes: 1
  1016. seconds: 30
  1017. - condition: state
  1018. entity_id: sensor.zendure_2400_ac_3_modus
  1019. state: Ontladen
  1020. for:
  1021. hours: 0
  1022. minutes: 1
  1023. seconds: 30
  1024. - condition: or
  1025. conditions:
  1026. - condition: numeric_state
  1027. entity_id: sensor.zendure_2400_ac_2_ingesteld_ontlaadvermogen
  1028. above: 0
  1029. - condition: state
  1030. entity_id: input_select.zendure_manager
  1031. state: Standby
  1032. for:
  1033. hours: 0
  1034. minutes: 1
  1035. seconds: 30
  1036. then:
  1037. - action: rest_command.zendure_2400_ac_1_stoppen_modus_is_opladen
  1038. data: {}
  1039. - action: rest_command.zendure_2400_ac_2_stoppen_modus_is_opladen
  1040. data: {}
  1041. - action: rest_command.zendure_2400_ac_3_stoppen_modus_is_opladen
  1042. data: {}
  1043. - if:
  1044. - condition: state
  1045. entity_id: sensor.zendure_2400_ac_1_modus
  1046. state: Opladen
  1047. for:
  1048. hours: 0
  1049. minutes: 1
  1050. seconds: 30
  1051. - condition: state
  1052. entity_id: sensor.zendure_2400_ac_2_modus
  1053. state: Ontladen
  1054. for:
  1055. hours: 0
  1056. minutes: 1
  1057. seconds: 30
  1058. - condition: state
  1059. entity_id: sensor.zendure_2400_ac_3_modus
  1060. state: Ontladen
  1061. for:
  1062. hours: 0
  1063. minutes: 1
  1064. seconds: 30
  1065. - condition: or
  1066. conditions:
  1067. - condition: numeric_state
  1068. entity_id: sensor.zendure_2400_ac_1_ingesteld_ontlaadvermogen
  1069. above: 0
  1070. - condition: state
  1071. entity_id: input_select.zendure_manager
  1072. state: Standby
  1073. for:
  1074. hours: 0
  1075. minutes: 1
  1076. seconds: 30
  1077. then:
  1078. - action: rest_command.zendure_2400_ac_1_stoppen_modus_is_opladen
  1079. data: {}
  1080. - action: rest_command.zendure_2400_ac_2_stoppen_modus_is_opladen
  1081. data: {}
  1082. - action: rest_command.zendure_2400_ac_3_stoppen_modus_is_opladen
  1083. data: {}
  1084. - if:
  1085. - condition: not
  1086. conditions:
  1087. - condition: state
  1088. entity_id: input_select.zendure_manager
  1089. state: Standby
  1090. then:
  1091. - action: automation.turn_on
  1092. metadata: {}
  1093. data: {}
  1094. target:
  1095. entity_id: automation.zendure_worker
  1096. - alias: Wanneer Led op Aan staat deze op Uit instellen
  1097. if:
  1098. - condition: trigger
  1099. id:
  1100. - "6"
  1101. - condition: or
  1102. conditions:
  1103. - condition: state
  1104. entity_id: sensor.zendure_2400_ac_1_led
  1105. state: Aan
  1106. - condition: state
  1107. entity_id: sensor.zendure_2400_ac_2_led
  1108. state: Aan
  1109. - condition: state
  1110. entity_id: sensor.zendure_2400_ac_3_led
  1111. state: Aan
  1112. then:
  1113. - if:
  1114. - condition: state
  1115. entity_id: sensor.zendure_2400_ac_1_led
  1116. state: Aan
  1117. then:
  1118. - action: rest_command.zendure_2400_ac_1_led_uit
  1119. data: {}
  1120. - if:
  1121. - condition: state
  1122. entity_id: sensor.zendure_2400_ac_2_led
  1123. state: Aan
  1124. then:
  1125. - action: rest_command.zendure_2400_ac_2_led_uit
  1126. data: {}
  1127. - if:
  1128. - condition: state
  1129. entity_id: sensor.zendure_2400_ac_3_led
  1130. state: Aan
  1131. then:
  1132. - action: rest_command.zendure_2400_ac_3_led_uit
  1133. data: {}
  1134. mode: single
  1135.  
Advertisement
Add Comment
Please, Sign In to add comment