Closed Enchufa2 closed 7 months ago
Answering my question, yes, there's a quick workaround. For reference:
is_detected: bool
here: https://github.com/sanjoyg/dirigera_platform/blob/3f3727a8d450363bea80f7460d1b11483263247d/custom_components/dirigera_platform/dirigera_lib_patch.py#L21-L23is_detected
attribute instead: https://github.com/sanjoyg/dirigera_platform/blob/3f3727a8d450363bea80f7460d1b11483263247d/custom_components/dirigera_platform/binary_sensor.py#L104-L106And now it works perfectly. This works for me because I'm planning on using Vallhorn sensors only, but a proper fix would probably be a bit more involved.
Just to clarify, so the value to read is is_on and not is_detected is that correct?
Try release 1.3.5.1 and let know. The issue should be fixed
I confirm it works perfectly, thanks!
Great, closing the issues
Thanks for this integration. I installed this to incorporate a Vallhorn motion sensor to some automations, but unfortunately it's always reported as "clear" when e.g. the Google Home app correctly reports the activity.
I've dumped the JSON with and without motion being detected and I noticed that this sensor does not use the
isOn
attribute, but theisDetected
one instead. Here's the dump while I'm standing in front of the sensor:Note the
isDetected
attribute set to true, which is false when the view is clear. Is there a quick way to patch my installation to use this attribute while a proper fix is implemented?