Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-HA RS485 INPUT & OUTPUT plugin for ESPHome
#41
when you turn ON/OFF a switch. check your ESPHome LOG. take a LOG screen photo and LOG file upload to here, let's check.
We send to see when you turn ON/OFF a switch, what package message have send out for RS485.
Reply
#42
(12-25-2023, 08:02 AM)admin Wrote: when you turn ON/OFF a switch. check your ESPHome LOG. take a LOG screen photo and LOG file upload to here, let's check.
We send to see when you turn ON/OFF a switch, what package message have send out for RS485.

I have attached the ESPHome log output and the screenshot as requested.

In the log you will see that I turned on and off "Switch 1", then the same for "Switch 2". The LED's on the switches did not light up.

Then I pressed the physical button for "binary_sensor 6" input.


Attached Files Image(s)
   

.txt   logs_dingtian-4ch_logs.txt (Size: 9.59 KB / Downloads: 42)
Reply
#43
the package of SWITCH is no problem. can you try to send the SWITCH package from your computer's USB-RS485 adapter to HAv2 board directly.
use a serial port debug tool send the SWITCH package to HAv2, check whether OUTPUT level will change.
Reply
#44
(12-27-2023, 01:28 AM)admin Wrote: the package of SWITCH is no problem. can you try to send the SWITCH package from your computer's USB-RS485 adapter to HAv2 board directly.
use a serial port debug tool send the SWITCH package to HAv2, check whether OUTPUT level will change.

Can you please suggest a tool that I can use for serial debugging? The one I tried is not useful.

Can you also please give me the command I would need to use to change the output? I unfortunately dont know how to use RS485 at all.

Thanks
Reply
#45
(12-29-2023, 12:45 AM)gizmo Wrote:
(12-27-2023, 01:28 AM)admin Wrote: the package of SWITCH is no problem. can you try to send the SWITCH package from your computer's USB-RS485 adapter to HAv2 board directly.
use a serial port debug tool send the SWITCH package to HAv2, check whether OUTPUT level will change.

Can you please suggest a tool that I can use for serial debugging? The one I tried is not useful.

Can you also please give me the command I would need to use to change the output? I unfortunately dont know how to use RS485 at all.

Thanks

Could I please get some help?

I am eager to use your products, but so far am not able to Sad

Thanks
Reply
#46
This is really strange, other customers work well. if you really can't use, we can refund to you.
Reply
#47
(01-13-2024, 12:47 AM)admin Wrote: This is really strange, other customers work well. if you really can't use, we can refund to you.

If other customers arent having an issue, then it must be either something with my set up.

I would much prefer to find the cause of the issue as I want to buy more of these items for my desired application.

The problem is I dont have much knowledge of RS485 applications, so was hoping to follow your guide and adjust as required. I have tried again by factory resetting the KC868-HAv2 and using your exact code for ESPhome as per your post https://github.com/hzkincony/esphome-kc868-ha.

From what I can see when I have the RS485 USB connected to a computer using the HA485 Assistant software, it doesnt show anything received when I toggle on the switch for the LED in Home Assistant. So I dont think that the command over RS485 is being sent, even though the ESPhome logs say it is.

How can I test this from a computer?

(01-13-2024, 10:48 PM)gizmo Wrote:
(01-13-2024, 12:47 AM)admin Wrote: This is really strange, other customers work well. if you really can't use, we can refund to you.

If other customers arent having an issue, then it must be either something with my set up.

I would much prefer to find the cause of the issue as I want to buy more of these items for my desired application.

The problem is I dont have much knowledge of RS485 applications, so was hoping to follow your guide and adjust as required. I have tried again by factory resetting the KC868-HAv2 and using your exact code for ESPhome as per your post https://github.com/hzkincony/esphome-kc868-ha.

From what I can see when I have the RS485 USB connected to a computer using the HA485 Assistant software, it doesnt show anything received when I toggle on the switch for the LED in Home Assistant. So I dont think that the command over RS485 is being sent, even though the ESPhome logs say it is.

How can I test this from a computer?

So I have just used another application called Serial Port Assistant https://github.com/KangLin/SerialPortAssistant and from that I can see data on the RS485 when I press a button connected to the KC868-HAv2, I can even copy that data string and send from the software and Home Assistant sees the button press the same.

However, when I turn on "Switch 1" in Home Assistant to toggle on the LED connected to the KC868-HAv2, ESPHome log outputs this " [23:22:45][D][uart_debug:114]: >>> 01:03:12:55:BB:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01:30:4B", but I dont see that on the Serial Port Assistant software.

I will buy one of your KC868-A2 boards to test, maybe it is the board that I am using causing the problem.
Reply
#48
yes, i think use KinCony's ESP32 board for a testing is better. now the problem is ESP32 board NOT send out the RS485 command.
Reply
#49
I think I found the issue. It looks like the Dingtian-Tech relay board I have is using a BL3085 RS-485 transceiver. From what I understand it runs at half duplex requiring a pin to be pulled high in order to transmit. But ESPHome with its current UART implementation does not support flow control.

So I think that is the issue im having with the one way communication. I will of course verify this once I have received my order of the KC868-A2 and I will report back.

Thank you for your help.
Reply
#50
ok, good.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)