La vidéo

schéma

code esphome

  1. esphome:
  2.   name: esp_volet_chambre_dorian
  3.   platform: ESP8266
  4.   board: d1_mini
  5.  
  6. wifi:
  7.   ssid: "VotreWifi"
  8.   password: "MotDePasseWifi"
  9.  
  10. # Enable fallback hotspot in case wifi connection fails
  11.   ap:
  12.   ssid: "Esp Volet"
  13.   password: "UnMotDePasse"
  14.  
  15. captive_portal:
  16. logger:
  17. api:
  18. ota:
  19. # Relays
  20. switch:
  21.   - platform: gpio
  22.   pin: D6
  23.   id: volet_up
  24.   inverted: true
  25.   interlock: &interlock_group [volet_up, volet_down]
  26.   restore_mode: always off
  27.  
  28.   - platform: gpio
  29.   pin: D5
  30.   id: volet_down
  31.   interlock: *interlock_group
  32.   restore_mode: always off
  33.   inverted: true
  34.  
  35. # EndStops
  36. binary_sensor:
  37.   - platform: gpio
  38.   pin: D1
  39.   id: endstop_up
  40.  
  41.   - platform: gpio
  42.   pin: D2
  43.   id: endstop_down
  44.  
  45. # Cover
  46. cover:
  47.   - platform: endstop
  48.   name: "Volet"
  49.   id: volet
  50.   open_action:
  51.   - switch.turn_on: volet_up
  52.   open_duration: 12s
  53.   open_endstop: endstop_up
  54.  
  55.   close_action:
  56.   - switch.turn_on: volet_down
  57.   close_duration: 6s
  58.   close_endstop: endstop_down
  59.   stop_action:
  60.   - switch.turn_off: volet_up
  61.   - switch.turn_off: volet_down
  62.   max_duration: 13s

Le moteur:

Amazon          –         Conrad