Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-AIO LOXONE
#1
Hi , 

i am trying to integrate my KC868-AIO into my loxone system . 

i am new to this so i am having some problems. 

i have done this so far : 

pc and Kincony AIO are connected to the same acces point. 

i can acces the AIO tru ESPhome . 
   
when i configure the AIO there i can find the AIO in my wireless network
i was able to connect with the download tool so the firmware V2 could be installed but there i get stuck

the download is succesful
   

but then i can not do anything .

if i use the scan device tool i can not find the kincony 
and the wireless signal of the kincony is gone until i re install it with the esphome "install for first use". 

i am sure i am making some silly fault but unexperienced me is stuck at the moment Smile
Reply
#2
1. the newest KCS firmware is v2.2.2, here is download link:
https://www.kincony.com/forum/showthread.php?tid=3791

2. when you download, your address is wrong, not "0x10000" , it should be"0x0"
Reply
#3
thanks , 
i re uploaded V2.2 into my unit on adress 0x0 . 
   


but still i find no way to connect trough eternet or wifi . 

what i tried so far : 

i made my computer ip static in the same range as the AIO so 192.168.1.101
i used the scan device list but when hitting scan no results 
AIO is connected with ethernet to a switch pc is connected to the same switch 
also pc and AIO are connected trough usb

   


i also tried to reset  ESP32 GPIO0 (am i right to assume thats the "download" button , the top one next to the usb C input) by holding to 10+ seconds but no wifi pops up
Reply
#4
1. after download need re power on of board.
2. KC868-AIO and your PC should connect to same router.
how to use KCS v2, here is online guide: https://www.kincony.com/esp32-kcsv2-firmware.html
Reply
#5
hi , i havent worked on my system in a long time but did manage to get some work into it recently .

what i done so far : 

my setup : 

KC868-AIO board
Loxone miniserver V1

i made a virtual ESP home using virtualbox ( will be changing that to a raspberry pi unit or kincony miniserver  in the future)
uploaded a new Yaml file to ESPhome with the loxone code writen into it and aletered all inputs and outputs for loxone


   
   

i attached the yaml file also

then i did open my loxone config file and imported the UDP inputs and outputs 
       


but i cant get both to communicate with eathother . what am i doing wrong ?


Attached Files
.zip   esphome-web-8af0f0 (2).zip (Size: 2.94 KB / Downloads: 25)
Reply
#6
do you want KC868-AIO's digital input ports and digital output ports integrate to Loxone miniserver?
if YES, when i have free time, have a test.
Reply
#7
(12-01-2024, 11:54 PM)admin Wrote: do you want KC868-AIO's digital input ports and digital output ports integrate to Loxone miniserver?
if YES, when i have free time, have a test.

Hi , Yes , thats right , i want to use the input and output ports in Loxone .

thanks for wanting to take a look at it .
Reply
#8
i have tessted KC868-AIO work with Loxone Miniserver, it's OK. 
i have write the yaml with 1 channel output and 1 channel input demo for you.  you can enable more channels for Loxone Miniserver.
Code:
esphome:
  name: aio

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:


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

i2c:
   - id: bus_a
     sda: 4
     scl: 16
     scan: true

external_components:
  - source:
      type: git
      url: https://github.com/hzkincony/esphome-loxone
      ref: v1.2.1

# Example configuration entry
pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-16
    i2c_id: bus_a
    address: 0x24
    pcf8575: true

  - id: 'pcf8574_hub_out_2'  # for output channel 17-32
    i2c_id: bus_a
    address: 0x25
    pcf8575: true

  - id: 'pcf8574_hub_out_in_3'  # for output channel 33-38  + (input 49-58)
    i2c_id: bus_a
    address: 0x26
    pcf8575: true


  - id: 'pcf8574_hub_in_1'  # for input channel 1-16
    i2c_id: bus_a
    address: 0x21
    pcf8575: true

  - id: 'pcf8574_hub_in_2'  # for input channel 17-32
    i2c_id: bus_a
    address: 0x22
    pcf8575: true

  - id: 'pcf8574_hub_in_3'  # for input channel 33-48
    i2c_id: bus_a
    address: 0x23
    pcf8575: true



# Individual outputs
switch:
  - platform: gpio
    name: "aio--light1"
    id: aio_light1
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true
    on_turn_on:
      - lambda: !lambda |-
          id(loxone1).send_string_data("RELAY-SET-255,1,1,OK");
    on_turn_off:
      - lambda: !lambda |-
          id(loxone1).send_string_data("RELAY-SET-255,1,0,OK");

  - platform: gpio
    name: "aio--light2"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light3"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light4"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "aio--light5"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light6"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light7"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light8"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true


  - platform: gpio
    name: "aio--light9"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light10"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light11"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light12"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 11
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "aio--light13"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 12
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light14"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 13
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light15"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 14
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light16"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 15
      mode: OUTPUT
      inverted: true
     
     
  - platform: gpio
    name: "aio--light17"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light18"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light19"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light20"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "aio--light21"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light22"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light23"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light24"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 7
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "aio--light25"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light26"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light27"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light28"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 11
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "aio--light29"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 12
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light30"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 13
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light31"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 14
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light32"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 15
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--led-D7"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 12
      mode: OUTPUT
      inverted: true


  - platform: gpio
    name: "aio--led-D8"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 13
      mode: OUTPUT
      inverted: true


cd74hc4067:
  - id: cd74hc4067_1
    pin_s0:
      pcf8574: pcf8574_hub_out_in_3
      number: 8
      mode: OUTPUT
      inverted: true
    pin_s1:
      pcf8574: pcf8574_hub_out_in_3
      number: 9
      mode: OUTPUT
      inverted: true
    pin_s2:
      pcf8574: pcf8574_hub_out_in_3
      number: 10
      mode: OUTPUT
      inverted: true
    pin_s3:
      pcf8574: pcf8574_hub_out_in_3
      number: 11
      mode: OUTPUT
      inverted: true


one_wire:
  - platform: gpio
    pin: GPIO5

# Example configuration entry
sensor:
  - platform: dallas_temp
    address: 0xec0921405caae128
    name: "aio--ds18b20"
    update_interval: 10s


  - platform: adc
    pin: 36
    id: adc36
    update_interval: never
    attenuation: 11db

  - platform: adc
    name: "aio--AI-17"
    pin: 39
    id: adc39
    update_interval: 5s
    attenuation: 11db

  - platform: adc
    pin: 34
    name: "aio--AI-18"
    id: adc34
    update_interval: 5s
    attenuation: 11db

  - platform: adc
    pin: 35
    name: "aio--AI-19"
    id: adc35
    update_interval: 5s
    attenuation: 11db

  - platform: cd74hc4067
    name: "aio--AI-16"
    id: ai1
    number: 0
    sensor: adc36
    update_interval: 5s

  - platform: cd74hc4067
    name: "aio--AI-15"
    id: ai2
    number: 1
    sensor: adc36
    update_interval: 5s

  - platform: cd74hc4067
    name: "aio--AI-14"
    id: ai3
    number: 2
    sensor: adc36
    update_interval: 5s

  - platform: cd74hc4067
    name: "aio--AI-13"
    id: ai4
    number: 3
    sensor: adc36
    update_interval: 5s

  - platform: cd74hc4067
    name: "aio--AI-12"
    id: ai5
    number: 4
    sensor: adc36
    update_interval: 5s

  - platform: cd74hc4067
    name: "aio--AI-11"
    id: ai6
    number: 5
    sensor: adc36
    update_interval: 5s

  - platform: cd74hc4067
    name: "aio--AI-10"
    id: ai7
    number: 6
    sensor: adc36
    update_interval: 5s

  - platform: cd74hc4067
    name: "aio--AI-9"
    id: ai8
    number: 7
    sensor: adc36
    update_interval: 5s

  - platform: cd74hc4067
    name: "aio--AI-8"
    id: ai9
    number: 8
    sensor: adc36
    update_interval: 5s

  - platform: cd74hc4067
    name: "aio--AI-7"
    id: ai10
    number: 9
    sensor: adc36
    update_interval: 5s

  - platform: cd74hc4067
    name: "aio--AI-6"
    id: ai11
    number: 10
    sensor: adc36
    update_interval: 5s

  - platform: cd74hc4067
    name: "aio--AI-5"
    id: ai12
    number: 11
    sensor: adc36
    update_interval: 5s

  - platform: cd74hc4067
    name: "aio--AI-4"
    id: ai13
    number: 12
    sensor: adc36
    update_interval: 5s

  - platform: cd74hc4067
    name: "aio--AI-3"
    id: ai14
    number: 13
    sensor: adc36
    update_interval: 5s

  - platform: cd74hc4067
    name: "aio--AI-2"
    id: ai15
    number: 14
    sensor: adc36
    update_interval: 5s

  - platform: cd74hc4067
    name: "aio--AI-1"
    id: ai16
    number: 15
    sensor: adc36
    update_interval: 5s



# Individual inputs 
binary_sensor:
  - platform: gpio
    name: "aio--input1"
    id: aio_input1
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true
    on_press:
      - lambda: !lambda |-
          id(loxone1).send_string_data("RELAY-GET_INPUT-255,1,1,OK");
    on_release:
      - lambda: !lambda |-
          id(loxone1).send_string_data("RELAY-GET_INPUT-255,1,0,OK");

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

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

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

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

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

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


  - platform: gpio
    name: "aio--input9"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 8
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input10"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 9
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input11"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 10
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input12"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 11
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "aio--input13"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 12
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input14"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 13
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input15"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 14
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input16"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 15
      mode: INPUT
      inverted: true
     
     
  - platform: gpio
    name: "aio--input17"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input18"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input19"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input20"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 3
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "aio--input21"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input22"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input23"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input24"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 7
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "aio--input25"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 8
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input26"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 9
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input27"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 10
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input28"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 11
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "aio--input29"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 12
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input30"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 13
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input31"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 14
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input32"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 15
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "aio--input33"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input34"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input35"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input36"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 3
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "aio--input37"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input38"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input39"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input40"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 7
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "aio--input41"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 8
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input42"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 9
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input43"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 10
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input44"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 11
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "aio--input45"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 12
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input46"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 13
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input47"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 14
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input48"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 15
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "aio--input49"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input50"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input51"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input52"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 3
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "aio--input53"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input54"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input55"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input56"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 7
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "aio--input57-s3"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 14
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input58-s4"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 15
      mode: INPUT
      inverted: true

pca9685:
    id: 'pca9685_hub'
    frequency: 500

output:
  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM0"
    channel: 0

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM1"
    channel: 1

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM2"
    channel: 2

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM3"
    channel: 3

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM4"
    channel: 4

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM5"
    channel: 5

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM6"
    channel: 6

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM7"
    channel: 7

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM8"
    channel: 8

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM9"
    channel: 9

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM10"
    channel: 10

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM11"
    channel: 11

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM12"
    channel: 12

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM13"
    channel: 13

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM14"
    channel: 14

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM15"
    channel: 15


light:
  - platform: monochromatic
    name: "aio-Color-LED-1"
    output: PWM0
  - platform: monochromatic
    name: "aio-Color-LED-2"
    output: PWM1
  - platform: monochromatic
    name: "aio-Color-LED-3"
    output: PWM2
  - platform: monochromatic
    name: "aio-Color-LED-4"
    output: PWM3
  - platform: monochromatic
    name: "aio-Color-LED-5"
    output: PWM4
  - platform: monochromatic
    name: "aio-Color-LED-6"
    output: PWM5
  - platform: monochromatic
    name: "aio-Color-LED-7"
    output: PWM6
  - platform: monochromatic
    name: "aio-Color-LED-8"
    output: PWM7
  - platform: monochromatic
    name: "aio-Color-LED-9"
    output: PWM8
  - platform: monochromatic
    name: "aio-Color-LED-10"
    output: PWM9
  - platform: monochromatic
    name: "aio-Color-LED-11"
    output: PWM10
  - platform: monochromatic
    name: "aio-Color-LED-12"
    output: PWM11
  - platform: monochromatic
    name: "aio-Color-LED-13"
    output: PWM12
  - platform: monochromatic
    name: "aio-Color-LED-14"
    output: PWM13
  - platform: monochromatic
    name: "aio-Color-LED-15"
    output: PWM14
  - platform: monochromatic
    name: "aio-Color-LED-16"
    output: PWM15

  - platform: rgbw
    name: "aio-rgbw"
    red: PWM1
    green: PWM2
    blue: PWM3
    white: PWM4

web_server:
  port: 80

loxone:
  id: loxone1
  protocol: udp
  loxone_ip: "192.168.3.108"
  loxone_port: 9999
  listen_port: 8888
  delimiter: "\n"
  send_buffer_length: 64
  on_string_data:
    # - logger.log:
    #     format: "on_string_data, data=%s"
    #     args: [ data.c_str() ]
    - lambda: !lambda |-
        if (data == "RELAY-SET-255,1,1") {
          id(aio_light1).turn_on();
        } else if (data == "RELAY-SET-255,1,0") {
          id(aio_light1).turn_off();
        }

here is yaml file: 
.txt   AIO-Loxone-ymal.txt (Size: 21.74 KB / Downloads: 31)
   
turn ON output1 by home assistant web page, then Loxone will update:
   
trigger INPUT1 with GND:
   
Then will feedback to Loxone config:
   
Loxone project download:
https://www.kincony.com/forum/attachment.php?aid=3439
Reply
#9
Hi , 
thanks for the help ,

i got further but i am running in some new problems: 

if i press a virtual button in the loxone app ,
i get this state on esphome : 
   
   

this is the screen i get at the same time on loxone config :

   


i think that looks good , but in real life the led of output 4 on the AIO does not turn on . ( i also tested with different outputs but that is the same)
when i press the switch myself in esphome the output does turn on


edit : it seems that i was wrong . the unit freezes when it sends out to the loxone for a state change . it is normaly contanstantly checking the sensor states but when changing one of the relais states and sending it to the loxone it freezes for a little longer than 2 minutes. it also occurs that the lef of the outputs flickers ones for half of a second and then turns off


edit edit : got it solved for the moment ; i changed max output buffer for loxone to 32 instead of 64 and added 100ms delay to all on or off comands for the relais . works like a charm
Reply
#10
work well now?
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)