homebridge-plugins / homebridge-ewelink

Homebridge plugin to integrate eWeLink devices into HomeKit.
MIT License
387 stars 126 forks source link

0185 Garage As Lock Simulation #314

Closed granborja closed 2 years ago

granborja commented 2 years ago

Hi This is an opener for garage doors. I can use it with homekit but as a switch.

I tried to set it like a garage door but the coolkit 0185 is not a device option and the other options didnt work.

if you could set this model i appreciate it. Thanks you.

bwp91 commented 2 years ago

Hi @granborja

Try selecting the Eachen GD-DC5 option in the model list. I believe this is a similar device.

Let me know if this works and then I can add the 0185 to the list with the GD-DC5.

Thanks!

granborja commented 2 years ago

Hi again @bwp91 !

It didn't work! In addition, when I selected the GD-DC5 it cannot allow me the option "show as" in order to set up as a garage door.

If I can do anything to help please let me know!

bwp91 commented 2 years ago

Can you provide me with a link to the product you have? like an aliexpress link for example?

granborja commented 2 years ago

This is it!

Amazon: https://www.amazon.es/gp/product/B07X1F634D/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1

Aliexpress: https://es.aliexpress.com/item/1005002395109057.html?spm=a2g0o.productlist.0.0.46e4270fg7kOjl&algo_pvid=632798fe-2ab7-40da-bc0d-1b93a3bfa1a4&algo_exp_id=632798fe-2ab7-40da-bc0d-1b93a3bfa1a4-16&pdp_ext_f=%7B%22sku_id%22%3A%2212000020505705798%22%7D

Its the same product in both links

bwp91 commented 2 years ago

Thanks, so, if you select the model as "Eachen GD-DC5", save, and restart the plugin, why doesn't it work?

granborja commented 2 years ago

I don't know... it is showed at the home app but when I push it.. nothing happens

bwp91 commented 2 years ago

It should automatically show in the home app as a garage door opener, not a switch

bwp91 commented 2 years ago

Does anything appear in the homebridge log when you open/close the accessory in the home app?

granborja commented 2 years ago

okay! it is working now! It is possible to allow this product to "show as"? Because I have two. One in the garage door and one in the main door of the house, which has a magnetic lock. It would be great if I could control it as a lock and link it with the sensor

Thanks!

bwp91 commented 2 years ago

Yes, I will look into this at some point!

granborja commented 2 years ago

@bwp91 thank you so much! its possible change the status of the garage door? Because it works okay but when the gate is closed in homekit appears open. The other 0185 that I have is installed in the main door, as i said. And I dont if its better simulated it as a lock or as a door. I would like to give permissions to my family. Sorry for my bad english and thank you again

bwp91 commented 2 years ago

its possible change the status of the garage door? Because it works okay but when the gate is closed in homekit appears open.

Are you saying it is completely reversed? ie open shows as closed, closed as open, closing as opening and opening as closing?

granborja commented 2 years ago

Yes it is. And impossible trying with rf

granborja commented 2 years ago

Do you think is better buy a Sonoff RE5V1C and setup as a door or lock?

bwp91 commented 2 years ago

Yes it is. And impossible trying with rf

Do you somehow have it installed reversed? The device normally reports switch:off when it is closed (and the magnetic sensor is touching) or switch:on when it is open/opening/closing

granborja commented 2 years ago

@bwp91 I have installed the sensor just now. I had it without sensor before. I think I have to reset it and see if its okay now, but now Im abroad and Im not able to try it.

do you think its better try to install a RE5V1C on my magnetic lock? Ive thought that maybe its better to simulate a lock. Thank you.

bwp91 commented 2 years ago

Does the lock automatically close again after a few seconds? Without something needed to be pressed?

granborja commented 2 years ago

Does the lock automatically close again after a few seconds? Without something needed to be pressed?

Nop

bwp91 commented 2 years ago

Ah, so as a garage door it works properly, you’d just prefer it to be shown as a lock instead?

granborja commented 2 years ago

Ah, so as a garage door it works properly, you’d just prefer it to be shown as a lock instead?

Yeah The one I have at garage door works properly. But the one I have at the magnetic lock cant be set as “show as” a lock. Because if I do that it doesnt work.

bwp91 commented 2 years ago

Can you update to the beta version of the plugin and just verify that you can now select a “show as” for this device type in the plugin settings? it won’t change to a lock type yet but i just want to make sure that so far it hasn’t stopped anything from working as a garage

granborja commented 2 years ago

@bwp91 thank you! I can't now, but Saturday when I arrive at home I will do it and I will thank you buying you a coffee!

bwp91 commented 2 years ago

a relaxing cup of café con leche en plaza mayor 👍

bwp91 commented 2 years ago

When you update to the beta on saturday and select lock in the plugin settings, it should show and work as a lock now!

granborja commented 2 years ago

Looking forward to try it!

Thank you

granborja commented 2 years ago

Hi Ben! I am not able to update to the beta... I am suppose to update to the 1.3.7 beta? I just have done it but the option of show as doesn't appear

bwp91 commented 2 years ago

I think you're confusing the homebridge version for the plugin version. Homebridge version should be at 1.3.8.

You can download the beta version of the plugin from the Plugins page of the UI...

https://github.com/bwp91/homebridge-ewelink/wiki/Beta-Version#homebridge-ui

granborja commented 2 years ago

Youre right! I think Ive already done but it isnt working..

bwp91 commented 2 years ago

what isn’t working exactly?

granborja commented 2 years ago

It shows the eachen as a lock but when i press the button it doesnt open. if i dont choose the option “show as” i can open the eachen without problem

bwp91 commented 2 years ago

Can you show me your ewelink config section json? if you remove your ewelink username and password?

granborja commented 2 years ago

{ "name": "eWeLink", "username": "@hom", "password": "", "language": "en", "mode": "auto", "singleDevices": [ { "label": "Puerta entrada", "deviceId": "100113e3fb", "deviceModel": "gddc5", "showAsEachen": "lock" } ], "platform": "eWeLink" }

bwp91 commented 2 years ago

And when you click the lock icon to open it, nothing happens?

granborja commented 2 years ago

Nop. But I dont do the "show as" configuration it opens

bwp91 commented 2 years ago

Can you update to the newer beta v8.6.1-beta.11 to see if this has fixed it?

granborja commented 2 years ago

It is working now. But it doesnt show the real state. It should be locked all the time and when I push it unlocked for few seconds!

bwp91 commented 2 years ago

Does the lock automatically close again after a few seconds? Without something needed to be pressed?

I asked you this here and you said no?

granborja commented 2 years ago

Sorry, I didnt understand english very well.. I thought that you were askingif the lock did that at that moment..

bwp91 commented 2 years ago

This coolkit 0185 device is a garage door opener which needs a command to open the door and also another command to close the door.

I don't understand how you are using this device in a scenario which only opens the door? Don't you then need to close the door manually?

Can you explain exactly how you have this device setup and how you are using it?

granborja commented 2 years ago

I have it installed like an intercom, it works like the nuki opener.. do you know it?

bwp91 commented 2 years ago

If you only use it to open the door (and then it closes/locks after a few seconds) you may be better to set this up slightly differently.

Choose the top item (Sonoff BASIC/...) as the model, then choose "1 Lock" from the show as list. Then for the operation time, enter the number of seconds that the door unlocks for (setting is in deciseconds so 30 for 3 seconds).

Restart the plugin, and this may then behave more like what you are looking for?

granborja commented 2 years ago

yes! I tried that at first and Im trying now. But when I press it doesnt open

bwp91 commented 2 years ago

Can you get me a screenshot of the device information as shown in the "My Devices" section of the plugins settings?

Also, are there any errors in the homebridge log when you try to control the device via the home app?

granborja commented 2 years ago

hh

The log appears to be okay.

Also.. I would appreciate if the sonoff mini could be showed as a heater

bwp91 commented 2 years ago

If you scroll up this page in the screenshot you posted, the middle tab at the top is called "My Devices". I mean a screenshot of this device on that list.

Also.. I would appreciate if the sonoff mini could be showed as a heater

This is impossible since a HomeKit heater accessory needs to show a current temperature too, which the sonoff mini cannot provide.

bwp91 commented 2 years ago

Do you currently use the ewelink app to control this device? After you press open in the app, doesn't it continue to show as open until you close it again?

granborja commented 2 years ago

Nop. It shows as closed few seconds and then retunrs to open.

granborja commented 2 years ago

I have a sensor of temperature.. cant link the two?

bwp91 commented 2 years ago

Can you use the plugin settings to turn on "Debug Logging", and restart the plugin.

Then use the ewelink app to open the device as you normally would... and show me all the logs that appear in the homebridge log?

granborja commented 2 years ago

Okay, i will do it