Tuya Garage door opener (Kogan Smart Wireless Garage Door Opener)

“code”: “control”
“code”: “close_reminder”,
“value”: false

control Integer
“range”: [
close_reminder Boolean

“result”: {
“active_time”: 1618627695,
“category”: “mc”,
“category_name”: “Door/Window Controller”,
“create_time”: 1618627695,
“gateway_id”: “”,
“icon”: “smart/icon/ay15253387844269Sg99/af8b87d81595558ed3433d7c2d0b6ef8.png”,
“id”: “0337807124a1600b1ee3”,
“model”: “”,
“name”: “Kogan Smart Wireless Garage Door Opener”,
“online”: true,
“product_id”: “8pmfag4piankf06t”,
“product_name”: “Kogan Smart Wireless Garage Door Opener”,
“sub”: false,
“time_zone”: “+10:00”,
“update_time”: 1636715387,
“success”: true,
“t”: 1636723084296

I was able to control my Kogan Tuya Garage opener until 2020.10 so I thought a defect had found it’s way in but was advised it was never supported and that a Feature Request should be raised, so thank you @sambarlick for raising this.

Garage Door Opener - Release 2021.11; no entities are available: Switch, Binary Sensor

I updated HAOS on Raspberry Pi 4B to core-2021.11.0 and found my garage door opener but without any entities.

--------------------------- start log ---------------------------
No errors have been reported
---------------------------- end log ----------------------------


I wish I had’ve known about this entity lacking before updating. Very frustrating. Does the old Tuya integration through HACS still work?

Mine is showing as switch and works, but it´s not showing the sensors, so i can´t track the state it´s in.

Did you try local tuya , I have the same issue with a device on TuyaV2 but it works with local tuya

what did you set your values at for this?
i can get the state and the 10 min notifaction to trigger but i cant get the door to open in HA
im a bit of a newbe so any help would be very helpful
i see that 104 is the possotion sensor
105 is the 10 min trigger
looks like 102 in the state
and 101 is the trigger to open/close

i could be wrong on all 4 of course haha

any help would be super

No luck here with Local Tuya unfortunately, it just won’t connect to my device. Might just have to wait for the official one to get updated…

I’ve added my vote.

Just bought one of these:

Product Name
Smart Wireless Garage Door Opener

Product Category
Device Status
Activated At
2022-10-28 17:37:13

1 Like

I too just bought same one and am disappointed its currently not supported.

Can we please get this expedited? Otherwise this thing is pretty much useless to me.

1 Like

Me too need Laser garage door opener support in Home assistant via TUYA

Given how long this has been going on, and no indicators as to if a fix is coming, I feel as though no one is listening.

I have a Kogan one too - It works by setting up Tap-To-Run in the Tuya app these show as buttons in Home Assist. Weirdly the current state of the device does show up??

Full support would be nice as I’m having issues with Homekit integration meaning I have to say “turn on open garage door” to Siri and the open garage door magic button hasn’t appears on my Carplay stereo that others have manage to get working with other openers.

I have mine working with the current config - took a long time to figure out.

I couldn’t get the positioning to work right - but I gave up on it and am happy with how it works rn.

Door Control

Setting Value Description
ID 101 (Open) Data Point ID
Sensor Type Cover
Friendly Name Garage Door Descriptive Name
Open_Close_Stop Commands Set open_close_stop Start/Stop Action
Positioning mode position Mode for determining door state
Current Position 102 Closed Current Position Data Point
Set Position 102 Closed Position Data Point
Opening Time 14 seconds Time to change door state

Door Sensor

Setting Value Description
ID 102 (Closed) Data Point ID
Sensor Type Binary Sensor
Friendly Name Garage State Descriptive Name
On Value Opened Value when on/open
Off Value Closed Value when off/closed
Device Class Garage Door Type of Device

Battery Sensor

Setting Value Description
ID 104 Data Point ID
Sensor Type Sensor
Friendly Name Garage Sensor Battery Descriptive Name
Unit of Measurement % Measurement to display
Device Class Battery Type of Device
Scaling Factor 1 1 = 100%

And I made a new door sensor to fix some oddities with the original one.

# Garage Door
  - platform: template
        device_class: garage
        friendly_name: "Garage Door"
        value_template: >-
          {% if is_state('binary_sensor.garage_state','on') %}
          {% else %}
          {% endif %}
          service: cover.open_cover
            entity_id: cover.garage_door
          service: cover.close_cover
            entity_id: cover.garage_door
          service: cover.stop_cover
            entity_id: cover.garage_door
        icon_template: >-
          {% if is_state('binary_sensor.garage_state','on') %}
          {% else %}
          {% endif %}

This is awesome @vaemarr! Thank you so much.

Couple of things that I noticed following your instructions:

  1. If you add the “Door Control” with ID 101 and Current Position, Set Position as 102, then Door Sensor is unavailable to be added as an additional entity. The way around this was to add the Door Control Last, and choosing ID, Current Position & Set Position as 101
  2. I added unique_id to the cover template so I could edit the entity in the dashboard

I have hidden the original cover.garage_door entity from the dashboard and because of the template and the sensor entity, this works perfect!

Thanks again

No worries and that’s awesome.

Does door positioning work for you with this configuration? If so, might need to re-do mine (after backing up just in case I fubar something)

Sorry couldn’t respond earlier, but no door positioning doesnt work for me.

ah ok - all good :slight_smile:

Thought I would add my experience to help others. I also bought the “Connect Smart Remote Garage Door Opener” hoping it would work out of the box, but that was not the case…

I ended up using the LocalTuya integration as a cover type device. Did try the TuyaLocal integration that had the Kogan Smart Wireless Garage Door Opener as a device you can add. It worked but the position status did not change. Using Developer Tools did testing and checked the states and found that the raw_state attribute correctly reported the door position.

After much research I found out how to make a custom sensor that can be added to the dashboard. It will also show when the door is opening or closing. Thanks to @tom_l for the basic code I found.

- platform: template
      friendly_name: "Garage Door Status"
      value_template: "{{ state_attr('binary_sensor.position', 'raw_state')|title }}"
      icon_template: >
        {% if is_state_attr('binary_sensor.position', 'raw_state', "closed") %}
        {% else %}
        {% endif %}