Advertisement
Guest User

Untitled

a guest
Jan 18th, 2025
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. esphome:
  2. name: gardin
  3. friendly_name: Gardin
  4.  
  5. esp32:
  6. board: esp32dev
  7. framework:
  8. type: arduino
  9.  
  10. # Enable logging
  11. logger:
  12.  
  13. # Enable Home Assistant API
  14. api:
  15. encryption:
  16. key: "rWryYJfOh0ydb4LVSFnUS3ZM="
  17.  
  18.  
  19. ota:
  20. - platform: esphome
  21. password: "f79c2794731244"
  22.  
  23. wifi:
  24. ssid: !secret wifi_ssid
  25. password: !secret wifi_password
  26.  
  27. # Enable fallback hotspot (captive portal) in case wifi connection fails
  28. ap:
  29. ssid: "Gardin Fallback Hotspot"
  30. password: "eTnmt"
  31.  
  32.  
  33.  
  34.  
  35. stepper:
  36. - platform: uln2003
  37. id: Gardin_stepper
  38. pin_a: GPIO19
  39. pin_b: GPIO18
  40. pin_c: GPIO05
  41. pin_d: GPIO15
  42. max_speed: 250 steps/s
  43. acceleration: inf
  44. deceleration: inf
  45. step_mode: FULL_STEP
  46. sleep_when_done: True
  47.  
  48. button:
  49. - platform: template
  50. name: Træk fra
  51. on_press:
  52. then:
  53. - stepper.report_position:
  54. id: Gardin_stepper
  55. position: 0
  56. - stepper.set_target:
  57. id: Gardin_stepper
  58. target: 5000
  59.  
  60.  
  61. captive_portal:
  62.  
  63.  
  64.  
  65.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement