fblackburn1 / node-red-contrib-hubitat

MIT License
18 stars 4 forks source link

How to tell Hubitat that garage door is opening or closing #152

Closed k5map closed 1 year ago

k5map commented 1 year ago

Currently I have NR interfaced to a virtual Garage Door in Hubitat. Since Hubitat does not "manage" the garage door, I am attempting to send the current device status to Hubitat to accurately reflect the status on the dashboard (i.e. opening or closing). I can only send open or close via the control node. What is the proper way to update the device status in Hubitat?

fblackburn1 commented 1 year ago

By "control node" did you mean "command node"? Using this node would be my guess too During development of these nodes, I didn't see API to update status, maybe you could ask on Hubitat forum If you find an API, you could use the "request node" which will handle all authentication for you

k5map commented 1 year ago

@fblackburn1 ... oops, yes; I meant Command node. My end goal is to show on the Hubitat dashboard the status of "opening" and "closing" on the virtual Garage door tile. Specifically, the dashboard tile would change from "open" to "closing" then "close" (and the opposite). Currently, I can click on the tile and do this manually but was looking for a way to do this from NR to HE since NR has the interface to the garage door. I'm open to any suggestions you might have to accomplish this.

fblackburn1 commented 1 year ago

Using the command node is what I would do If I understand correctly, your "real" device is directly on NR (through another set of nodes)? I don't see anything wrong with sending a "fake" command to HE to update the status

I don't have better solution for you But don't hesitate to ask on the Hubitat Forum, this community is really creative :smile:

k5map commented 1 year ago

Correct... NR is actually the interface to the opener. My problem is when I send "opening" or "closing" to the Command mode, I get an error and the virtual Garage Door in HE does not change status (only shows Open or Closed). I'll give the HE NR forum a try. Thanks again.

fblackburn1 commented 1 year ago

Oh well if you get an error it's the first thing you must say :smile: What is the error you have? I setup a virtual garage door controller and don't have any issue garage-door (the 5 sec delay when sending close is the transition time configured in the driver)