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

LS Deutschland GmbH Home Base (A319463) not working #2183

Open
hoppe91 opened this issue Aug 16, 2024 · 13 comments
Open

LS Deutschland GmbH Home Base (A319463) not working #2183

hoppe91 opened this issue Aug 16, 2024 · 13 comments

Comments

@hoppe91
Copy link

hoppe91 commented Aug 16, 2024

Hi,
I tried yesterday to connect to my Home base (A319463) with the latest GIT release of this adapter (1.10.5). The connection to the device was established, but no states are mapped to the device.
Is this device already supported?

@asgothian
Copy link
Collaborator

May require a newer version of the zigbee-herdsman-converters. It should come into the zigbee adapter soon.

@asgothian
Copy link
Collaborator

Please test with the current GitHub version

@hoppe91
Copy link
Author

hoppe91 commented Sep 15, 2024

Hi @asgothian I updated to the latest version, but the error message "Device 0xb... "A319463" not described in statesMapping." is still there.

@asgothian
Copy link
Collaborator

The message means nothing anymore. How do the objects look ?

@hoppe91
Copy link
Author

hoppe91 commented Sep 16, 2024

Hi ... so the object looks like this:

Bildschirmfoto 2024-09-16 um 14 12 11

No state for controlling the light is created there, basic information of the device (e.g. link quality) is created.

@asgothian
Copy link
Collaborator

Please show the info tile of the device. Of special interest: the Manufaktur.ID and Manufacturer entries.

A.

@hoppe91
Copy link
Author

hoppe91 commented Sep 16, 2024

Hi ... sure, please finde the information here:
Bildschirmfoto 2024-09-16 um 16 57 10

@asgothian
Copy link
Collaborator

This is strange. Which version exactly are you running ? Please post the log entries from starting the zigbee Adapter. it lists in Detail which version is running.

A.

@hoppe91
Copy link
Author

hoppe91 commented Sep 17, 2024

Hi ... It should be the latest version from GIT:

"starting. Version 1.10.9 (non-npm: ioBroker/ioBroker.zigbee) in /opt/iobroker/node_modules/iobroker.zigbee, node: v20.16.0, js-controller: 6.0.11"

@asgothian
Copy link
Collaborator

Something is very fishy there - the device is supported for a while now and should provide the standard light states. Did the pairing go through successful or did you get a message about the device being not successfully paired ?

A

@hoppe91
Copy link
Author

hoppe91 commented Sep 19, 2024

Hi ... so as far as I noticed it the pairing went through without any problem. The only error message I got is "Device 0xb... "A319463" not described in statesMapping." . I took a look at the "devices.js" and found out that there is no model with the corresponding ID (A319463). I played around with it a little bit and added a device by adding a device with the state configuration "lightStatesWithColortemp". I ended up with the device and all states corresponding to "lightStatesWithColortemp" created, but the device is still not working. Are there more steps to go to add a new device?

@asgothian
Copy link
Collaborator

When the pairing is successful, there should be no need to have the device present in the devices.js of the zigbee Adapter. This is a legacy option which only still exists as it would possibly break user scripts to remove it. The Adapter should generate the states based on what is called "exposes" from the zigbee-herdsman-converters library - hence the comment that the message no longer carries any real meaning.
The definition in the zigbee-herdsman-converters library is like this:

        zigbeeModel: ['Emotion'],
        model: 'A319463',
        vendor: 'LS Deutschland GmbH',
        description: 'Home base',
        fromZigbee: light({colorTemp: {range: [153, 454]}, color: true}).fromZigbee,
        toZigbee: light({colorTemp: {range: [153, 454]}, color: true}).toZigbee,
        configure: light({colorTemp: {range: [153, 454]}, color: true}).configure[0],
        exposes: (device, options) => {
            if (!device) return [e.light_brightness_colortemp_colorxy([153, 454]), e.linkquality()];
            return [
                e.linkquality(),
                ...device.endpoints
                    .filter((ep) => ep.ID !== 242)
                    .map((ep) => {
                        return e.light_brightness_colortemp_colorxy([153, 454]).withEndpoint(`l${ep.ID}`);
                    }),
            ];
        },
        meta: {multiEndpoint: true},
        endpoint: (device) => {
            return Object.fromEntries(device.endpoints.filter((ep) => ep.ID !== 242).map((ep) => [`l${ep.ID}`, ep.ID]));
        },
    },

Main issue why it won't work with you adding code to devices.js may be that they are using the wrong endpoint. Unfortunately, the screenshot from the info Display does not show the current endpoint for the relevant clusters.

A.

@hoppe91
Copy link
Author

hoppe91 commented Sep 19, 2024

Ah ok ... so adding the device there should not be necessary. I switched back to your latest release and paired the device again. Here is the other half of the info display:

Bildschirmfoto 2024-09-19 um 16 39 07

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

2 participants