Mon problème
Bonjour à tous.
J’ai créé un script pour gérer automatiquement l’ouverture et la fermeture des volets selon la luminosité et l’heure.
Or, j’ai l’impression que mes volets n’en font qu’à leur tête. Un matin les volets seront ouverts à mon réveil, et le lendemain alors que je n’ai pas touché au script et que les conditions sont remplies, ils seront fermés.
Pareil pour la fermeture le soir, c’est aléatoire.
Voilà le script que j’ai fait. De base je l’ai fait via l’éditeur visuel. Pour le forum je l’ai affiché en YAML.
alias: Gestion volets
description: ""
trigger:
- platform: time
at: "08:00:00"
id: 8h
- platform: time
at: "19:00:00"
id: 19h
- type: temperature
platform: device
device_id: c0187265647d82122e1de1e7652c5440
entity_id: c69d1f5fb99b6943e948482c480d0c56
domain: sensor
above: 26
id: TempExt
- type: illuminance
platform: device
device_id: a57583139cb71946cadc6457094ec312
entity_id: 53319f3d21cb849f77a4662de25caef5
domain: sensor
above: 10
below: 80
id: LumiereFaible
- type: illuminance
platform: device
device_id: a57583139cb71946cadc6457094ec312
entity_id: 53319f3d21cb849f77a4662de25caef5
domain: sensor
above: 5000
below: 200000
id: LumiereJournée
- type: illuminance
platform: device
device_id: a57583139cb71946cadc6457094ec312
entity_id: 53319f3d21cb849f77a4662de25caef5
domain: sensor
above: 100
below: 150
id: LumiereSoir
- type: illuminance
platform: device
device_id: a57583139cb71946cadc6457094ec312
entity_id: 53319f3d21cb849f77a4662de25caef5
domain: sensor
above: 0
below: 40
id: LumiereNuit
condition: []
action:
- if:
- condition: trigger
id:
- LumiereFaible
- condition: and
conditions:
- condition: time
after: "05:00:00"
before: "08:30:00"
enabled: true
then:
- device_id: 99f0a479ea8d8cba6407aea59fb1bc96
domain: cover
entity_id: 409871ec0b5e1429746b7d7e6bfc234f
type: open
- device_id: 91a3bcaacb190e568ac3f8274890817e
domain: cover
entity_id: 5ee4647227ae808214ae0aa7d8dbb477
type: open
- device_id: 7d580f0322d72f89c5873da339d4b53d
domain: cover
entity_id: 22fb66c8094b5e7aac0112c9329d83af
type: set_position
position: 50
- service: notify.mobile_app_pixel_6_pro
metadata: {}
data:
message: Ouverture volet cuisine
title: 🏠 Volet 🏠
enabled: false
- if:
- condition: trigger
id:
- LumiereJournée
then:
- if:
- condition: state
entity_id: input_boolean.vacances_exterieures
state: "on"
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.jourtravail
state: "on"
then:
- if:
- condition: time
after: "07:15:00"
before: "08:30:00"
then:
- device_id: 7d1f9294f4fc12fc0ce43177a6876e16
domain: cover
entity_id: 9b8db3dff82ddcd7218c48b962a50db0
type: open
- device_id: 27af172fa4328d5412f662a2a4b5e59b
domain: cover
entity_id: 75d3a5a8fb790759f4af4e7586202f1f
type: open
- device_id: 99f0a479ea8d8cba6407aea59fb1bc96
domain: cover
entity_id: 409871ec0b5e1429746b7d7e6bfc234f
type: open
- device_id: 6a495d0f802ab2ff7882810e0c876e1c
domain: cover
entity_id: 06fbc3d6c565f2b9acafeb3aee7351a9
type: open
- device_id: 7d580f0322d72f89c5873da339d4b53d
domain: cover
entity_id: 22fb66c8094b5e7aac0112c9329d83af
type: open
- device_id: 91a3bcaacb190e568ac3f8274890817e
domain: cover
entity_id: 5ee4647227ae808214ae0aa7d8dbb477
type: open
- if:
- condition: trigger
id:
- 8h
then:
- device_id: 7d1f9294f4fc12fc0ce43177a6876e16
domain: cover
entity_id: 9b8db3dff82ddcd7218c48b962a50db0
type: open
- device_id: 27af172fa4328d5412f662a2a4b5e59b
domain: cover
entity_id: 75d3a5a8fb790759f4af4e7586202f1f
type: open
- device_id: 99f0a479ea8d8cba6407aea59fb1bc96
domain: cover
entity_id: 409871ec0b5e1429746b7d7e6bfc234f
type: open
- device_id: 6a495d0f802ab2ff7882810e0c876e1c
domain: cover
entity_id: 06fbc3d6c565f2b9acafeb3aee7351a9
type: open
- device_id: 7d580f0322d72f89c5873da339d4b53d
domain: cover
entity_id: 22fb66c8094b5e7aac0112c9329d83af
type: open
- device_id: 91a3bcaacb190e568ac3f8274890817e
domain: cover
entity_id: 5ee4647227ae808214ae0aa7d8dbb477
type: open
- if:
- condition: trigger
id:
- TempExt
- condition: and
conditions:
- condition: trigger
id:
- LumiereJournée
then:
- device_id: 7d1f9294f4fc12fc0ce43177a6876e16
domain: cover
entity_id: 9b8db3dff82ddcd7218c48b962a50db0
type: set_position
position: 20
- device_id: 27af172fa4328d5412f662a2a4b5e59b
domain: cover
entity_id: 75d3a5a8fb790759f4af4e7586202f1f
type: set_position
position: 20
- device_id: 91a3bcaacb190e568ac3f8274890817e
domain: cover
entity_id: 5ee4647227ae808214ae0aa7d8dbb477
type: set_position
position: 20
- if:
- condition: trigger
id:
- LumiereSoir
then:
- if:
- condition: time
before: "23:00:00"
after: "16:00:00"
then:
- device_id: 7d1f9294f4fc12fc0ce43177a6876e16
domain: cover
entity_id: 9b8db3dff82ddcd7218c48b962a50db0
type: close
- device_id: 27af172fa4328d5412f662a2a4b5e59b
domain: cover
entity_id: 75d3a5a8fb790759f4af4e7586202f1f
type: close
- device_id: 6a495d0f802ab2ff7882810e0c876e1c
domain: cover
entity_id: 06fbc3d6c565f2b9acafeb3aee7351a9
type: close
- device_id: 7d580f0322d72f89c5873da339d4b53d
domain: cover
entity_id: 22fb66c8094b5e7aac0112c9329d83af
type: close
- service: notify.mobile_app_pixel_6_pro
data:
message: Fermeture du volet du salon
title: 🏠 Volet 🏠
enabled: false
enabled: true
- if:
- condition: trigger
id:
- LumiereNuit
then:
- if:
- condition: time
after: "19:00:00"
before: "00:00:00"
then:
- device_id: 99f0a479ea8d8cba6407aea59fb1bc96
domain: cover
entity_id: 409871ec0b5e1429746b7d7e6bfc234f
type: close
- device_id: 91a3bcaacb190e568ac3f8274890817e
domain: cover
entity_id: 5ee4647227ae808214ae0aa7d8dbb477
type: close
- service: notify.mobile_app_pixel_6_pro
metadata: {}
data:
message: Fermeture volet cuisine
title: 🏠 Volet 🏠
enabled: false
enabled: true
- if:
- condition: trigger
id:
- 19h
enabled: false
then:
- if:
- type: is_illuminance
condition: device
device_id: a57583139cb71946cadc6457094ec312
entity_id: 53319f3d21cb849f77a4662de25caef5
domain: sensor
above: 0
below: 20
then:
- device_id: 99f0a479ea8d8cba6407aea59fb1bc96
domain: cover
entity_id: 409871ec0b5e1429746b7d7e6bfc234f
type: close
- device_id: 91a3bcaacb190e568ac3f8274890817e
domain: cover
entity_id: 5ee4647227ae808214ae0aa7d8dbb477
type: close
enabled: true
mode: single
J’avais mis des notifications dans certaines étapes du script pour avoir l’information sur mon téléphone que j’étais bien entré dans la fonction. Parfois je recevais la notification mais les volets ne s’ouvraient pas.
J’avais fait sur papier une feuille de route pour savoir quelles conditions remplir pour ouvrir et fermer les volets, mais je l’ai supprimée. Je peux la refaire si cela peut aider.
Si quelqu’un voit d’où peut venir le problème…
Merci d’avance.