normen / homebridge-433-arduino

A homebridge plugin to control 433MHz switches using an Arduino as transceiver
25 stars 11 forks source link

Console doesn't send any code #29

Open pdenissen opened 2 years ago

pdenissen commented 2 years ago

Hi there,

I'm trying to configure this plugin in my Homebridge installation on a Pi 4b. I have connected a Arduino with RFLink which is connected to the confirmed /dev/ttyACM0 port.

When I trigger any of my 433Mhz switches the console won't log any message. (KAKU switches)

When Homebridge starts, I get this feedback from the plugin in the console:

[07/06/2022, 14:07:41] [Arduino RC Switch Platform] Initializing ArduinoRCSwitch platform...
[07/06/2022, 14:07:41] [Arduino RC Switch Platform] Enabling USB mode using  /dev/ttyACM0

This is my config for the plugin:

{
    "name": "Arduino RC Switch Platform",
    "serial_port": "/dev/ttyACM0",
    "platform": "ArduinoRCSwitch"
}

I'm not sure where to start.

I hope you can help me out to get this to work.

normen commented 2 years ago

Hard to say, I'd guess the problem is on the hardware side. Are you sure everything is connected right, all pins are selected correctly and that whatever "RFLink" is actually sends the received 433MHz data in the raw form?

pdenissen commented 2 years ago

Hi Normen, thanks for your reply. Actually i’m pretty sure the hardware is ok. 2 weeks afo it was integrated in my Home Assistant setup.

Is there a way that I can monitor the USB-port on the Pi-side for data to see if there is data being received?

normen commented 2 years ago

Any received data would appear in the homebridge log. Is the receiver connected to the pins set in the code?

normen commented 2 years ago

Ah, there also was an issue with the latest arduino versions, maybe try this fix with the arduino code: https://github.com/normen/arduino-433/issues/5

normen commented 2 years ago

I committed the needed change to the arduino-433 project, so if that was the issue just pull the latest changes and re-flash your arduino.