Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
home assistant configuration yaml file for Pi5R32
#1
Code:
# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

ssd1306_i2c:
  - model: "128x64"
    address: 0x3C
    i2c_bus: 1
    rotate: 0


ads1115:
  - address: 0x48
    i2c_bus: 1
   
sensor:
  - platform: ads1115
    multiplexer: A0_GND
    gain: 4.096
    name: "A1"
    multiplier: 1.51
  - platform: ads1115
    multiplexer: A1_GND
    gain: 4.096         
    name: "A2"
    multiplier: 1.51
  - platform: ads1115
    multiplexer: A2_GND
    gain: 4.096
    name: "A3"
    multiplier: 6.67
    device_class: current
    unit_of_measurement: mA
  - platform: ads1115
    multiplexer: A3_GND
    gain: 4.096
    name: "A4"
    multiplier: 6.67
    device_class: current
    unit_of_measurement: mA
   
binary_sensor:
  - platform: mcp23017
    i2c_address: 0x20
    invert_logic: true
    pins:
      0 : Button_1
      1 : Button_2
      2 : Button_3
      3 : Button_4
      4 : Button_5
      5 : Button_6
      6 : Button_7
      7 : Button_8
      8 : Button_9     
      9 : Button_10     
      10 : Button_11     
      11 : Button_12     
      12 : Button_13     
      13 : Button_14     
      14 : Button_15
      15 : Button_16

  - platform: mcp23017
    i2c_address: 0x24
    invert_logic: true
    pins:
      0 : Button_17
      1 : Button_18
      2 : Button_19
      3 : Button_20
      4 : Button_21
      5 : Button_22
      6 : Button_23
      7 : Button_24
      8 : Button_25   
      9 : Button_26     
      10 : Button_27     
      11 : Button_28     
      12 : Button_29     
      13 : Button_30     
      14 : Button_31
      15 : Button_32

     
switch:
  - platform: mcp23017
    i2c_address: 0x22
    hw_sync: false
    invert_logic: true
    pins:
      0 : Output_1
      1 : Output_2
      2 : Output_3
      3 : Output_4
      4 : Output_5
      5 : Output_6
      6 : Output_7
      7 : Output_8
      8 : Output_9
      9 : Output_10
      10 : Output_11
      11 : Output_12
      12 : Output_13
      13 : Output_14
      14 : Output_15
      15 : Output_16
     
  - platform: mcp23017
    i2c_address: 0x21
    hw_sync: false
    invert_logic: true
    pins:
      0 : Output_17
      1 : Output_18
      2 : Output_19
      3 : Output_20
      4 : Output_21
      5 : Output_22
      6 : Output_23
      7 : Output_24
      8 : Output_25
      9 : Output_26
      10 : Output_27
      11 : Output_28
      12 : Output_29
      13 : Output_30
      14 : Output_31
      15 : Output_32
yaml file download:

.txt   configuration-yaml.txt (Size: 2.72 KB / Downloads: 4)
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)