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

1.40.2 - Entities showing Unknown not None - Buttons exposing actions #24195

Closed
woodmj74 opened this issue Oct 3, 2024 · 8 comments
Closed
Labels
problem Something isn't working

Comments

@woodmj74
Copy link

woodmj74 commented Oct 3, 2024

What happened?

When an entity such as sensor.[name]_action stops receiving an action its status is set to Unknown.

What did you expect to happen?

Previously, this entity when empty contained None. Expected behaviour to remain the same:

image
1.40.2 installed at 08:50 and difference in behaviour seen

How to reproduce it (minimal and precise)

  • Press right button
  • MQTT action "right"
  • entity state "right"
  • Release button
  • MQTT action ""
  • entity state "unknown"

Zigbee2MQTT version

1.40.2

Adapter firmware version

20230507

Adapter

zStack3x0

Setup

HA add on

Debug log

No response

@woodmj74 woodmj74 added the problem Something isn't working label Oct 3, 2024
@Skynetnexus
Copy link

Skynetnexus commented Oct 7, 2024

Same issue, button action, all brands, became unavailable after installing core 2024.10.01 reverted using "ha core update --version 2024.9.3" and back to normal. Zigbee2MQTT version 1.40.0-dev commit: [0d46354] - Coordinator revision
20240710

@alexsaas
Copy link

Same here since Update HA from 2024.9.3 to 2024.10.3.

@Koenkk
Copy link
Owner

Koenkk commented Oct 21, 2024

Seems to be some regression from HA, anyway, even if this can be fixed from Z2M we won't as the action sensor is going to be removed in Z2M 2.0.0 (#24198)

@woodmj74
Copy link
Author

Okay thanks for the update @Koenkk

Closing based on feedback.

@Skynetnexus
Copy link

Seems to be some regression from HA, anyway, even if this can be fixed from Z2M we won't as the action sensor is going to be removed in Z2M 2.0.0 (#24198)

The Action Sensor is going? I have 13 buttons that I trigger off the action sensor, I will have to start using sensor.button_click instead of sensor.button_action but 2 of my buttons do not expose the click sensor ( Hue smart button )

@Koenkk
Copy link
Owner

Koenkk commented Oct 22, 2024

The click sensor is also deprecated, use the MQTT device trigger

@alexsaas
Copy link

The click sensor is also deprecated, use the MQTT device trigger

Hi, what about the new event entity you are discussing here:

#24198 (reply in thread)

will it be integrated into zigbee2MQTT? I think this seems to be a very good alternative.

@Skynetnexus
Copy link

Skynetnexus commented Oct 23, 2024

The click sensor is also deprecated, use the MQTT device trigger

Being an average user, I have scratched my head over this and finally work out what is happening, in layman terms:-
Buttons sensors like sensor.mybutton_action and sensor.mybutton_click will not be created by Z2M and available in HA the future.

The recommended solution mentioned is to use MQTT device triggers, but this looks like a lot of work as you need to find the device ID etc.

Eventually I found this post ( #3033) and it clicked and became easy. Don't write the automation in yaml, "use the Home Assistant automation editor to respond to this event."
You end up with this :

triggers:

  • domain: mqtt
    device_id: 6916c0344c86dbe40a2a96a29fdba5a5
    type: click
    subtype: single
    trigger: device

P.S. in my travels, as a back up, I worked out that this trigger works too:-

triggers:

  • topic: zigbee2mqtt/Doorbell/click
    trigger: mqtt
    payload: single
  • topic: zigbee2mqtt/Doorbell/click
    trigger: mqtt
    payload: double
  • topic: zigbee2mqtt/Doorbell/click
    trigger: mqtt
    payload: triple

P.P.S. @ Koenkk A huge thank you for all you work on zigbee2MQTT and Home Assistant and thank you for chiming in on this topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants