Advertisement
Skeem

esphome_esp32_modbus

May 7th, 2023
1,101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.73 KB | None | 0 0
  1. esphome:
  2.   name: esphome-nilan
  3.   friendly_name: nilan_esp32
  4.  
  5. esp32:
  6.   board: wemos_d1_mini32
  7.  
  8. logger:
  9.   baud_rate: 0
  10.  
  11. api:
  12.   encryption:
  13.     key: "xxx"
  14.  
  15. ota:
  16. wifi:
  17.   ssid: "xxx"
  18.   password: "xxx"
  19.   fast_connect: on
  20.   ap:
  21.     ssid: "xxx"
  22.     password: "xxx"
  23.  
  24. captive_portal:
  25. packages:
  26.   remote_package:
  27.     url: https://github.com/Jopand/esphome_components
  28.     ref: main
  29.     files: [components/nilan/basic.yaml]
  30.     refresh: 0s
  31.  
  32. uart:
  33.   rx_pin: GPIO3
  34.   tx_pin: GPIO1
  35.   parity: EVEN
  36.   baud_rate: 19200
  37.   id: uart_modbus
  38.   stop_bits: 1
  39.  
  40. modbus:
  41.   id: modbus_id
  42.   uart_id: uart_modbus
  43.  
  44. modbus_controller:
  45.   id: nilan_modbus_controller
  46.   address: 30
  47.   modbus_id: modbus_id
  48.   update_interval: 30s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement