Im trying to work out how to add a binary sensor MS13E - can only see it with rfxmgr with x10 on (tried AC and Lighting4 but nothing) It’s a combined motion (a1) and dusk (a2) sensor that I use to trigger a night lamp.
Upp’d logging to debug as info was not giving on/off
What I can see is the code 0710000X410Y0Z50
X increments per trigger
Y is 1 for the motion and 2 for dusk
Z = 1 on 0 off
2020-05-07 18:23:13 DEBUG (Thread-2) [homeassistant.components.rfxtrx] Receive RFXCOM event from (Device_id: a2 Class: LightingDevice Sub: 0, Pkt_id: 0710000841020150)
2020-05-07 18:23:13 DEBUG (Thread-2) [homeassistant.components.rfxtrx.binary_sensor] Binary sensor update (Device ID: a2 Class: LightingDevice Sub: 0)
2020-05-07 18:23:13 DEBUG (Thread-2) [homeassistant.components.rfxtrx] Device_id: a2 device_update. Command: On
2020-05-07 18:23:13 DEBUG (Thread-2) [homeassistant.components.rfxtrx] Device_id: a2 device_update. Command: On
2020-05-07 18:23:22 DEBUG (Thread-2) [homeassistant.components.rfxtrx] Receive RFXCOM event from (Device_id: a2 Class: LightingDevice Sub: 0, Pkt_id: 0710000941020050)
2020-05-07 18:23:22 DEBUG (Thread-2) [homeassistant.components.rfxtrx.binary_sensor] Binary sensor update (Device ID: a2 Class: LightingDevice Sub: 0)
2020-05-07 18:23:22 DEBUG (Thread-2) [homeassistant.components.rfxtrx] Device_id: a2 device_update. Command: Off
2020-05-07 18:23:22 DEBUG (Thread-2) [homeassistant.components.rfxtrx] Device_id: a2 device_update. Command: Off
2020-05-07 18:23:43 DEBUG (Thread-2) [homeassistant.components.rfxtrx] Receive RFXCOM event from (Device_id: a1 Class: LightingDevice Sub: 0, Pkt_id: 0710000a41010150)
2020-05-07 18:23:43 DEBUG (Thread-2) [homeassistant.components.rfxtrx.binary_sensor] Binary sensor update (Device ID: a1 Class: LightingDevice Sub: 0)
2020-05-07 18:23:43 DEBUG (Thread-2) [homeassistant.components.rfxtrx] Device_id: a1 device_update. Command: On
2020-05-07 18:23:43 DEBUG (Thread-2) [homeassistant.components.rfxtrx] Device_id: a1 device_update. Command: On
2020-05-07 18:24:42 DEBUG (Thread-2) [homeassistant.components.rfxtrx] Receive RFXCOM event from (Device_id: a1 Class: LightingDevice Sub: 0, Pkt_id: 0710000b41010050)
2020-05-07 18:24:42 DEBUG (Thread-2) [homeassistant.components.rfxtrx.binary_sensor] Binary sensor update (Device ID: a1 Class: LightingDevice Sub: 0)
2020-05-07 18:24:42 DEBUG (Thread-2) [homeassistant.components.rfxtrx] Device_id: a1 device_update. Command: Off
2020-05-07 18:24:42 DEBUG (Thread-2) [homeassistant.components.rfxtrx] Device_id: a1 device_update. Command: Off
Tried to add the below to configuration.yaml but errors
binary_sensor:
platform: rfxtrx
automatic_add: true
devices:
'0710000841020150':
name: motion_landing
device_class: motion
off_delay:
seconds: 60
data_bits: 16
command_on: 0x101
command_off: 0x100
devices:
'0710000a41010150':
name: dusk_landing
device_class: light
data_bits: 16
command_on: 0x201
command_off: 0x200
The error is:
2020-05-07 19:12:31 WARNING (SyncWorker_4) [homeassistant.util.yaml.loader] YAML file /var/opt/homeassistant/configuration.yaml contains duplicate key "devices". Check lines 51 and 60.
2020-05-07 19:12:31 ERROR (MainThread) [homeassistant.components.homeassistant] Invalid config for [binary_sensor.rfxtrx]: value must be at most 255 for dictionary value @ data['devices']['0710000a41010150']['command_off']. Got 512
value must be at most 255 for dictionary value @ data['devices']['0710000a41010150']['command_on']. Got 513. (See ?, line ?).
Any pointers from the collective appreciated