# 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 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: gpiod sensors: - name: "CM4 IN1" port: 21 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: gpiod switches: - name: "CM4 relay1" port: 20 tuya_mqtt: device_id: 262009325868d05584fgcp device_secret: jJL0D9exSDfsqpt2 region: cn tuya_switch: - bind_id: switch.output_1 dp_key_rw: output1 dp_key_r: - dp_key: all_on dp_val: true trigger_state: on - dp_key: all_off dp_val: true trigger_state: off - bind_id: switch.output_2 dp_key_rw: output2 dp_key_r: - dp_key: all_on dp_val: true trigger_state: on - dp_key: all_off dp_val: true trigger_state: off - bind_id: switch.output_3 dp_key_rw: output3 dp_key_r: - dp_key: all_on dp_val: true trigger_state: on - dp_key: all_off dp_val: true trigger_state: off - bind_id: switch.output_4 dp_key_rw: output4 dp_key_r: - dp_key: all_on dp_val: true trigger_state: on - dp_key: all_off dp_val: true trigger_state: off - bind_id: switch.output_5 dp_key_rw: output5 dp_key_r: - dp_key: all_on dp_val: true trigger_state: on - dp_key: all_off dp_val: true trigger_state: off - bind_id: switch.output_6 dp_key_rw: output6 dp_key_r: - dp_key: all_on dp_val: true trigger_state: on - dp_key: all_off dp_val: true trigger_state: off - bind_id: switch.output_7 dp_key_rw: output7 dp_key_r: - dp_key: all_on dp_val: true trigger_state: on - dp_key: all_off dp_val: true trigger_state: off - bind_id: switch.output_8 dp_key_rw: output8 dp_key_r: - dp_key: all_on dp_val: true trigger_state: on - dp_key: all_off dp_val: true trigger_state: off - bind_id: switch.output_9 dp_key_rw: output9 dp_key_r: - dp_key: all_on dp_val: true trigger_state: on - dp_key: all_off dp_val: true trigger_state: off - bind_id: switch.output_10 dp_key_rw: output10 dp_key_r: - dp_key: all_on dp_val: true trigger_state: on - dp_key: all_off dp_val: true trigger_state: off - bind_id: switch.output_11 dp_key_rw: output11 dp_key_r: - dp_key: all_on dp_val: true trigger_state: on - dp_key: all_off dp_val: true trigger_state: off - bind_id: switch.output_12 dp_key_rw: output12 dp_key_r: - dp_key: all_on dp_val: true trigger_state: on - dp_key: all_off dp_val: true trigger_state: off - bind_id: switch.output_13 dp_key_rw: output13 dp_key_r: - dp_key: all_on dp_val: true trigger_state: on - dp_key: all_off dp_val: true trigger_state: off - bind_id: switch.output_14 dp_key_rw: output14 dp_key_r: - dp_key: all_on dp_val: true trigger_state: on - dp_key: all_off dp_val: true trigger_state: off - bind_id: switch.output_15 dp_key_rw: output15 dp_key_r: - dp_key: all_on dp_val: true trigger_state: on - dp_key: all_off dp_val: true trigger_state: off - bind_id: switch.output_16 dp_key_rw: output16 dp_key_r: - dp_key: all_on dp_val: true trigger_state: on - dp_key: all_off dp_val: true trigger_state: off tuya_binary_sensor: - bind_id: binary_sensor.button_1 dp_key_w: input1 - bind_id: binary_sensor.button_2 dp_key_w: input2 - bind_id: binary_sensor.button_3 dp_key_w: input3 - bind_id: binary_sensor.button_4 dp_key_w: input4 - bind_id: binary_sensor.button_5 dp_key_w: input5 - bind_id: binary_sensor.button_6 dp_key_w: input6 - bind_id: binary_sensor.button_7 dp_key_w: input7 - bind_id: binary_sensor.button_8 dp_key_w: input8 - bind_id: binary_sensor.button_9 dp_key_w: input9 - bind_id: binary_sensor.button_10 dp_key_w: input10 - bind_id: binary_sensor.button_11 dp_key_w: input11 - bind_id: binary_sensor.button_12 dp_key_w: input12 - bind_id: binary_sensor.button_13 dp_key_w: input13 - bind_id: binary_sensor.button_14 dp_key_w: input14 - bind_id: binary_sensor.button_15 dp_key_w: input15 - bind_id: binary_sensor.button_16 dp_key_w: input16