Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: gardin
- friendly_name: Gardin
- esp32:
- board: esp32dev
- framework:
- type: arduino
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- encryption:
- key: "rWryYJfOh0ydb4LVSFnUS3ZM="
- ota:
- - platform: esphome
- password: "f79c2794731244"
- wifi:
- ssid: !secret wifi_ssid
- password: !secret wifi_password
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "Gardin Fallback Hotspot"
- password: "eTnmt"
- stepper:
- - platform: uln2003
- id: Gardin_stepper
- pin_a: GPIO19
- pin_b: GPIO18
- pin_c: GPIO05
- pin_d: GPIO15
- max_speed: 250 steps/s
- acceleration: inf
- deceleration: inf
- step_mode: FULL_STEP
- sleep_when_done: True
- button:
- - platform: template
- name: Træk fra
- on_press:
- then:
- - stepper.report_position:
- id: Gardin_stepper
- position: 0
- - stepper.set_target:
- id: Gardin_stepper
- target: 5000
- captive_portal:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement