zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

TuYa PJ-ZGD01 Garage door opener trigger doesn't toggle

Open mcruscher opened this issue 4 years ago β€’ 10 comments

What happened?

When pressing the trigger in Zigbee2MQTT it doesn't toggle

What did you expect to happen?

The trigger should turn back to its original state

How to reproduce it (minimal and precise)

Just press the trigger switch.

Zigbee2MQTT version

1.25.2

Adapter firmware version

20201127

Adapter

zStack12

Debug log

No response

mcruscher avatar Jun 14 '22 14:06 mcruscher

Same issue here after having just bought the Tuya PJ-ZGD01

Zigbee2MQTT version 1.25.2-1

Adapter & firmware version zzh! CC2652R_coordinator_20210708

Basically, the toggle-on switch does nothing, if you toggle it back only then it will click, then to activate the garage door again you need to toggle it twice again for it to activate/click. Seems there's a double toggle issue, of which the first toggle does nothing.

@Koenkk

Edit Update: I updated to 1.25.2-1 - still same issue. Garage door will only activate movement on second toggle each time

initd0 avatar Jun 17 '22 07:06 initd0

There is no issue on my end, it turns out i had to keep the contact sensor connected and (closed/open) to have the relay trigger correctly. My issue is probably unrelated to the OP's issue above.

initd0 avatar Jun 20 '22 13:06 initd0

I'm seeing this as well. Zigbee2MQTT shows trigger as a switch, however true-state does nothing and false-state triggers a momentary close of contact. The ideal would be for this to be a push button action for the false-state.

edit: it seems the reverse is true when the closed sensor is true.

image

alexeiw123 avatar Jun 30 '22 03:06 alexeiw123

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Jul 31 '22 00:07 github-actions[bot]

I'm seeing this as well. Zigbee2MQTT shows trigger as a switch, however true-state does nothing and false-state triggers a momentary close of contact. The ideal would be for this to be a push button action for the false-state.

edit: it seems the reverse is true when the closed sensor is true.

image

I have this exact same behaviour, only OFF position triggers the door, I don't want to use the contact sensor, I have my own sonoff sensor. Exists any workaround to make it work properly ?

garanda21 avatar Dec 03 '22 21:12 garanda21

The issue is actual for me as well..

Pavel-Demidyuk avatar Mar 01 '23 21:03 Pavel-Demidyuk

It’s a tricky one: seems relay teiggering is codependant with contact sensor state. If contact state is false, then sending command false will activate relay. If contact state is true, then sending command true will activate the relay.

TRIROG avatar Jul 17 '23 12:07 TRIROG

It’s a tricky one: seems relay teiggering is codependant with contact sensor state. If contact state is false, then sending command false will activate relay. If contact state is true, then sending command true will activate the relay.

It seems odd when you first interact with it, but it works fine once you add it in to the cover integration.

cover:
  - platform: template
    covers:
      garage_door:
        device_class: garage
        friendly_name: "Garage Door"
        unique_id: garage_door_cover
        value_template: >-
          {% if is_state('binary_sensor.garage_door_garage_door_contact', 'on') %}
            open
          {% else %}
            closed
          {% endif %}
        open_cover:
          service: switch.turn_on
          target:
            entity_id: switch.garage_door_trigger
        close_cover:
          service: switch.turn_off
          target:
            entity_id: switch.garage_door_trigger
        stop_cover:
          service: switch.turn_off
          target:
            entity_id: switch.garage_door_trigger

alexeiw123 avatar Jul 17 '23 12:07 alexeiw123

Yeah, but for simple open-stop-close it’s an overkill.

did anyone experiment with contact duration? Is it possible to define duration of the contact?

TRIROG avatar Jul 17 '23 12:07 TRIROG

I got same issue. From what I understood this is dependent on the board door is using. My board for example is expecting this trigger to happen under a second. So for it to work the relay must really fast become ON and OF. Currently when I trigger it, it becomes ON then waits a few seconds, then becomes OFF, and my board do not react to this at all. Not sure if this can be fixed on zigbee2mqtt side or at firmware level though. It feels like there should be a settings for this.

MardariG avatar Jul 27 '23 07:07 MardariG