anotherjulien / MyHOME

MyHOME integration for Home-Assistant
GNU Affero General Public License v3.0
137 stars 57 forks source link

Auxiliary sensors ignored? #28

Closed stepir closed 3 years ago

stepir commented 3 years ago

Hi

I have 9 Auxiliary sensors used in my system for detecting water leaks. They are connected to basic contact interface 3477 (https://catalogo.bticino.it/BTI-3477-IT) and configured in my web server F454 for sending alters.

I tried configuring them with:

binary_sensor:
  - platform: myhome
    devices:
      motion_sensor:
        where: '1'
        who: '9'
        name: Motion living room
        class: motion
        manufacturer: BTicino
        model: L4610

However HA is totally ignoring this config - not producing the creation of the binary sensor but also not logging anything at all? any help?

Thanks in advance!

anotherjulien commented 3 years ago

Hi,

Are you using the latest packaged release or the master? A similar issue was already reported, fixed in 233ae03ff02987249a818069adbda0fa6e4aa589

I will likely publish a new release later today for all the fixes of the last few weeks.

stepir commented 3 years ago

Hi!

yes I'm running 0.8.3 installed trough HACS custom repo. I noticed the only reference to something similar was https://github.com/anotherjulien/MyHOME/commit/233ae03ff02987249a818069adbda0fa6e4aa589 but ignored as it was marked as fixed.

Thanks

stepir commented 3 years ago

hi @anotherjulien

I think I made some confusion there (although https://github.com/anotherjulien/MyHOME/commit/233ae03ff02987249a818069adbda0fa6e4aa589 is still related as the binary sensors are not created in any case):

I wanted to see the status of leak sensors connected to a 3477 interface and configured as AUX events in my web server as seen below:

Screenshot 2021-10-19 at 16 35 28

Now I understand that the Alarm AUX sensors are instead the below one right?

Screenshot 2021-10-19 at 16 36 28

So I have some questions if you could help please? 1) any chance I could monitor the AUX events from the web server? 2) any chance we could monitor the status of the contact interface device in the zones of the Alarm? see below:

Screenshot 2021-10-19 at 16 40 48

It would helpful knowing which door or window is left open!

stepir commented 3 years ago

regarding 1) - when an AUX event happened I captured the following on the BUS:

Screenshot 2021-10-19 at 16 47 42

anotherjulien commented 3 years ago

233ae03ff02987249a818069adbda0fa6e4aa589 is fixed, but that fix is not yet included in a release.

I don't have the alarm system, so I don't really know how it's configured and I can't tell you where or how AUX events are configured. I'm not sure I understand what you are willing to monitor on the web server, but in any case this integration will not do it if it's not via OpenWebNet.

In your last screenshot, if the messages you are trying to monitor are the *9*1*3## and *9*0*3##, then this is exactly what the AUX binary sensors are used for!

stepir commented 3 years ago

cool, so regarding the web server aux event we should be fine - will wait for a release to test it. For your reference I have the same environment configured in home bridge with this https://github.com/simont77/homebridge-myhome and its AUX implementation (MHAux) works in the same use case I'm asking here.

Regarding the Alarm system do you have an approach to suggest so I can investigate further?

stepir commented 3 years ago

in example - this is what hit the bus if I try to alarm the system and one of window is open (the alarm fail to arm):

image

all the *5 messages are relative to the alarm system

anotherjulien commented 3 years ago

OK, so release 0.8.4 contains the fix for WHO 9 For WHO 5, many people have asked, but the answer is still that I don't plan on working on that soon.

stepir commented 3 years ago

hi @anotherjulien

entities are unavailable and log shows:

2021-10-19 17:53:07 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up myhome platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 257, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 587, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 697, in add_to_platform_finish
await self.async_added_to_hass()
File "/config/custom_components/myhome/myhome_device.py", line 46, in async_added_to_hass
await self.async_update()
AttributeError: 'MyHOMEAuxiliary' object has no attribute 'async_update'
anotherjulien commented 3 years ago

Oh bloody hell :-D Well, fixed in 0.8.5 ;-) I wonder why no one noticed it while it was tested in the master branch though :-/

stepir commented 3 years ago

OK, so release 0.8.4 contains the fix for WHO 9 For WHO 5, many people have asked, but the answer is still that I don't plan on working on that soon.

cool will be waiting for 0.8.5 then - thanks!!

what can I do to help? happy to buy you an alarm unit if this is of help.

stepir commented 3 years ago

works now thanks