![]() |
|
Creation automatisme - Version imprimable +- Forums (https://smartphoton.ch/forum) +-- Forum : Général (https://smartphoton.ch/forum/forum-1.html) +--- Forum : Général (https://smartphoton.ch/forum/forum-11.html) +--- Sujet : Creation automatisme (/thread-1037.html) |
Creation automatisme - Chassin - 18-02-2026 Bonjours, voilà j'essaye de créer un automatisme pour que smartphoton passe du mode SBU au mode solaire quand la batterie a moins de 51% mais je connais pas le langage YAML je vous met ce que j'ai fait qui ne fonctionne pas alias: Charge Batterie Faible description: SBU vers SOL triggers: - trigger: state entity_id: - sensor.voltronic_1_batt_battery attribute: "-51%" conditions: [] actions: - device_id: 08775dfe2ff1e6413b51f5fcac682090 domain: select entity_id: 1e0a44fa61a4dfc0b8446b781d7738da type: select_option option: SOL mode: single Merci de votre aide RE: Creation automatisme - Sylvain - 19-02-2026 (18-02-2026, 08:46 PM)Chassin a écrit : Bonjours,Bonjour, Reponse de chatgpt: ? Pourquoi la tienne ne marchait pas ? ✔️ Trigger mal écrit ✔️ Attribute utilisé comme valeur ✔️ Pas de comparaison numérique ✔️ Donc elle ne se déclenche jamais Corriger: alias: Charge Batterie Faible description: Passage SBU vers SOL si batterie faible trigger: - platform: numeric_state entity_id: sensor.voltronic_1_batt_battery below: 51 condition: [] action: - service: select.select_option target: entity_id: select.voltronic_1_output_source_priority data: option: "SOL" mode: single RE: Creation automatisme - Chassin - 19-02-2026 Bonjour, Le début est bon j'ai changer la fin et ca fonctionne alias: Charge Batterie Faible description: Passage SBU vers SOL si batterie faible trigger: - platform: numeric_state entity_id: sensor.voltronic_1_batt_battery below: 51 conditions: [] actions: - device_id: 08775dfe2ff1e6413b51f5fcac682090 domain: select entity_id: 1e0a44fa61a4dfc0b8446b781d7738da type: select_option option: SOL mode: single Un Grand Merci Sylvain |