Hi,
First post here, and I don’t seem to be able to find anything quite like the issue I have by searching the forums and docs, or googling the hive mind.
I have Hassio running on a PI3b+, with a Nodo RFLINK attached. I have all of my old 433Mhz motion sensors connected as binary sensors, and they all work great. Homekit is presenting them through to Apple home OK as well.
All of the motion sensors have 3 on/off binary states for motion, tamper and low battery. I’ve discovered all of the device IDs for these different devices - they’re all pretty similar with just a few bytes of the ID changing:
{'id': 'chuango_1115c9_02', 'command': 'on'} - motion
{'id': 'chuango_1115cc_02', 'command': 'on'} - tamper
{'id': 'chuango_1115c2_02', 'command': 'on'} - low battery
I have the motion sensor portion set in configuration.yaml:
binary_sensor:
- platform: rflink
devices:
chuango_1115c9_02:
name: Landing Motion
device_class: motion
off_delay: 5
force_update: true
As mentioned, this works perfectly. What I would like to do, but am failing is set the low battery warning. If I add it as another binary sensor, I get another entry on the Hassio status page, and another accessory on the HomeKit bridge in the iOS home app. Reading the docs, it would appear that it’s possible to link two sensors together:
I’ve tried this with the binary sensor entry for the low battery warning, and this gives an error. Yaml:
homekit:
filter:
include_entities:
- binary_sensor.landing_motion
exclude_entities:
- person.admin
entity_config:
binary_sensor.landing_motion:
linked_battery_sensor: binary_sensor.landing_motion_battery
# RF Sensors
rflink:
port: /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_7573030313935160C170-if00
wait_for_ack: false
binary_sensor:
- platform: rflink
devices:
chuango_1115c9_02:
name: Landing Motion
device_class: motion
off_delay: 5
force_update: true
chuango_1115c2_02:
name: Landing Motion Battery
device_class: battery
force_update: true
error:
Invalid config for [homekit]: Entity ID 'binary_sensor.landing_motion_battery' does not belong to domain 'sensor' for dictionary value @ data['homekit']['entity_config']['linked_battery_sensor']. Got None. (See /config/configuration.yaml, line 21). Please check the docs at https://home-assistant.io/components/homekit/
I’ve also tried splitting the battery low out as a manually added rflink sensor - but that gives a different set of errors - it complains that the sensor itself is missing from the dicitonary… I assumed that was due to me trying to add it manually, with the auto add disabled as It does not appear on an auto discover.
Has anyone got an on/off low battery warning tied to another sensor in HomeKit? Is it possible? Am i on a wild goose chase here?
Thanks in advance,
Jason