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

Set multiEndpoint to false for aeotec pico (single) switch #7745

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

lgraf
Copy link
Contributor

@lgraf lgraf commented Jul 6, 2024

The actual returned devices attributes are suffixed with the endpoint name and the attributes without endpoint suffix are always null.

The aeotec pico (single) switch only contains one output to switch, so i think multiEndpoint should be set to false. Another way could be to skip the affected attributes with multiEndpointSkip.

See the different state snapshots with different multiEndpoint configurations below.

state with multiEndpoint: true (default)

{
    "action": null,
    "current": null,
    "device_temperature": 31,
    "energy": null,
    "linkquality": 196,
    "power": null,
    "state": "OFF",
    "state_1": "ON",
    "voltage": null,
    "power_1": 5.5,
    "voltage_1": 232.4,
    "current_1": 0,
    "energy_1": 0
}

state with multiEndpoint: false

{
    "current": 0.04,
    "device_temperature": 31,
    "energy": 0,
    "linkquality": 182,
    "power": 5.5,
    "state": "ON",
    "voltage": 234.2,
    "action": null
}

aeotec_pico_db_entry.json
aeotec device manual
zigbee2mqtt device manual

@Koenkk
Copy link
Owner

Koenkk commented Jul 7, 2024

Please use the multiEndpointSkip which can be passed as an argument to deviceEndpoints

@lgraf lgraf force-pushed the aeotec-zga002-multiendpoint-suffix branch from 76661c3 to f9c9389 Compare July 7, 2024 14:09
@lgraf
Copy link
Contributor Author

lgraf commented Jul 7, 2024

@Koenkk done

@Koenkk Koenkk merged commit 1c04b56 into Koenkk:master Jul 8, 2024
2 checks passed
@Koenkk
Copy link
Owner

Koenkk commented Jul 8, 2024

Thanks!

@lgraf lgraf deleted the aeotec-zga002-multiendpoint-suffix branch July 15, 2024 06:02
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

Successfully merging this pull request may close these issues.

None yet

2 participants