Hey!
I have a problem with RFLink. My configuration:
- RFLink connected to HA (USB)
- PIR: ev1527
- Switch: tristate_8a68aa_1
Issue: the automation works and shows state’s change from off to on, but nothing is happening (the physical switch is not receiving the data).
BUT: If I’m changing state manually from off to on, the physical switch works fine and the signal is properly transmitting.
Any ideas are welcome
(note: entities names are here translated, there are slightly different names in logs)
Configuration:
#RFLINK
rflink:
port: /dev/ttyACM0
switch:
- platform: rflink
devices:
tristate_8a68aa_1:
name: Switch1-parking
> binary_sensor:
- platform: rflink
devices:
ev1527_0f3b84_06:
name: PIR garage
device_class: motion
off_delay: 5
Automation:
- alias: Parking - auto on (Automatyczne wlaczenie)
trigger:
platform: state
entity_id: binary_sensor.pir_garage
to: ‘on’
action:
service: switch.turn_on
entity_id: switch.switch1_parking- alias: Parking - 2 min- auto-off (Automatyczne wylaczenie)
trigger:
platform: state
entity_id: binary_sensor.pir_garage
to: ‘off’
for:
minutes: 2
action:
service: switch.turn_off
entity_id: switch.switch1_parking
Logs: PIR detected:
2019-10-24 19:52:05 DEBUG (MainThread) [rflink.protocol] received data: 20;05;EV1527;ID
2019-10-24 19:52:05 DEBUG (MainThread) [rflink.protocol] received data: =0f3b84;SWITCH=06;CMD=ON
2019-10-24 19:52:05 DEBUG (MainThread) [rflink.protocol] received data: ;
2019-10-24 19:52:05 DEBUG (MainThread) [rflink.protocol] got packet: 20;05;EV1527;ID=0f3b84;SWITCH=06;CMD=ON;
2019-10-24 19:52:05 DEBUG (MainThread) [rflink.protocol] decoded packet: {‘node’: ‘gateway’, ‘protocol’: ‘ev1527’, ‘id’: ‘0f3b84’, ‘switch’: ‘06’, ‘command’: ‘on’}
2019-10-24 19:52:05 DEBUG (MainThread) [rflink.protocol] got event: {‘id’: ‘ev1527_0f3b84_06’, ‘command’: ‘on’}
2019-10-24 19:52:05 DEBUG (MainThread) [homeassistant.components.rflink] event of type command: {‘id’: ‘ev1527_0f3b84_06’, ‘command’: ‘on’}
2019-10-24 19:52:05 DEBUG (MainThread) [homeassistant.components.rflink] entity_ids: [‘binary_sensor.pir_garaz’]
2019-10-24 19:52:05 DEBUG (MainThread) [homeassistant.components.rflink] passing event to binary_sensor.pir_garaz
2019-10-24 19:52:05 INFO (MainThread) [homeassistant.components.automation] Executing Parkowanie - automatyczne wlaczenie
2019-10-24 19:52:05 INFO (MainThread) [homeassistant.helpers.script] Script Parkowanie - automatyczne wlaczenie: Running script
2019-10-24 19:52:05 INFO (MainThread) [homeassistant.helpers.script] Script Parkowanie - automatyczne wlaczenie: Executing step call service
Logs: auto-execute:
2019-10-24 19:52:05 DEBUG (MainThread) [homeassistant.components.rflink] Sending command: on to Rflink device: tristate_8a68aa_1
2019-10-24 19:52:05 DEBUG (MainThread) [rflink.protocol] sending command: {‘protocol’: ‘tristate’, ‘id’: ‘8a68aa’, ‘switch’: ‘1’, ‘command’: ‘on’}
2019-10-24 19:52:05 DEBUG (MainThread) [rflink.protocol] writing data: ‘10;tristate;8a68aa;1;on;\r\n’
2019-10-24 19:52:05 DEBUG (MainThread) [rflink.protocol] waiting for acknowledgement
2019-10-24 19:52:05 DEBUG (MainThread) [rflink.protocol] received data: 20;06;
2019-10-24 19:52:05 DEBUG (MainThread) [rflink.protocol] received data: OK;
2019-10-24 19:52:05 DEBUG (MainThread) [rflink.protocol] got packet: 20;06;OK;
2019-10-24 19:52:05 DEBUG (MainThread) [rflink.protocol] decoded packet: {‘node’: ‘gateway’, ‘protocol’: ‘unknown’, ‘ok’: True}
2019-10-24 19:52:05 DEBUG (MainThread) [rflink.protocol] command response: {‘node’: ‘gateway’, ‘protocol’: ‘unknown’, ‘ok’: True}
2019-10-24 19:52:05 DEBUG (MainThread) [rflink.protocol] packet acknowledged
Logs: manual on:
2019-10-24 19:52:27 DEBUG (MainThread) [homeassistant.components.rflink] Sending command: on to Rflink device: tristate_8a68aa_1
2019-10-24 19:52:27 DEBUG (MainThread) [rflink.protocol] sending command: {‘protocol’: ‘tristate’, ‘id’: ‘8a68aa’, ‘switch’: ‘1’, ‘command’: ‘on’}
2019-10-24 19:52:27 DEBUG (MainThread) [rflink.protocol] writing data: ‘10;tristate;8a68aa;1;on;\r\n’
2019-10-24 19:52:27 DEBUG (MainThread) [rflink.protocol] waiting for acknowledgement
2019-10-24 19:52:27 DEBUG (MainThread) [rflink.protocol] received data: 20;08;OK;
2019-10-24 19:52:27 DEBUG (MainThread) [rflink.protocol] got packet: 20;08;OK;
2019-10-24 19:52:27 DEBUG (MainThread) [rflink.protocol] decoded packet: {‘node’: ‘gateway’, ‘protocol’: ‘unknown’, ‘ok’: True}
2019-10-24 19:52:27 DEBUG (MainThread) [rflink.protocol] command response: {‘node’: ‘gateway’, ‘protocol’: ‘unknown’, ‘ok’: True}
2019-10-24 19:52:27 DEBUG (MainThread) [rflink.protocol] packet acknowledged