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

[mqtt.homeassistant] handle null component name #15427

Merged
merged 4 commits into from
Nov 18, 2023

Conversation

ccutrer
Copy link
Contributor

@ccutrer ccutrer commented Aug 14, 2023

Channels from such components will not have a group. this is now done by zigbee2mqtt for the "default" component of a device, such as the light. HASS encourages this as of release 2023.8

Fixes #15634

Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the conflict, otherwise LGTM

channels from such components will not have a group. this is
now done by zigbee2mqtt for the "default" component of a device,
such as the light. HASS encourages this as of release 2023.8

Signed-off-by: Cody Cutrer <[email protected]>
Signed-off-by: Cody Cutrer <[email protected]>
@ccutrer ccutrer force-pushed the mqtt-homeassistant-null-component-name branch from a4667fe to 87d119e Compare September 25, 2023 15:25
@ccutrer
Copy link
Contributor Author

ccutrer commented Sep 25, 2023

rebased and merge conflict resolved

Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! Looking at the call stack of #15634 it seems to be fixed with this PR. If you are able to confirm this, can you link the issue?

@jlaur jlaur added the bug An unexpected problem or unintended behavior of an add-on label Oct 17, 2023
@rcambrj
Copy link

rcambrj commented Nov 18, 2023

Is there something holding up this PR?

I was just trying openhab with zigbee2mqtt and this problem prevents any of the lights from functioning.

In the meantime, I've downgraded zigbee2mqtt to 1.32.2. For the uninitiated on openhabian:

systemctl stop zigbee2mqtt
cd /opt/zigbee2mqtt
git checkout 1.32.2
npm install
systemctl start zigbee2mqtt

@antroids
Copy link
Contributor

LGTM

@lolodomo
Copy link
Contributor

@jlaur: it looks like you already reviewed this PR ?

Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jlaur jlaur merged commit 7fc351c into openhab:main Nov 18, 2023
3 checks passed
@jlaur jlaur added this to the 4.1 milestone Nov 18, 2023
ccutrer added a commit to ccutrer/openhab-addons that referenced this pull request Nov 18, 2023
Due to openhab#15427 and openhab#14839 being developed independently, but merged
to main successively

Signed-off-by: Cody Cutrer <[email protected]>
jlaur pushed a commit that referenced this pull request Nov 18, 2023
Due to #15427 and #14839 being developed independently, but merged
to main successively

Signed-off-by: Cody Cutrer <[email protected]>
@ccutrer ccutrer deleted the mqtt-homeassistant-null-component-name branch November 18, 2023 22:38
ccutrer added a commit to ccutrer/openhab-addons that referenced this pull request Nov 18, 2023
ccutrer added a commit to ccutrer/openhab-addons that referenced this pull request Nov 18, 2023
Follow on to openhab#15427

ring-mqtt sends `"name": ""`, not `"name": null` or simply omitting it,
so be sure to handle that way as well

Signed-off-by: Cody Cutrer <[email protected]>
lolodomo pushed a commit that referenced this pull request Nov 18, 2023
Follow on to #15427

ring-mqtt sends `"name": ""`, not `"name": null` or simply omitting it,
so be sure to handle that way as well

Signed-off-by: Cody Cutrer <[email protected]>
ccutrer added a commit to ccutrer/openhab-addons that referenced this pull request Nov 19, 2023
This component is fairly non-standard - it doesn't add any channels.
Instead, it provides several properties to the thing, and also adds
a thing configuration allowing you to trigger an OTA update on a
Home Assistant device from MainUI.

Signed-off-by: Cody Cutrer <[email protected]>

fix compilation problems now that we're rebased on top of openhab#15427

Signed-off-by: Cody Cutrer <[email protected]>
ccutrer added a commit to ccutrer/openhab-addons that referenced this pull request Nov 19, 2023
This component is fairly non-standard - it doesn't add any channels.
Instead, it provides several properties to the thing, and also adds
a thing configuration allowing you to trigger an OTA update on a
Home Assistant device from MainUI.

Signed-off-by: Cody Cutrer <[email protected]>

fix compilation problems now that we're rebased on top of openhab#15427

Signed-off-by: Cody Cutrer <[email protected]>
ccutrer added a commit to ccutrer/openhab-addons that referenced this pull request Nov 20, 2023
This component is fairly non-standard - it doesn't add any channels.
Instead, it provides several properties to the thing, and also adds
a thing configuration allowing you to trigger an OTA update on a
Home Assistant device from MainUI.

Signed-off-by: Cody Cutrer <[email protected]>

fix compilation problems now that we're rebased on top of openhab#15427

Signed-off-by: Cody Cutrer <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Nov 26, 2023
* [mqtt.homeassistant] handle null component name

channels from such components will not have a group. this is
now done by zigbee2mqtt for the "default" component of a device,
such as the light. HASS encourages this as of release 2023.8

Signed-off-by: Cody Cutrer <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Nov 26, 2023
Due to openhab#15427 and openhab#14839 being developed independently, but merged
to main successively

Signed-off-by: Cody Cutrer <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Nov 26, 2023
Follow on to openhab#15427

ring-mqtt sends `"name": ""`, not `"name": null` or simply omitting it,
so be sure to handle that way as well

Signed-off-by: Cody Cutrer <[email protected]>
ccutrer added a commit to ccutrer/openhab-addons that referenced this pull request Nov 29, 2023
This component is fairly non-standard - it doesn't add any channels.
Instead, it provides several properties to the thing, and also adds
a thing configuration allowing you to trigger an OTA update on a
Home Assistant device from MainUI.

Signed-off-by: Cody Cutrer <[email protected]>

fix compilation problems now that we're rebased on top of openhab#15427

Signed-off-by: Cody Cutrer <[email protected]>
ccutrer added a commit to ccutrer/openhab-addons that referenced this pull request Dec 11, 2023
This component is fairly non-standard - it doesn't add any channels.
Instead, it provides several properties to the thing, and also adds
a thing configuration allowing you to trigger an OTA update on a
Home Assistant device from MainUI.

Signed-off-by: Cody Cutrer <[email protected]>

fix compilation problems now that we're rebased on top of openhab#15427

Signed-off-by: Cody Cutrer <[email protected]>
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
* [mqtt.homeassistant] handle null component name

channels from such components will not have a group. this is
now done by zigbee2mqtt for the "default" component of a device,
such as the light. HASS encourages this as of release 2023.8

Signed-off-by: Cody Cutrer <[email protected]>
Signed-off-by: Jørgen Austvik <[email protected]>
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
Due to openhab#15427 and openhab#14839 being developed independently, but merged
to main successively

Signed-off-by: Cody Cutrer <[email protected]>
Signed-off-by: Jørgen Austvik <[email protected]>
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
Follow on to openhab#15427

ring-mqtt sends `"name": ""`, not `"name": null` or simply omitting it,
so be sure to handle that way as well

Signed-off-by: Cody Cutrer <[email protected]>
Signed-off-by: Jørgen Austvik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
6 participants