Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: z906read
- esp32:
- #board type according to PlatformIO
- board: esp32dev
- external_components:
- #If You copy Custom component to local dir
- - source:
- type: local
- path: my_components
- components: [ uart_mitm ]
- # If You want to use pure git version
- - source:
- type: git
- url: https://github.com/ssieb/custom_components/tree/master/components
- components: [ uart_mitm ]
- #Disable logging to use first HW UART
- logger:
- baud_rate: 0
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "Z906Read Fallback Hotspot"
- password: "6SIYB60XEDVc"
- # in case You do not have HA To see logs and play with one switch that i made
- web_server:
- port: 80
- version: 2
- include_internal: true
- ota: false
- uart:
- - id: uartsp
- rx_pin: GPIO16 #RX2
- tx_pin: GPIO17 #TX2
- baud_rate: 57600
- parity: ODD
- # below enables throwing UART data to ESPHome logs
- debug:
- dummy_receiver: false
- direction: BOTH
- - id: uartcon
- rx_pin: GPIO3 #RX0
- tx_pin: GPIO1 #TX0
- baud_rate: 57600
- parity: ODD
- # below enables throwing UART data to ESPHome logs
- debug:
- dummy_receiver: false
- direction: BOTH
- uart_mitm:
- uart1: uartsp
- uart2: uartcon
- switch:
- - platform: uart
- uart_id: uartsp
- name: "VOL+"
- data: [0x08]
- - platform: uart
- uart_id: uartsp
- name: "Status"
- data: [0x34]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement