freeathome icon indicating copy to clipboard operation
freeathome copied to clipboard

Dali- Gateway

Open BrainbugN1 opened this issue 1 year ago • 22 comments

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

BrainbugN1 avatar Jan 23 '24 09:01 BrainbugN1

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

jheling avatar Jan 24 '24 18:01 jheling

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

aty19 avatar Mar 05 '24 11:03 aty19

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.

jheling avatar Mar 05 '24 17:03 jheling

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

aty19 avatar Mar 06 '24 10:03 aty19

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.

jheling avatar Mar 06 '24 12:03 jheling

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)

aty19 avatar Mar 06 '24 14:03 aty19

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

jheling avatar Mar 06 '24 16:03 jheling

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>

docjones0 avatar Mar 06 '24 20:03 docjones0

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

jheling avatar Mar 11 '24 18:03 jheling

@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 avatar Mar 12 '24 21:03 docjones0

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

docjones0 avatar Mar 20 '24 20:03 docjones0

@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.

jheling avatar Mar 21 '24 18:03 jheling

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.

cweyer avatar Mar 27 '24 13:03 cweyer

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?

jheling avatar Mar 29 '24 17:03 jheling

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

cweyer avatar Mar 29 '24 21:03 cweyer

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

docjones0 avatar Mar 29 '24 21:03 docjones0

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

cweyer avatar Mar 29 '24 22:03 cweyer

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.

jheling avatar Apr 04 '24 17:04 jheling

Hi @jheling . My Dali-Gateway has 5 connected lights. Four led panels are correctly shown by your integration, the turnable whit led strip isn't. Here is the xml dump file. The name of the light is "Schattenfuge Büro". Do you think there might a away to add this one? freeathome_dump_192.168.178.33_2024_07_21_21_53_42.xml.zip

Alox-K avatar Jul 21 '24 19:07 Alox-K

@Alox-K Have you also used the code in #182? It should also handle the turnable white led strip.

jheling avatar Jul 30 '24 19:07 jheling

Thank you for the hint @jheling. I didn't notice the code there right know but tried it. It's working, thank you! (Feeling like a programmer after the copy and paste operation :-) ) Are you going to merge this thing back to your main code? Otherwise, I will loose this support after an upgrade of your addon...?

Thank you very much!

Alox-K avatar Aug 06 '24 09:08 Alox-K

@Alox-K. I am not merging the code yet. I still need some confirmation that the rgb lights are working. You tested the Dimmable, white-tone adjustable lights, so that is confirmed. Last time i the merge of another pull request went wrong, because it was not fully tested

jheling avatar Aug 14 '24 05:08 jheling