This commit is contained in:
Václav Španinger 2024-12-30 12:19:10 +01:00
parent f3b5689c2a
commit a8f5a6b215

View File

@ -6,9 +6,16 @@ A configured uart is required.
Example: Example:
```yaml ```yaml
marlin2:
uart_id: uart_bus
switch:
- platform: restart
name: "Restart Printer"
sensor: sensor:
- platform: marlin2 - platform: marlin2
uart_id: uart_bus #optional
bed_temperature: bed_temperature:
name: Current Bed Temp name: Current Bed Temp
bed_set_temperature: bed_set_temperature:
@ -19,6 +26,15 @@ sensor:
name: Set Ext Temp name: Set Ext Temp
print_progress: print_progress:
name: Progress name: Progress
print_time:
name: "pRINT_time"
print_time_remaining:
name: "pRINT_time_remaining"
text_sensor:
- platform: marlin2
printer_state:
name: status
``` ```
Notes: Notes:
@ -35,19 +51,18 @@ esphome:
external_components: external_components:
- source: components - source: components
esp8266: esp8266:
board: d1_mini board: esp01_1m
# Enable logging
logger: logger:
baud_rate: 0 baud_rate: 0
esp8266_store_log_strings_in_flash: False esp8266_store_log_strings_in_flash: False
# Enable Home Assistant API # Enable Home Assistant API
api: api:
encryption: encryption:
key: "" key: "="
ota: ota:
- platform: esphome - platform: esphome
@ -56,19 +71,12 @@ ota:
wifi: wifi:
ssid: !secret wifi_ssid ssid: !secret wifi_ssid
password: !secret wifi_password password: !secret wifi_password
manual_ip:
static_ip: 192.168.1.252
gateway: 192.168.0.1
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails # Enable fallback hotspot (captive portal) in case wifi connection fails
ap: ap:
ssid: "Vasek-Ender-3 Fallback Hotspot" ssid: "Vasek-Ender-3 Fallback Hotspot"
password: "" password: ""
captive_portal:
web_server: web_server:
port: 80 port: 80
version: 3 version: 3
@ -79,6 +87,9 @@ uart:
rx_pin: GPIO3 rx_pin: GPIO3
baud_rate: 115200 baud_rate: 115200
marlin2:
uart_id: uart_bus
switch: switch:
- platform: restart - platform: restart
name: "Restart Printer" name: "Restart Printer"
@ -89,7 +100,6 @@ sensor:
name: Uptime Sensor name: Uptime Sensor
- platform: marlin2 - platform: marlin2
uart_id: uart_bus
bed_temperature: bed_temperature:
name: Current Bed Temp name: Current Bed Temp
bed_set_temperature: bed_set_temperature:
@ -98,4 +108,15 @@ sensor:
name: Current Ext Temp name: Current Ext Temp
ext_set_temperature: ext_set_temperature:
name: Set Ext Temp name: Set Ext Temp
print_progress:
name: Progress
print_time:
name: "pRINT_time"
print_time_remaining:
name: "pRINT_time_remaining"
text_sensor:
- platform: marlin2
printer_state:
name: status
``` ```