Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.69k stars 1.64k forks source link

permit_join switch in Home Assistant does not enable the timer #21692

Open McGiverGim opened 5 months ago

McGiverGim commented 5 months ago

What happened?

Since some time ago, I've observed a new zigbee2mqtt device in Home Assistant. It contains the sensors that until then, I configured using the "package" option. One of them, is a switch to "permit join", and other a sensor with the time left to permit join (a timer). If I enable the permit join from the zigbee2mqtt frontend, the permit join switch is enabled, and the timer contains the countdown. But if I enable the join directly from the Home Assistant switch, then there is no timer.

Is that intended or it must use the timer too? I expected so.

What did you expect to happen?

When I press the "permit join" switch on Home Assistant, the timer must start the countdown to disable it automatically.

How to reproduce it (minimal and precise)

Simply press the "permit join" switch and look at the timer to permit join sensor.

Zigbee2MQTT version

1.36.0

Adapter firmware version

20230507

Adapter

Egony Stick Ebyte

Setup

Add-on on Home Assistant, Raspberry Pi 4b

Debug log

I suppose it does not help too much, but here is the log after pressing the permit join switch:

debug 2024-03-06 09:21:04: Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data 'true'
info  2024-03-06 09:21:04: Zigbee: allowing new devices to join.
info  2024-03-06 09:21:04: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"value":true},"status":"ok"}'
Koenkk commented 5 months ago

Thats expected, you will have to manually turn it off again

McGiverGim commented 5 months ago

Then the sensor with the countdown is only useful when enabling it from the frontend? This has not too much sense.