mbootsman
(Marcel Bootsman)
December 17, 2021, 1:07pm
1
I have connected an Arduino with the Nodo RFLink to my Synology DS920+.
In this doc I see a port that needs to used in the configuration.yaml.
How do I find the port the Arduino is on?
It’s being recognized in DSM, since I see “Mega 2560 R3 (CDC ACM) - Arduino SA” in the Synology DSM Infocenter.
javicalle
(javicalle)
December 17, 2021, 6:41pm
2
In your HA instance, you should be able to see the connected USBs in:
Supervisor> System> Host> … > Hardware
It may be something like:
/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
mbootsman
(Marcel Bootsman)
December 19, 2021, 10:09am
3
Thanks for your reply.
I found the port here
And added it to the configuration.yaml like so:
# Example configuration.yaml entry
rflink:
port: /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_75130303735351611282-if00
# Example configuration.yaml entry
light:
- platform: rflink
automatic_add: true
sensor:
- platform: rflink
automatic_add: true
# Example configuration.yaml entry
logger:
default: error
logs:
rflink: debug
homeassistant.components.rflink: debug
Restarted HA after that change.
When switchin on/off the RFLink devices/plugs, I do not see them appear in HA dashboard.
Is there a way to investigate more?
UPDATE:
I see this in the log file:
2021-12-20 08:10:59 DEBUG (MainThread) [rflink.protocol] received data: 20;02;EV1527;
2021-12-20 08:10:59 DEBUG (MainThread) [rflink.protocol] received data: ID=0df0ff;SWITCH=0e;CMD=
2021-12-20 08:10:59 DEBUG (MainThread) [rflink.protocol] received data: ON;
2021-12-20 08:10:59 DEBUG (MainThread) [rflink.protocol] got packet: 20;02;EV1527;ID=0df0ff;SWITCH=0e;CMD=ON;
2021-12-20 08:10:59 DEBUG (MainThread) [rflink.protocol] decoded packet: {'node': 'gateway', 'protocol': 'ev1527', 'id': '0df0ff', 'switch': '0e', 'command': 'on'}
2021-12-20 08:10:59 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'ev1527_0df0ff_0e', 'command': 'on'}
2021-12-20 08:10:59 DEBUG (MainThread) [homeassistant.components.rflink] event of type command: {'id': 'ev1527_0df0ff_0e', 'command': 'on'}
2021-12-20 08:10:59 DEBUG (MainThread) [homeassistant.components.rflink] entity_ids: []
2021-12-20 08:10:59 DEBUG (MainThread) [homeassistant.components.rflink] device_id not known, adding new device
This looks like the signal is received, but no new device is added. How do i make sure HA adds the device?
francisp
(Francis)
December 20, 2021, 9:39am
4
Rflink does not know the difference between a light and a plug. Plugs will be added as lights, you need to move them manually to switch (in .yaml)
mbootsman
(Marcel Bootsman)
December 20, 2021, 10:55am
5
Thanks for your reply.
I see them in the devices section, but they don’t have a unique ID.
Can you show me how to add them to the configuration.yaml, so I can use them as switches?
francisp
(Francis)
December 20, 2021, 11:02am
6
Under switch:
- platform: rflink
device_defaults:
fire_event: true
signal_repetitions: 2
devices:
kaku_000041_2:
name: something
kaku_000041_3:
name: aswitch