anotherjulien / MyHOME

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

F422 BUS-BUS Interface #87

Open stefanorossiitaly opened 1 year ago

stefanorossiitaly commented 1 year ago

When I use the 'Interface' #4# commands it doesn't show me the correct status of the lights. While the button works, it does not change the status of the icon The problem is more serious when you have 2 lights with the same 'where' code "A=01, PL=10" but one light is connected to #4# 01 for example and the other is connected below the F422 BUS-BUS module in the condominium backbone.

: for example 1 light: who: where: <0110> interface: <01> name: manufacturer: model: 2 light: who: where: <0110> name: manufacturer: model: in this case when you activate light 1 it turns on correctly but the icon remains off and light 2 does not turn on (correctly) but the icon turns on
stefanorossiitaly commented 1 year ago

Senza titolo

stefanorossiitaly commented 1 year ago

As can be seen in the image of the light, the icon is represented by a lightning bolt and does not change state when the button is pressed

anotherjulien commented 1 year ago

Can you show me the exact configuration you have for those lights? (in a code block, so the formatting is not lost)

stefanorossiitaly commented 1 year ago

what I am attaching is a small summary. where you see the interface set are separate zones. where I have not set the interface are shared zones under the F422 module

anotherjulien commented 1 year ago

Hmmm, the configuration looks perfectly fine. Would you be able to collect and post debug logs of what happens when you turn on the light?

trissinozarantonello73 commented 1 year ago

Goodmorning, same issue me too.

stefanorossiitaly commented 1 year ago

If you want I can make you a user and password to enter directly.so you can verify exactly what I tell you.

Il Sab 10 Giu 2023, 10:52 anotherjulien @.***> ha scritto:

Hmmm, the configuration looks perfectly fine. Would you be able to collect and post debug logs of what happens when you turn on the light?

— Reply to this email directly, view it on GitHub https://github.com/anotherjulien/MyHOME/issues/87#issuecomment-1585568999, or unsubscribe https://github.com/notifications/unsubscribe-auth/A477BWVNGZIX32LQUSQ6J6TXKQYTFANCNFSM6AAAAAAYZ4PTOQ . You are receiving this because you authored the thread.Message ID: @.***>

stefanorossiitaly commented 1 year ago

I attach the debug log. The problem is with light 6.6 interface 01 and light 6.6 shared with no interface. When I turn on or off the light with interface 01, the status of the icon does not change. if, on the other hand, I turn on or off the light without an interface, the status icon works. In my opinion, the problem exists in the configuration file loading phase because it displays a lightning bolt instead of light.

stefanorossiitaly commented 1 year ago

home-assistant_myhome_2023-06-10T22-31-02.077Z.log

anotherjulien commented 1 year ago

This is really strange, it looks like the interface was not extracted from the message. Can you check that you are using the correct version of OWNd? (you can run pip show ownd from inside your home-assistant container to check) It should be version 0.7.47

stefanorossiitaly commented 1 year ago

I have never done this analysis. can you tell me what i have to do? I don't have access to all folders

stefanorossiitaly commented 1 year ago

Senza titolo

anotherjulien commented 1 year ago

It depends on your install method. Are you using HassOS?

trissinozarantonello73 commented 1 year ago

Hello, i also have the same problem, i use HassOS. All the light/switch in secondary bus( interface 02 for me) show lightning icon. Thankyou

Bavop commented 10 months ago

Same problem here, when defining the interface, the status is not retrieved from the light

stefanorossiitaly commented 10 months ago

I believe there is an error when the flying #4#adress is evaluated. From Bticino it receives #4#1 but the interface has an error and receives #4#01

carferrer commented 7 months ago

Hi and thanks for this great integration.

I have the same problem. Devices conected to interface "01" send the command but que icon on HA don't show if light is on or off. There is a solution?

carferrer commented 7 months ago

Hello. I've found a solution/workaround for not working with interface. I have done 2 changes in my system:

I'm going to make a pull request for both

Bavop commented 7 months ago

Hello. I've found a solution/workaround for not working with interface. I have done 2 changes in my system:

I'm going to make a pull request for both

Would love to see the code and update it in my installations

carferrer commented 7 months ago

Hello those are the changes:

Myhome validate.py Line 164: From: if type(v) == str and v.isdigit() and len(v) == 2: To: if type(v) == str and v.isdigit() and len(v) == 1: So you only use 1 digit for myhome.yaml. https://github.com/anotherjulien/MyHOME/pull/119

OWNd: message.py Line 210: From: if self._who in ["1", "2", "15"] To: if self._who in [1,2,15] Now the message return return the correct interface and entity. https://github.com/anotherjulien/OWNd/pull/6

Hope it helps.