✅ Notification personnalisée IOS Compagnon

licence

Je vous propose de voir comment régler le chauffage de votre salle de bain et celui du sèche-serviette de manière journalière grâce aux notifications actionnables sur iOS.





Niveau requis

  • Débutant / Intermédiaire / Avancé

Matériels nécessaires / Matériels utilisés / Prérequis

  • version de HA : 2021.1.1
  • Clé USB Z-wave+ (ici une AEON LABS ZW090 « Z-Stick » GEN5) - déjà connectée à HA et fonctionnelle
  • prise connectée Z-Wave+ (ici une Fibaro Wall Plug FGWPE-102-ZW5) - déjà connectée à HA et fonctionnelle
  • module fil pilote Z-Wave+ (ici un Qubino ZMNHJD1) - déjà connecté à HA et fonctionnel
  • un iPhone avec l’application HA Home Assistant installée dessus ! (ici iPhone X ios14)
  • Deux cartes personnalisées (custom-card) cardsv avec des entrées à créer avant dans les aides

Configuration

le fichier configuration.yaml

Il faudra ajouter le code suivant dans votre fichier configuration.yaml ou sensors.yaml en fonction de votre organisation du fichier de configuration.

ios:
  push:
    categories:
      - name: Chauffauge_Salle_de_bain_Matin
        identifier: 'chauffage'
        actions:
          - identifier: 'NE_PAS_CHAUFFER_DEMAIN'
            title: 'Pas demain !'
            activationMode: 'background'
            authenticationRequired: false
            destructive: true
            behavior: 'default'
          - identifier: 'DEFINITION_DE_L_HEURE'
            title: 'Définir heure'
            activationMode: 'background'
            authenticationRequired: false
            destructive: false
            behavior: 'textInput'
            textInputButtonTitle: 'OK'
            textInputPlaceholder: '06:15'
 - name: Seche_Serviette_Matin
        identifier: 'seche_serviette'
        actions:
          - identifier: 'NE_PAS_CHAUFFER_SERVIETTE'
            title: 'Pas demain !'
            activationMode: 'background'
            authenticationRequired: true
            destructive: true
            behavior: 'default'
          - identifier: 'SDB_SERVIETTE'
            title: 'Définir heure'
            activationMode: 'background'
            authenticationRequired: false
            destructive: false
            behavior: 'textInput'
            textInputButtonTitle: 'OK'
            textInputPlaceholder: '06:00'

:warning: Attention, pensez toujours à vérifier votre configuration avant de relancer Home Assistant.
Dans la barre latérale > cliquez sur Configuration > onglet Contrôle du serveur > cliquez sur le bouton VERIFIER LA CONFIGURATION

Si votre configuration est valide, il faut recharger la configuration d’Home Assistant :

Dans la barre latérale > cliquez sur Configuration > onglet Contrôle du serveur > bouton REDEMARRER

Interface

Les cartes personnalisées

Nous utiliserons les cartes personnalisées (custom-card) citées dans prés-requis. Si vous ne savez pas comment faire c’est par ici HACS : Ajoutez des modules et des cartes personnalisées.

Voici ma première carte du sèche serviette

image

Cliquez pour afficher le code de la carte
cards:
  - entities:
      - entity: automation.seche_serviette_sdb_program
      - entity: sensor.time
        name: Heure Actuelle
      - entity: input_datetime.wake_time_1
        name: 'Activer à :'
      - entity: switch.qubino_goap_zmnhjd1_flush_dimmer_pilot_wire_switch
    show_header_toggle: false
    title: Sèche serviette Sdb
    type: entities
  - cards:
      - entities:
          - entity: input_select.wakehour_1
            name: Heure
        show_header_toggle: false
        title: null
        type: entities
      - entities:
          - entity: input_select.wakeminutes_1
            name: Minutes
        show_header_toggle: false
        title: null
        type: entities
    type: horizontal-stack
  - cards:
      - entity: input_boolean.wakeweekday_mon_1
        hold_action:
          action: none
        icon_height: 40px
        name: Lun
        show_icon: true
        show_name: true
        tap_action:
          action: toggle
        type: button
      - entity: input_boolean.wakeweekday_tue_1
        hold_action:
          action: none
        icon_height: 40px
        name: Mar
        show_icon: true
        show_name: true
        tap_action:
          action: toggle
        type: button
      - entity: input_boolean.wakeweekday_wed_1
        hold_action:
          action: none
        icon_height: 40px
        name: Mer
        show_icon: true
        show_name: true
        tap_action:
          action: toggle
        type: button
      - entity: input_boolean.wakeweekday_thu_1
        hold_action:
          action: none
        icon_height: 40px
        name: Jeu
        show_icon: true
        show_name: true
        tap_action:
          action: toggle
        type: button
      - entity: input_boolean.wakeweekday_fri_1
        hold_action:
          action: none
        icon_height: 40px
        name: Ven
        show_icon: true
        show_name: true
        tap_action:
          action: toggle
        type: button
      - entity: input_boolean.wakeweekday_sat_1
        hold_action:
          action: none
        icon_height: 40px
        name: Sam
        show_icon: true
        show_name: true
        tap_action:
          action: toggle
        type: button
      - entity: input_boolean.wakeweekday_sun_1
        hold_action:
          action: none
        icon_height: 40px
        name: Dim
        show_icon: true
        show_name: true
        tap_action:
          action: toggle
        type: button
    type: horizontal-stack
type: vertical-stack

Et voici la deuxième carte, celle du chauffage de la salle de bain :

image

Cliquez pour afficher le code de la carte
cards:
  - entities:
      - entity: automation.chauffage_sdb_program
      - entity: sensor.time
        name: Heure Actuelle
      - entity: input_datetime.wake_time_2
        name: 'Activer à :'
      - entity: switch.fibaro_system_fgwpe_f_wall_plug_gen5_switch
    show_header_toggle: false
    title: Chauffage Sdb
    type: entities
  - cards:
      - entities:
          - entity: input_select.wakehour_2
            name: Heure
        show_header_toggle: false
        title: null
        type: entities
      - entities:
          - entity: input_select.wakeminutes_2
            name: Minutes
        show_header_toggle: false
        title: null
        type: entities
    type: horizontal-stack
  - cards:
      - entity: input_boolean.wakeweekday_mon_2
        hold_action:
          action: none
        icon_height: 40px
        name: Lun
        show_icon: true
        show_name: true
        tap_action:
          action: toggle
        type: button
      - entity: input_boolean.wakeweekday_tue_2
        hold_action:
          action: none
        icon_height: 40px
        name: Mar
        show_icon: true
        show_name: true
        tap_action:
          action: toggle
        type: button
      - entity: input_boolean.wakeweekday_wed_2
        hold_action:
          action: none
        icon_height: 40px
        name: Mer
        show_icon: true
        show_name: true
        tap_action:
          action: toggle
        type: button
      - entity: input_boolean.wakeweekday_thu_2
        hold_action:
          action: none
        icon_height: 40px
        name: Jeu
        show_icon: true
        show_name: true
        tap_action:
          action: toggle
        type: button
      - entity: input_boolean.wakeweekday_fri_2
        hold_action:
          action: none
        icon_height: 40px
        name: Ven
        show_icon: true
        show_name: true
        tap_action:
          action: toggle
        type: button
      - entity: input_boolean.wakeweekday_sat_2
        hold_action:
          action: none
        icon_height: 40px
        name: Sam
        show_icon: true
        show_name: true
        tap_action:
          action: toggle
        type: button
      - entity: input_boolean.wakeweekday_sun_2
        hold_action:
          action: none
        icon_height: 40px
        name: Dim
        show_icon: true
        show_name: true
        tap_action:
          action: toggle
        type: button
    type: horizontal-stack
type: vertical-stack

Idée prise sur la base de l’article créé par @cob94440 Un réveil sur Home assistant.

Automatisations

Sur Home Assistant

Elles consistent à envoyer des notifications actionnables à l’iPhone à une heure précise (ici à 20h) !

- id: '1610628830203'
  alias: 'Réponse notification : définition horaire'
  description: ''
  trigger:
  - platform: event
    event_type: ios.notification_action_fired
    event_data:
      actionName: DEFINITION_DE_L_HEURE
  condition: []
  action:
  - service: input_select.select_option
    data:
      option: '{{ trigger.event.data[''textInput''].split('':'')[0] }}'
    entity_id: input_select.wakehour_2
  - service: input_select.select_option
    data:
      option: '{{ trigger.event.data[''textInput''].split('':'')[1] }}'
    entity_id: input_select.wakeminutes_2
  - service: notify.mobile_app_nikos_iphone
    data:
      title: Seche Serviette
      message: On chauffe à quelle heure demain le sèche serviette ?
      data:
        push:
          category: seche_serviette
  - service: automation.turn_on
    data: {}
    entity_id: automation.chauffage_sdb_program
  mode: single
- id: '1610653219573'
  alias: 'Réponse notification : définition horaire sèche serviette'
  description: ''
  trigger:
  - platform: event
    event_type: ios.notification_action_fired
    event_data:
      actionName: SDB_SERVIETTE
  condition: []
  action:
  - service: input_select.select_option
    data:
      option: '{{ trigger.event.data[''textInput''].split('':'')[0] }}'
    entity_id: input_select.wakehour_1
  - service: input_select.select_option
    data:
      option: '{{ trigger.event.data[''textInput''].split('':'')[1] }}'
    entity_id: input_select.wakeminutes_1
  - service: notify.mobile_app_nikos_iphone
    data:
      message: Merci  et bonne soirée !
  - service: automation.turn_on
    data: {}
    entity_id: automation.seche_serviette_sdb_program
  mode: single
- id: '1610718991037'
  alias: 'Réponse notification : Pas de chauffage'
  description: ''
  trigger:
  - platform: event
    event_type: ios.notification_action_fired
    event_data:
      actionName: NE_PAS_CHAUFFER_DEMAIN
  condition: []
  action:
  - service: automation.turn_off
    data: {}
    entity_id: automation.chauffage_sdb_program
  - service: notify.mobile_app_nikos_iphone
    data:
      title: Pas de chauffage
      message: Le chauffage est bien désactivé pour demain
  - service: notify.mobile_app_nikos_iphone
    data:
      title: Seche Serviette
      message: On chauffe à quelle heure demain le sèche serviette ?
      data:
        push:
          category: seche_serviette
  mode: single
- id: '1610719056371'
  alias: 'Réponse notification : Pas de sèche serviette'
  description: ''
  trigger:
  - platform: event
    event_type: ios.notification_action_fired
    event_data:
      actionName: NE_PAS_CHAUFFER_SERVIETTE
  condition: []
  action:
  - service: automation.turn_off
    data: {}
    entity_id: automation.seche_serviette_sdb_program
  - service: notify.mobile_app_nikos_iphone
    data:
      title: Pas de chauffage
      message: Le sèche serviette est bien désactivé pour demain
  mode: single

Création des Actions sur iOS

Ouvrir application iOS HA et cliquer sur le menu en haut à gauche :

Cliquer sur App Configuration :

Cliquer sur Actions :

Puis sur Ajouter :

Et dans le nom et le texte mettre DEFINITION_DE_L_HEURE

Il faudra faire pareil pour les autres actionName présents dans le code des Automatisations plus haut (SDB_SERVIETTE, NE_PAS_CHAUFFER_DEMAIN, NE_PAS_CHAUFFER_SERVIETTE).

Sur Node Red

Après si le bouton du jour n’est pas activé, l’automatisation du chauffage, même si l’heure est bien réglée, ne se fait pas !

Du coup j’ai activé mes boutons de manière automatique avec node-red via l’API de HA en suivant ce tutoriel Piloter Home Assistant depuis Node-Red grâce à l’API de HA :

e518eb0998eaacb8a31e3dcb013cd93341af6eaf_2_690x286

[{"id":"d53f1c07.de4fc8","type":"link out","z":"418c41dd.0bfb48","name":"","links":["acca563f.6da948"],"x":595,"y":260,"wires":[]},{"id":"d96d0acf.16e0d","type":"inject","z":"418c41dd.0bfb48","name":"Lundi_ON","props":[{"p":"payload"}],"repeat":"","crontab":"59 19 * * 1","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"str","x":106,"y":40,"wires":[["bab243.e1f445c"]]},{"id":"d68a344e.aabcc8","type":"inject","z":"418c41dd.0bfb48","name":"Mardi_ON","props":[{"p":"payload"}],"repeat":"","crontab":"59 19 * * 2","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"str","x":106,"y":120,"wires":[["28e69362.74b584"]]},{"id":"86c01580.3fbb7","type":"inject","z":"418c41dd.0bfb48","name":"Mercredi_ON","props":[{"p":"payload"}],"repeat":"","crontab":"59 19 * * 3","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"str","x":116,"y":200,"wires":[["6ff1776a.afd11"]]},{"id":"589897ef.8cff5","type":"inject","z":"418c41dd.0bfb48","name":"Jeudi_ON","props":[{"p":"payload"}],"repeat":"","crontab":"59 19 * * 4","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"str","x":106,"y":280,"wires":[["5ffe40a8.b20be"]]},{"id":"ed96370.2893fc8","type":"inject","z":"418c41dd.0bfb48","name":"Vendredi_ON","props":[{"p":"payload"}],"repeat":"","crontab":"59 19 * * 5","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"str","x":116,"y":360,"wires":[["c7559832.e7e62"]]},{"id":"9f704e57.328a28","type":"inject","z":"418c41dd.0bfb48","name":"Samedi_ON","props":[{"p":"payload"}],"repeat":"","crontab":"59 19 * * 6","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"str","x":116,"y":440,"wires":[["8f518a3d.d25eb8"]]},{"id":"18acc323.4fdf25","type":"inject","z":"418c41dd.0bfb48","name":"Dimanche_ON","props":[{"p":"payload"}],"repeat":"","crontab":"59 19 * * 0","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"str","x":116,"y":520,"wires":[["6e275598.57890c"]]},{"id":"9d7bcfe2.89e23","type":"change","z":"418c41dd.0bfb48","name":"ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_mon_1\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":396,"y":20,"wires":[["d53f1c07.de4fc8"]]},{"id":"355c22ef.8e24ae","type":"change","z":"418c41dd.0bfb48","name":"ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_mon_2\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":397,"y":59,"wires":[["d53f1c07.de4fc8"]]},{"id":"89a55534.5e0b1","type":"change","z":"418c41dd.0bfb48","name":"ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_tue_1\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":398,"y":98,"wires":[["d53f1c07.de4fc8"]]},{"id":"ed05d9b7.ff101","type":"change","z":"418c41dd.0bfb48","name":"ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_tue_2\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":399,"y":139,"wires":[["d53f1c07.de4fc8"]]},{"id":"fe930fcd.dda888","type":"change","z":"418c41dd.0bfb48","name":"ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_wed_1\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":399,"y":179,"wires":[["d53f1c07.de4fc8"]]},{"id":"35c434a5.6806d4","type":"change","z":"418c41dd.0bfb48","name":"ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"{\"entity_id\":\"input_boolean.wakeweekday_wed_2\"}\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":218,"wires":[["d53f1c07.de4fc8"]]},{"id":"622320a5.2f7508","type":"change","z":"418c41dd.0bfb48","name":"ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_thu_1\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":260,"wires":[["d53f1c07.de4fc8"]]},{"id":"5cd880eb.713ef8","type":"change","z":"418c41dd.0bfb48","name":"ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_thu_2\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":300,"wires":[["d53f1c07.de4fc8"]]},{"id":"495103bf.06890c","type":"change","z":"418c41dd.0bfb48","name":"ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_fri_1\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":401,"y":339,"wires":[["d53f1c07.de4fc8"]]},{"id":"8873d52b.b80228","type":"change","z":"418c41dd.0bfb48","name":"ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_fri_2\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":402,"y":378,"wires":[["d53f1c07.de4fc8"]]},{"id":"61ac9a14.3523f4","type":"change","z":"418c41dd.0bfb48","name":"ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_sat_1\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":403,"y":419,"wires":[["d53f1c07.de4fc8"]]},{"id":"85ab2396.899ab","type":"change","z":"418c41dd.0bfb48","name":"ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_sat_2\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":403,"y":459,"wires":[["d53f1c07.de4fc8"]]},{"id":"2ac08e87.17ebb2","type":"change","z":"418c41dd.0bfb48","name":"ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_sun_1\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":404,"y":498,"wires":[["d53f1c07.de4fc8"]]},{"id":"7279b0d4.7444a","type":"change","z":"418c41dd.0bfb48","name":"ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_sun_2\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":404,"y":540,"wires":[["d53f1c07.de4fc8"]]},{"id":"5ffe40a8.b20be","type":"switch","z":"418c41dd.0bfb48","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":264,"y":280,"wires":[["495103bf.06890c","8873d52b.b80228"]]},{"id":"bab243.e1f445c","type":"switch","z":"418c41dd.0bfb48","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":264,"y":40,"wires":[["89a55534.5e0b1","ed05d9b7.ff101"]]},{"id":"28e69362.74b584","type":"switch","z":"418c41dd.0bfb48","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":263,"y":120,"wires":[["fe930fcd.dda888","35c434a5.6806d4"]]},{"id":"6ff1776a.afd11","type":"switch","z":"418c41dd.0bfb48","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":267,"y":200,"wires":[["622320a5.2f7508","5cd880eb.713ef8"]]},{"id":"c7559832.e7e62","type":"switch","z":"418c41dd.0bfb48","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":267,"y":360,"wires":[["61ac9a14.3523f4","85ab2396.899ab"]]},{"id":"8f518a3d.d25eb8","type":"switch","z":"418c41dd.0bfb48","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":268,"y":440,"wires":[["2ac08e87.17ebb2","7279b0d4.7444a"]]},{"id":"6e275598.57890c","type":"switch","z":"418c41dd.0bfb48","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":270,"y":520,"wires":[["9d7bcfe2.89e23","355c22ef.8e24ae"]]},{"id":"328974df.a38db4","type":"inject","z":"418c41dd.0bfb48","name":"Lundi_OFF","props":[{"p":"payload"}],"repeat":"","crontab":"00 12 * * 1","once":false,"onceDelay":0.1,"topic":"","payload":"off","payloadType":"str","x":822,"y":40,"wires":[["6d396474.3ca824"]]},{"id":"7c273ca3.0d202c","type":"inject","z":"418c41dd.0bfb48","name":"Mardi_OFF","props":[{"p":"payload"}],"repeat":"","crontab":"00 12 * * 2","once":false,"onceDelay":0.1,"topic":"","payload":"off","payloadType":"str","x":822,"y":120,"wires":[["792b302f.0a5e5"]]},{"id":"dc105b50.39c658","type":"inject","z":"418c41dd.0bfb48","name":"Mercredi_OFF","props":[{"p":"payload"}],"repeat":"","crontab":"00 12 * * 3","once":false,"onceDelay":0.1,"topic":"","payload":"off","payloadType":"str","x":832,"y":200,"wires":[["460fdd7a.c8902c"]]},{"id":"d01036a8.ae9bd8","type":"inject","z":"418c41dd.0bfb48","name":"Jeudi_OFF","props":[{"p":"payload"}],"repeat":"","crontab":"00 12 * * 4","once":false,"onceDelay":0.1,"topic":"","payload":"off","payloadType":"str","x":822,"y":280,"wires":[["43bc8866.ab55b"]]},{"id":"a8bf2a50.081c","type":"inject","z":"418c41dd.0bfb48","name":"Vendredi_OFF","props":[{"p":"payload"}],"repeat":"","crontab":"00 12 * * 5","once":false,"onceDelay":0.1,"topic":"","payload":"off","payloadType":"str","x":832,"y":360,"wires":[["43a44ac7.da248c"]]},{"id":"2e74459f.c60c6a","type":"inject","z":"418c41dd.0bfb48","name":"Samedi_OFF","props":[{"p":"payload"}],"repeat":"","crontab":"00 12 * * 6","once":false,"onceDelay":0.1,"topic":"","payload":"off","payloadType":"str","x":832,"y":440,"wires":[["bf6fde25.29a1a8"]]},{"id":"7db0ce2b.82fac8","type":"inject","z":"418c41dd.0bfb48","name":"Dimanche_OFF","props":[{"p":"payload"}],"repeat":"","crontab":"00 12 * * 0","once":false,"onceDelay":0.1,"topic":"","payload":"off","payloadType":"str","x":842,"y":520,"wires":[["98144233.b3e678"]]},{"id":"43bc8866.ab55b","type":"switch","z":"418c41dd.0bfb48","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":1004,"y":280,"wires":[["78ff9372.091db4","78f9f50f.3382f4"]]},{"id":"6d396474.3ca824","type":"switch","z":"418c41dd.0bfb48","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":1004,"y":40,"wires":[["3123c0c.96707c","fc62355d.367f48"]]},{"id":"792b302f.0a5e5","type":"switch","z":"418c41dd.0bfb48","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":1003,"y":120,"wires":[["f3819a19.3e99","a7aef29d.4b3428"]]},{"id":"460fdd7a.c8902c","type":"switch","z":"418c41dd.0bfb48","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":1007,"y":200,"wires":[["e3526734.7ec638","b2ff7b61.9ee768"]]},{"id":"43a44ac7.da248c","type":"switch","z":"418c41dd.0bfb48","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":1007,"y":360,"wires":[["b7cdf157.e2db6","c665c2d5.8b75a"]]},{"id":"bf6fde25.29a1a8","type":"switch","z":"418c41dd.0bfb48","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":1008,"y":440,"wires":[["e4d599ff.e48c68","b442e1d3.b75148"]]},{"id":"98144233.b3e678","type":"switch","z":"418c41dd.0bfb48","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":1010,"y":520,"wires":[["cfc43e17.d82508","d096f367.07145"]]},{"id":"a049ab2c.3c563","type":"link out","z":"418c41dd.0bfb48","name":"","links":["acca563f.6da948"],"x":1355,"y":260,"wires":[]},{"id":"3123c0c.96707c","type":"change","z":"418c41dd.0bfb48","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_mon_1\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1156,"y":20,"wires":[["a049ab2c.3c563"]]},{"id":"fc62355d.367f48","type":"change","z":"418c41dd.0bfb48","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_mon_2\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1157,"y":59,"wires":[["a049ab2c.3c563"]]},{"id":"f3819a19.3e99","type":"change","z":"418c41dd.0bfb48","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_tue_1\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1158,"y":98,"wires":[["a049ab2c.3c563"]]},{"id":"a7aef29d.4b3428","type":"change","z":"418c41dd.0bfb48","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_tue_2\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1159,"y":139,"wires":[["a049ab2c.3c563"]]},{"id":"e3526734.7ec638","type":"change","z":"418c41dd.0bfb48","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_wed_1\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1159,"y":179,"wires":[["a049ab2c.3c563"]]},{"id":"b2ff7b61.9ee768","type":"change","z":"418c41dd.0bfb48","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"{\"entity_id\":\"input_boolean.wakeweekday_wed_2\"}\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":218,"wires":[["a049ab2c.3c563"]]},{"id":"78ff9372.091db4","type":"change","z":"418c41dd.0bfb48","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_thu_1\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":260,"wires":[["a049ab2c.3c563"]]},{"id":"78f9f50f.3382f4","type":"change","z":"418c41dd.0bfb48","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_thu_2\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1160,"y":300,"wires":[["a049ab2c.3c563"]]},{"id":"b7cdf157.e2db6","type":"change","z":"418c41dd.0bfb48","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_fri_1\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1161,"y":339,"wires":[["a049ab2c.3c563"]]},{"id":"c665c2d5.8b75a","type":"change","z":"418c41dd.0bfb48","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_fri_2\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1162,"y":378,"wires":[["a049ab2c.3c563"]]},{"id":"e4d599ff.e48c68","type":"change","z":"418c41dd.0bfb48","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_sat_1\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1163,"y":419,"wires":[["a049ab2c.3c563"]]},{"id":"b442e1d3.b75148","type":"change","z":"418c41dd.0bfb48","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_sat_2\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1163,"y":459,"wires":[["a049ab2c.3c563"]]},{"id":"cfc43e17.d82508","type":"change","z":"418c41dd.0bfb48","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_sun_1\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1164,"y":498,"wires":[["a049ab2c.3c563"]]},{"id":"d096f367.07145","type":"change","z":"418c41dd.0bfb48","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"entity_id\":\"input_boolean.wakeweekday_sun_2\"}","tot":"str"},{"t":"set","p":"query.device_type","pt":"msg","to":"input_boolean","tot":"str"},{"t":"set","p":"query.service","pt":"msg","to":"turn_off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1164,"y":540,"wires":[["a049ab2c.3c563"]]}]

Conclusion

Vous avez maintenant des notifications actionnables fonctionnelles et les connaissances pour en faire de nouvelles !

Une question, un problème

Besoin d'aide ? Cliquez ici !

Annexes

Vos sources

Suivi des modifications

  • 01/02/2021 : Passage en article officiel (:hacf_tuto:) @Sylvain_G
  • 17/01/2021 : Création du tutoriel @Nikos3296
2 « J'aime »