Facebook
From kcerny987, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 130
  1. logger:
  2.       baud_rate: 0
  3.      
  4. uart:
  5.  
  6.    - tx_pin: TX # GPIO1
  7.      rx_pin: RX #GPIO3
  8.      baud_rate: 9600
  9.      stop_bits: 2
  10.      id: UART0
  11.  
  12.    - tx_pin: GPIO19
  13.      rx_pin: GPIO18
  14.      baud_rate: 9600
  15.      stop_bits: 1
  16.      id: UART1
  17.      
  18.    - tx_pin: GPIO17
  19.      rx_pin: GPIO16
  20.      baud_rate: 9600
  21.      stop_bits: 2
  22.      id: UART2
  23.      
  24.  
  25.  
  26.  
  27.  
  28.  
  29. sensor:
  30.   - platform: pzem004t
  31.     current:
  32.       name: "PZEM-004T Current L1"
  33.     voltage:
  34.       name: "PZEM-004T Voltage L1"
  35.     power:
  36.       name: "PZEM-004T Power L1"
  37.     energy:
  38.       name: "PZEM-004T Energy L1"  
  39.     update_interval: 10s
  40.     uart_id: UART0
  41.  
  42.  
  43.   - platform: pzem004t
  44.     current:
  45.       name: "PZEM-004T Current L2"
  46.     voltage:
  47.       name: "PZEM-004T Voltage L2"
  48.     power:
  49.       name: "PZEM-004T Power L2"
  50.     energy:
  51.       name: "PZEM-004T Energy L2"  
  52.     update_interval: 10s
  53.     uart_id: UART1
  54.  
  55.  
  56.   - platform: pzem004t
  57.     current:
  58.       name: "PZEM-004T Current L3"
  59.     voltage:
  60.       name: "PZEM-004T Voltage L3"
  61.     power:
  62.       name: "PZEM-004T Power L3"
  63.     energy:
  64.       name: "PZEM-004T Energy L3"  
  65.     update_interval: 10s
  66.     uart_id: UART2
  67.