Smart Home Automation Forum
New DIY Project Support - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1)
+--- Forum: DIY Project (https://www.kincony.com/forum/forumdisplay.php?fid=3)
+--- Thread: New DIY Project Support (/showthread.php?tid=2025)

Pages: 1 2 3 4 5 6 7 8


RE: New DIY Project Support - ahmed - 08-05-2022

please revise something wrong i made

esphome:
  name: a16
  platform: ESP32
  board: esp32dev


# Example configuration entry for ESP32
i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a


# Example configuration entry
ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0

  # Optional manual IP
  manual_ip:
    static_ip: 192.168.1.199
    gateway: 192.168.1.1
    subnet: 255.255.255.0


# Example configuration entry
pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x24
   
  - id: 'pcf8574_hub_out_2'  # for output channel 1-8
    address: 0x24
   
  - id: 'pcf8574_hub_out_3'  # for output channel 1-8
    address: 0x24

  - id: 'pcf8574_hub_out_4'  # for output channel 1-8
    address: 0x24
   
  - id: 'pcf8574_hub_out_5'  # for output channel 1-8
    address: 0x24
   
  - id: 'pcf8574_hub_out_6'  # for output channel 1-8
    address: 0x24
   
  - id: 'pcf8574_hub_out_7'  # for output channel 1-8
    address: 0x24

  - id: 'pcf8574_hub_out_8'  # for output channel 1-8
    address: 0x24
   
  - id: 'pcf8574_hub_out_9'  # for output channel 9-16
    address: 0x25
   
  - id: 'pcf8574_hub_out_10'  # for output channel 9-16
    address: 0x25
   
  - id: 'pcf8574_hub_out_11'  # for output channel 9-16
    address: 0x25
   
  - id: 'pcf8574_hub_out_12'  # for output channel 9-16
    address: 0x25
   
  - id: 'pcf8574_hub_out_13'  # for output channel 9-16
    address: 0x25
   
  - id: 'pcf8574_hub_out_14'  # for output channel 9-16
    address: 0x25
   
  - id: 'pcf8574_hub_out_15'  # for output channel 9-16
    address: 0x25
   
  - id: 'pcf8574_hub_out_16'  # for output channel 9-16
    address: 0x25


  - id: 'pcf8574_hub_in_1'  # for input channel 1-8
    address: 0x21
   
  - id: 'pcf8574_hub_in_2'  # for input channel 1-8
    address: 0x21

  - id: 'pcf8574_hub_in_3'  # for input channel 1-8
    address: 0x21

  - id: 'pcf8574_hub_in_4'  # for input channel 1-8
    address: 0x21

  - id: 'pcf8574_hub_in_5'  # for input channel 1-8
    address: 0x21

  - id: 'pcf8574_hub_in_6'  # for input channel 1-8
    address: 0x21

  - id: 'pcf8574_hub_in_7'  # for input channel 1-8
    address: 0x21

  - id: 'pcf8574_hub_in_8'  # for input channel 1-8
    address: 0x21

  - id: 'pcf8574_hub_in_9'  # for input channel 9-16
    address: 0x22
   
  - id: 'pcf8574_hub_in_10'  # for input channel 9-16
    address: 0x22
   
  - id: 'pcf8574_hub_in_11'  # for input channel 9-16
    address: 0x22
   
  - id: 'pcf8574_hub_in_12'  # for input channel 9-16
    address: 0x22
   
  - id: 'pcf8574_hub_in_13'  # for input channel 9-16
    address: 0x22
   
  - id: 'pcf8574_hub_in_14'  # for input channel 9-16
    address: 0x22
   
  - id: 'pcf8574_hub_in_15'  # for input channel 9-16
    address: 0x22
   
  - id: 'pcf8574_hub_in_16'  # for input channel 9-16
    address: 0x22

# Individual outputs
switch:
  - platform: gpio
    name: "light1"
    pin:
      pcf8574: pcf8574_hub_out_1
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: false
     
  - platform: gpio
    name: "light2"
    pin:
      pcf8574: pcf8574_hub_out_2
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: false
     
  - platform: gpio
    name: "light3"
    pin:
      pcf8574: pcf8574_hub_out_3
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: false
     
  - platform: gpio
    name: "light4"
    pin:
      pcf8574: pcf8574_hub_out_4
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: false
     
  - platform: gpio
    name: "light5"
    pin:
      pcf8574: pcf8574_hub_out_5
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: false
     
  - platform: gpio
    name: "light6"
    pin:
      pcf8574: pcf8574_hub_out_6
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: false
     
  - platform: gpio
    name: "light7"
    pin:
      pcf8574: pcf8574_hub_out_7
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: false
     
  - platform: gpio
    name: "light8"
    pin:
      pcf8574: pcf8574_hub_out_8
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: false

  - platform: gpio
    name: "light9"
    pin:
      pcf8574: pcf8574_hub_out_9
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: false

binary_sensor:
  - platform: gpio
    name: "input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false
     
  - platform: gpio
    name: "input2"
    pin:
      pcf8574: pcf8574_hub_in_2
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false
     
  - platform: gpio
    name: "input3"
    pin:
      pcf8574: pcf8574_hub_in_3
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false
     
  - platform: gpio
    name: "input4"
    pin:
      pcf8574: pcf8574_hub_in_4
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false
     
  - platform: gpio
    name: "input5"
    pin:
      pcf8574: pcf8574_hub_in_5
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false
     
  - platform: gpio
    name: "input6"
    pin:
      pcf8574: pcf8574_hub_in_6
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false
     
  - platform: gpio
    name: "input7"
    pin:
      pcf8574: pcf8574_hub_in_7
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false
     
  - platform: gpio
    name: "input8"
    pin:
      pcf8574: pcf8574_hub_in_8
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input9"
    pin:
      pcf8574: pcf8574_hub_in_9
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false

# Enable logging
logger:

# Enable Home Assistant API
api:


RE: New DIY Project Support - admin - 08-05-2022

what's your router's ip address?


RE: New DIY Project Support - ahmedk4444@yahoo.com - 08-05-2022

192.168.1.1


RE: New DIY Project Support - admin - 08-05-2022

because you download is demo config for output 1-9. you can download this config file, it have fully 1-16 channel.


.txt   Made_for_ESPHome_KC868-A16.txt (Size: 5.6 KB / Downloads: 189)

esphome:
  name: kc868-a16
  platform: ESP32
  board: esp32dev
 
 
# Example configuration entry for ESP32
i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a


# Example configuration entry
ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0

  # Optional manual IP
  manual_ip:
    static_ip: 192.168.1.199
    gateway: 192.168.1.1
    subnet: 255.255.255.0 


# Example configuration entry
pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x24

  - id: 'pcf8574_hub_out_2'  # for output channel 9-16
    address: 0x25

  - id: 'pcf8574_hub_in_1'  # for input channel 1-8
    address: 0x21

  - id: 'pcf8574_hub_in_2'  # for input channel 9-16
    address: 0x22

# Individual outputs
switch:
  - platform: gpio
    name: "a16-output1"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16-output2"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output3"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output4"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output5"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output6"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16-output7"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output8"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output9"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16-output10"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16-output11"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 2
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output12"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output13"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 4
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output14"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 5
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output15"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 6
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output16"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 7
      mode: OUTPUT
      inverted: true
     
binary_sensor:
  - platform: gpio
    name: "a16-input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input2"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input3"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input4"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input5"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input6"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input7"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input8"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input9"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input10"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input11"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input12"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input13"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input14"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input15"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16-input16"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 7
      mode: INPUT
      inverted: true

# Enable logging
logger:

# Enable Home Assistant API
api:


RE: New DIY Project Support - ahmedk4444@yahoo.com - 08-05-2022

Thank you , here is the download log after install to check( attached)

Only input from 1-9 and unavilable not to 16 as well
And light from 1-16 and not seen on the card although i added several times.

See attached.

What i should do next mandatory before start setting up H32B?
I had apointment with electrician tomorrow morning to install the DB of outdoor that has the H32B and the teminal switch board and still until now working on MQTT through kbox and activate both 2 remote controls before starting to install the server and A16

Let me ask 3 important questions:-
1- what is mandatory to setup as a hardware and software as well as installation prior to setup H32B on the home asistance? And is it okay after connect to the load to change setting from Mqtt static ethernet snd wifi dhcp to mqtt dhcp ethernet through home asisstant and dtop the wifi?

2- how the system work and dependently on power supplies, i mean the server, A16, router, controllers all connected to normal suppy foes all of those connected to ups in case power failed to keep the system controllable?

3- i made most of my stetup for installation on my laptop, i want afterwords to reinstall the windows and re-image my apps and application what i need to re- setup again on the laptop from previous steps.

Please give me the main headlines and steps in correct sequence for what is mandatiry to do first before start configure the controllers and i can with time improve the other steps to check the system before start connected to load and be in service.

Thank you

Thank you again for help and support


RE: New DIY Project Support - ahmedk4444@yahoo.com - 08-05-2022

Thank you , here is the download log after install to check( attached)

Only input from 1-9 and unavilable not to 16 as well
And light from 1-16 and not seen on the card although i added several times.

See attached.

What i should do next mandatory before start setting up H32B?
I had apointment with electrician tomorrow morning to install the DB of outdoor that has the H32B and the teminal switch board and still until now working on MQTT through kbox and activate both 2 remote controls before starting to install the server and A16

Let me ask 3 important questions:-
1- what is mandatory to setup as a hardware and software as well as installation prior to setup H32B on the home asistance? And is it okay after connect to the load to change setting from Mqtt static ethernet snd wifi dhcp to mqtt dhcp ethernet through home asisstant and dtop the wifi?

2- how the system work and dependently on power supplies, i mean the server, A16, router, controllers all connected to normal suppy foes all of those connected to ups in case power failed to keep the system controllable?

3- i made most of my stetup for installation on my laptop, i want afterwords to reinstall the windows and re-image my apps and application what i need to re- setup again on the laptop from previous steps.

Please give me the main headlines and steps in correct sequence for what is mandatiry to do first before start configure the controllers and i can with time improve the other steps to check the system before start connected to load and be in service.

Thank you

Thank you again for help and support


RE: New DIY Project Support - ahmedk4444@yahoo.com - 08-05-2022

Home assistant is still not working out of house network on 4G mobile App !!!


RE: New DIY Project Support - admin - 08-06-2022

please see clearly the new config file:

name: "a16-output1"

name: "a16-input1"

not "input1"

delete your entities in dashboard, re add entities


RE: New DIY Project Support - ahmedk4444@yahoo.com - 08-06-2022

Yes this exactly a16-input as the file replaced


RE: New DIY Project Support - admin - 08-06-2022

Do you understand me ?  but in your home assistant dashboard, not used new id name.