jheling / freeathome

Free@Home component for Home Assistant
103 stars 37 forks source link

Smoke Detector #173

Open David-Butzek opened 6 months ago

David-Butzek commented 6 months ago

Hello, is it possible to integrate the smoke detectors?

jheling commented 6 months ago

Hello, that should be possible. Can you make a dump of your free@home configuration as described in section 1 of debugging?

David-Butzek commented 5 months ago

home-assistant_2023-12-18T20-33-39.691Z.log Projektdokumentation-2.pdf

David-Butzek commented 5 months ago

Good morning, I hope this is the correct data

jheling commented 5 months ago

Hello, i was expecting something else. In the readme for this integration is also a debug section. Here is described how to make a dump of the free@ home configuration. This can be done in home assistant. The result is an xml file that is more detailed than the pdf you sent.

David-Butzek commented 5 months ago

freeathome_dump_192.168.178.20_2024_01_04_22_41_31.zip

sorry, misunderstood. But now it should be fine

jheling commented 5 months ago

yes, this is ok, now i have to find some time

jheling commented 5 months ago

Could you try if #178 works for you?

David-Butzek commented 5 months ago

Good morning, unfortunately #178 doesn't work

jheling commented 5 months ago

ok, do you see any new binary smoke detectors / co detectors in your home assistant?

David-Butzek commented 5 months ago

No

jheling commented 5 months ago

Are there any errors in the home assistant log?

David-Butzek commented 5 months ago

where can I find the log file?

David-Butzek commented 5 months ago

[Uploading home-assistant_2024-02-02T04-49-19.540Z.log…]() Must be that, right?

jheling commented 4 months ago

I have some trouble with opening the log

David-Butzek commented 4 months ago

[Uploading home-assistant_2024-02-02T20-25-22.658Z.log…]()

David-Butzek commented 4 months ago

[Uploading home-assistant_2024-02-02T20-25-22.658Z 2(1).log…]()

David-Butzek commented 4 months ago

better? The time I made the changes, the interface didn't work

jheling commented 4 months ago

no, when i click the log, the page reloads. A save link as does also not work. It looks like you 'Commented' the message before the upload was complete, all the last logs show the text uploading. Maybe zipping the log works better?

David-Butzek commented 4 months ago

home-assistant_2023-12-18T20-33-39.691Z.log

David-Butzek commented 4 months ago

Alright now

jheling commented 4 months ago

If i look at the log the whole freeathome integration doesn't seem to work. It looks similar to issue #172 . First try to restart Home Assistant. If the lines with 'slixmpp.exceptions.IqTimeout' still appear in the logging, then maybe you should reinstall the integration.

David-Butzek commented 4 months ago

free@home is working again. why does home assistant show 2x free@home?

jheling commented 4 months ago

This has probably to do with ip4 and ip6. See #176 for more information. Now you have free@home working again, do you see new binary sensors or an error regarding binary sensors in the logging?

David-Butzek commented 4 months ago

free@home works without any problems. There are no new sensors or devices. I also tried #178 again but only 13 devices and 26 devices are shown

jheling commented 4 months ago

If there are less devices found with #178, there should be at least one error in the log. I have also made some changes to #178

David-Butzek commented 4 months ago

home-assistant_2024-02-08T04-36-45.271Z.log

David-Butzek commented 4 months ago

I have made. Unfortunately Freeathome doesn't work

David-Butzek commented 4 months ago

home-assistant_2024-02-08T04-39-46.848Z.log

jheling commented 4 months ago

Thank you for the logs unfortunately, they did not help me for finding out what goes wrong.

When I look at the freeathome dump you made there are 4 smoke sensors and 3 CO sensors in your system. They have the following serial ids: Smoke detectors serial: E11260372669, E11260372668, E11260372678, E11260372649 CO detector serial: E11253502774, E11253502887, E11253502753

Could you adjust the logging level in your configuration.yaml like this? :

logger: default: warning logs: custom_components.freeathome: info

After changing the configuration.yaml you should restart home assistant. This should show extra information in the logfile like: add device FahBinarySensor ABB700C8605D/ch0003 Sensoreinheit 2-fach R (Hal), datapoints {1: 'odp0000', 2: 'odp0004', 3: 'odp0005', 16: 'odp0001', 32: 'odp0002', 33: 'odp0003', 40: 'odp0007'}, parameters {} I expect that those sensor serial ids will show up in the logging and give me some extra information.

David-Butzek commented 4 months ago

If I enter that into my yaml I can't have it checked before restarting

logger: default: warning logs: custom_components.freeathome: info

David-Butzek commented 4 months ago

and should I do #178 before changing the yaml

jheling commented 4 months ago

Oh sorry, the yaml should be indented with 2 spaces for each level , like this: logger: default: warning logs: custom_components.freeathome: info

It does not matter when you change the yaml. You can do it before or after you apply the sources of #178 to your installation. The new logging will be active when you restart HA.

David-Butzek commented 4 months ago

Good morning and sorry for the late reply. I get this error message as soon as I check the configuration

Konfigurationswarnungen Invalid config for 'logger' at configuration.yaml, line 65: expected a dictionary for dictionary value 'logger->logs', got None Invalid config for 'logger' at configuration.yaml, line 66: 'custom_components.freeathome' is an invalid option for 'logger', check: logger->custom_components.freeathome

jheling commented 4 months ago

These comments do not show the identations. It should look like this:

logger:
  default: warning
  logs:
    custom_components.freeathome: info
David-Butzek commented 4 months ago

Good morning, it worked. What data do you need?

jheling commented 4 months ago

Good Morning. Can you find the lines that belong to the smoke detector with the id E11260372669? Or one of the other id's I mentioned above

David-Butzek commented 4 months ago

IMG_5994

jheling commented 4 months ago

No, i mean the home assistant logging. If i set the language to german: einstellungen, system, protocolle, Vollständige Protokolle laden. In English that is logs

David-Butzek commented 4 months ago

home-assistant_2024-02-17T10-20-00.286Z.log

David-Butzek commented 4 months ago

I find it in the log file

jheling commented 4 months ago

Ok, now i see the problem:

2024-02-17 10:59:25.788 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] Device: device id 0121, name id 04B7, serialnumber E11253502753, display name 2024-02-17 10:59:25.788 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] Ignoring serialnumber E11253502753, channel_id ch0000, function ID 126 since it is not assigned to a room

All the sensors should be assigned to a room in free@home. Otherwise they will not be visible in Home Assistant

David-Butzek commented 4 months ago

How do I do that? Or What do you mean?

jheling commented 4 months ago

You need the original free@home app from busch-jeager, abb. There you need to go Device-configuration/Gerätekonfiguration . For each sensor you can assign a floor and room to the device. This has to be done in the installation/configuration mode of the app

David-Butzek commented 4 months ago

Works. Thank you very much.

jheling commented 4 months ago

Ok, did you try out the smoke sensor? Is there a test button which also triggers the alarm?

David-Butzek commented 4 months ago

Hello, I triggered a fire alarm today. Unfortunately, I discovered that the status does not change. And is it possible to display the temperature of the smoke detectors?

jheling commented 4 months ago

This integration intercepts the messages that are sent when you, for example , push a button to turn on the light. So this integration knows that specific switch is pushed. If a free@home switch was not paired to any light, there would be no message when the button was pushed. Maybe it is the same with the smoke alarm. Is it all ready paired to 1 other free@home device? If that is all ready the case you could try to see if there are messages sent on the free@home bus. In the debug section of the readme there is also a part 2. Monitoring free@home status updates. You can use this to see if there are messages sent when there is a smoke alarm.