This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
docs:blox:firmware-esphome [2024/08/15 15:12] admin |
docs:blox:firmware-esphome [2024/08/19 17:39] (current) admin |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== 5.4 Using BLOX with Home Assistant and ESPHome ====== | ||
| - | ======4.4 Using BLOX with Home Assistant | + | OpenBuilds |
| - | OpenBuilds BLOX can be used with https:// | + | {{:docs:blox: |
| - | {{: | + | ---- |
| - | =====4.4.1 Requirements===== | + | ===== 5.4.1 Requirements ===== |
| * A working Home Assistant installation with the ESPHome Add-On | * A working Home Assistant installation with the ESPHome Add-On | ||
| * Working knowledge of ESPHome | * Working knowledge of ESPHome | ||
| - | =====4.4.2 Example YAML===== | + | ---- |
| - | Here's a basic example configuration | + | ===== 5.4.2 Example |
| + | Here's a basic example configuration YAML file for a BLOX under ESPHome, that you can use as a baseline configuration to build from | ||
| < | < | ||
| + | |||
| esp32: | esp32: | ||
| board: esp32-s3-devkitc-1 | board: esp32-s3-devkitc-1 | ||
| framework: | framework: | ||
| type: arduino | type: arduino | ||
| - | | + | |
| # Enable Home Assistant API: Use your own API KEY | # Enable Home Assistant API: Use your own API KEY | ||
| api: | api: | ||
| Line 40: | Line 43: | ||
| id: stepper_current_2 | id: stepper_current_2 | ||
| level: 0.3 # Set Stepper 2's default Current to 30% | level: 0.3 # Set Stepper 2's default Current to 30% | ||
| - | |||
| wifi: | wifi: | ||
| Line 53: | Line 55: | ||
| ota: | ota: | ||
| - | password: " | + | password: " |
| logger: # Enable Logs | logger: # Enable Logs | ||
| - | + | ||
| web_server: # Show local web interface | web_server: # Show local web interface | ||
| - | port: 80 | + | port: 80 |
| spi: | spi: | ||
| Line 65: | Line 67: | ||
| miso_pin: 37 | miso_pin: 37 | ||
| - | i2c: | + | i2c: |
| sda: 3 | sda: 3 | ||
| scl: 4 | scl: 4 | ||
| Line 77: | Line 79: | ||
| num_leds: 2 # Update count if you add external LEDs | num_leds: 2 # Update count if you add external LEDs | ||
| name: "RGB LEDs" | name: "RGB LEDs" | ||
| - | |||
| number: | number: | ||
| Line 154: | Line 155: | ||
| acceleration: | acceleration: | ||
| deceleration: | deceleration: | ||
| - | |||
| binary_sensor: | binary_sensor: | ||
| - platform: gpio | - platform: gpio | ||
| - | pin: | + | pin: |
| number: 39 | number: 39 | ||
| inverted: true | inverted: true | ||
| name: " | name: " | ||
| - platform: gpio | - platform: gpio | ||
| - | pin: | + | pin: |
| number: 40 | number: 40 | ||
| inverted: true | inverted: true | ||
| name: " | name: " | ||
| - platform: gpio | - platform: gpio | ||
| - | pin: | + | pin: |
| number: 11 | number: 11 | ||
| inverted: true | inverted: true | ||
| name: " | name: " | ||
| - platform: gpio | - platform: gpio | ||
| - | pin: | + | pin: |
| number: 15 | number: 15 | ||
| inverted: true | inverted: true | ||
| Line 203: | Line 203: | ||
| transition_length: | transition_length: | ||
| auto_detach_time: | auto_detach_time: | ||
| + | |||
| </ | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | |||