jheling / freeathome

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

Dali- Gateway #177

Open BrainbugN1 opened 5 months ago

BrainbugN1 commented 5 months ago

is there a way to add the light from the Dali-Gateway? i cant find a single one.

jheling commented 5 months ago

Hello, This dali-gateway probably has a function-id that is new to this integration. You can try to make a dump of your free@home configuration as described in as 1 in the debugging section of the startpage. With this xml we can figure out if this dali-gateway works the sames as all the other light devices

aty19 commented 3 months ago

Hello, I have a similar problem for some time now, as I can no longer see various devices in Home Assistant.

In my configuration I have 2x DALI controllers, 1x dimming actuator 6-way, 1x sensor/switch actuator 8-way, and a sensor unit 12-way, 1x SysAP controller. To differentiate in the GUI from BuschJaeger, I have assigned different names for the devices. Example: DALI-GW-02, DALI_GW_01, the actuators also have customized names for the light panels Haupt_P11 (A0 TC), Flur_P01 (A4 TC), Kueche_P01 (A6 TC).

When I look into the integration I can only see one device and that is the sensor/switch actuator 8-way, but in the dump file I can see all devices and panels.

Can someone help me here? Please find attached the XML file, I had to Zip it.

freeathome_dump_192.168.103.112_2024_03_05_11_33_00.xml.zip

jheling commented 3 months ago

Hello @aty19 , could you adjust the logging level in your configuration.yaml like this?

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

This could give you extra information why you don't see the other devices.

aty19 commented 3 months ago

Hello @jheling thank you for the fast response, I had a look to the log file but I am still not able to find the problem. Do you have a hint?

home-assistant_2024-03-06T09-21-25.153Z.log

jheling commented 3 months ago

Hello, The integration now ignores devices that are not assigned to a room in the standard free@home app. If you give those devices a room a lot more of them will appear in home assistant.

aty19 commented 3 months ago

Thanks for the tip, I´ve managed to add the Dimming actor, but the Dali Gateways and the lights still not visible in the Devices or Entities, in the FreeatHome Acces Point I can not assign the DALI Gateways to a Room, but the Lights yes (and I still not able to see them in Home Assistant)

jheling commented 3 months ago

Do you have an id of one of the lights that do not appear?

docjones0 commented 3 months ago

I have the same issue. The differentiating factor appears to be whether the driver behind DALI gateway is TC capable or not.

This channel/light IS NOT visible:

<channel maxScenes="10" channelId="06E2" isActive="true" mask="00000001" nameId="004F" persistentId="0000" i="ch0000" cid="ABB706E2">
     <attribute name="displayName">YK Oleskelu Lednauha Vasen</attribute>
     <attribute name="floor">02</attribute>
     <attribute name="functionId">40</attribute>
     <attribute name="hardwareIdentifier">A0 TC</attribute>

This channel/light IS visible (and controllable):

<channel maxScenes="10" channelId="06E2" isActive="true" mask="00000002" nameId="0050" persistentId="0001" i="ch0001" cid="ABB706E2">
     <attribute name="displayName">YK Oleskelu Lednauha Oikea</attribute>
     <attribute name="floor">02</attribute>
     <attribute name="functionId">12</attribute>
     <attribute name="hardwareIdentifier">A1 </attribute>

This is the DALI GW data:

<device deviceFlavor="00" interface="TP" minConfigVersion="0001" protocolVersion="0004" deviceId="1023" isTp="true" softwareVersion="2.1510" softwareId="15E6" iconId="0034" buildNumber="000005E6" compilerVersion="007AD559" shortSerialNumber="RCC" nameId="FFAB" maxAPDULength="37" profile="0E00" individualAddress="015D" domainAddress="0D39" name="DALI Gateway" serialNumber="ABB702630F2F" commissioningState="ready" consistencyTag="c133" copyId="d" progress="100">

Functions under the channel are defined as:

<functions>
      <function bestMatch="false" fixed="false" isDefault="true" actuatorMatchCode="00000001" sensorMatchCode="00000000" accessLevel="Enduser" functionId="0012" nameId="00EC" preconfigured="true" name="Dim actuator"/>
      <function bestMatch="false" fixed="false" isDefault="false" actuatorMatchCode="00000002" sensorMatchCode="00000000" accessLevel="Enduser" functionId="0040" nameId="023B" preconfigured="true" name="Warm white/cold white lamp"/>
      <function bestMatch="false" fixed="false" isDefault="false" actuatorMatchCode="00000004" sensorMatchCode="00000000" accessLevel="Enduser" functionId="002F" nameId="F108" preconfigured="true" name="RGB color"/>
      <function bestMatch="false" fixed="false" isDefault="false" actuatorMatchCode="00000000" sensorMatchCode="00000000" accessLevel="Enduser" functionId="0000" nameId="0000" preconfigured="false" name="invalid string id"/>
</functions>
jheling commented 3 months ago

@docjones0. I cannot find much documentation relating TC capable. Is this the switching between warm white and cold white?

docjones0 commented 3 months ago

@jheling - yes, tunable white (or TC = Temperature Control) is part of Dali-2. Today IEC specification 62386, part 209.

https://www.dali-alliance.org/news/232/tunable-white-how-dali-is-making-it-easier-to-create-lighting-that-feels-natural#

docjones0 commented 3 months ago

@jheling - what information is needed to make this work?

jheling commented 3 months ago

@docjones0 . It's just some spare time i have to find. I have already looked at the dump aty19 made and this shows there is a new functionId for TC capable lights. Do you have a link to a free@home dali manual where is explained how to set the light temperature? And looking at the configuration dump Dali should also handle RGB values.

cweyer commented 3 months ago

Would it help to provide more data dumps? I also have a DALI controller and RGB lights as well as TC capable ones. I've implemented them already in my own Rust-based automation tool (just for fun) and it would be great to see that working here, too. So if you need more dumps, let me know.

jheling commented 3 months ago

Hello, i have made #182 . This will turn on/off the dali devices and dim the devices. @cweyer . I have searched the free@home dali manuals for any information about how to setup the color temperature. Is this a new feature?

cweyer commented 3 months ago

If I remember correctly the colour settings for the DALI lights are the same as for connected Hue lights, I'll check tomorrow.

docjones0 commented 3 months ago

Hello @jheling - would this answer some of the questions: https://electronics.stackexchange.com/questions/604979/dali-209-device-type-8-cct-control

cweyer commented 3 months ago

Attached is an example of my DALI device output.

The function IDs are indeed different than for Phillips Hue. For DALI they seem to be:

2f RGBW lights 40 Dimmable, white-tone adjustable lights

The colour can be set via 0x0017 (pairing ID 23, AL_HSV) according to https://developer.eu.mybuildings.abb.com/fah_local/reference/pairingids/

dali.json

jheling commented 2 months ago

I have updated #182 with temperature controlled lights and rgb lights. As I don't have a Dali actuator, there can appear some errors. Please log these under the pull request.