Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dali- Gateway #177

Open
BrainbugN1 opened this issue Jan 23, 2024 · 22 comments
Open

Dali- Gateway #177

BrainbugN1 opened this issue Jan 23, 2024 · 22 comments

Comments

@BrainbugN1
Copy link

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

@jheling
Copy link
Owner

jheling commented Jan 24, 2024

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
Copy link

aty19 commented Mar 5, 2024

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
Copy link
Owner

jheling commented Mar 5, 2024

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
Copy link

aty19 commented Mar 6, 2024

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
Copy link
Owner

jheling commented Mar 6, 2024

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
Copy link

aty19 commented Mar 6, 2024

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
Copy link
Owner

jheling commented Mar 6, 2024

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

@docjones0
Copy link

docjones0 commented Mar 6, 2024

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
Copy link
Owner

jheling commented Mar 11, 2024

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

@docjones0
Copy link

@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
Copy link

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

@jheling
Copy link
Owner

jheling commented Mar 21, 2024

@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
Copy link

cweyer commented Mar 27, 2024

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
Copy link
Owner

jheling commented Mar 29, 2024

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
Copy link

cweyer commented Mar 29, 2024

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

@docjones0
Copy link

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

@cweyer
Copy link

cweyer commented Mar 29, 2024

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
Copy link
Owner

jheling commented Apr 4, 2024

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.

@Alox-K
Copy link

Alox-K commented Jul 21, 2024

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

@jheling
Copy link
Owner

jheling commented Jul 30, 2024

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

@Alox-K
Copy link

Alox-K commented Aug 6, 2024

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!

@jheling
Copy link
Owner

jheling commented Aug 14, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants