rogierhofboer / com.ikea.tradfri.gateway

Athom Homey App for the IKEA Tradfri Gateway
MIT License
18 stars 21 forks source link

App for new Dirigera Hub #82

Open einflussapparat opened 11 months ago

einflussapparat commented 11 months ago

hello i can´t connect the new Homey Pro 2023 to my Ikea Dirigera Hub (newer Version of Tradfri Gateway). Doesn´t accept my IP and Passwort - i think it might be the old app-version…? What can I do? Will a newer version the Dirigera Hub be published? Best regards

rogierhofboer commented 11 months ago

Hi,

Only the Tradfri hub is supported with this app.

This app is basically a wrapper around node-tradfri-client: https://github.com/AlCalzone/node-tradfri-client/ and uses CoAP protocol.

The Dirigera Hub uses WebSockets with JSON messages as protocol. The code at https://github.com/lpgera/dirigera could be used as a starting point for this. I don't own or plan to buy a Dirigera Hub, also I think a separate app would be more appropriate.

Best regards

Rogier

HeltZino commented 11 months ago

When trying to discover the Dirigera hub. (Firmware 2.354.0, App vesjon 1.12.1) I get this error : Can not read properties of NULL (reading 'address')

rogierhofboer commented 11 months ago

Not sure why you get this specific error, but the Dirigera hub is not supported by this app.

HeltZino commented 11 months ago

When will it be supported ? Homey say that they support it and you was the contact person on it .,

rogierhofboer commented 11 months ago

Sorry, but that information is not correct. The Dirigera hub will not be supported by this app. See also my comment above: https://github.com/rogierhofboer/com.ikea.tradfri.gateway/issues/82#issuecomment-1638698183

HeltZino commented 11 months ago

Found a workaround here. Add the devices as Zigbee as Homey and not as a Ikea Trådfri. Then it will work just fine. You get the same taggs, nams and devices.

So do like this :

Add new device Homey Zigbee Set your device in par mode

and now you can integrate the deviceses in to your flow.

rogierhofboer commented 11 months ago

That will work for any Ikea device. This way Homey is the hub and the Tradfri or Dirigera hub will not be used.

Disadvantages of this route are: the devices will not receive firmware updates and the arrows on the remote to switch scenes do no work out of the box of the remote is directly paired to the lamp. You can program everything by hand via Homey, but in this case you cannot control the lights with the remotes if Homey is down.

The advantage is you have more control over what buttons do and the remotes can be used to control other, even non-Ikea devices.

HeltZino commented 11 months ago

Well, i have manage to use the arrows on the switch to turn on and off different light groups and also use the dim function . on lights and that is just what i needed :). As of he firmware upgrade i can do that with the Ikea app. True, if Homey is down it will not work, but is Homey ever down ? :). But if i loose internet i can not use any at all,,,

rogierhofboer commented 11 months ago

It is also possible to pair remotes with lights, without any hub. This way they will work even with the hub and/or Homey turned off. You will still need mains power however ;).

As far as I know this is only supported while setting up using the Tradfri (and possibly Dirigera) hub or by using zigbee2mqtt with for example a raspberry pi and a zigbee usb stick.

Apart from that, at least my old Homey (Pro) and the Tradfri hub keep working without internet connection, so only using local ethernet and/or WiFi. The Tradfri hub is not reachable from internet, so it cannot even be used with a non-Pro cloud based Homey. For the Dirigera hub don't know.