Porting SAGE Doorbell Sensor Driver help needed

driver

#1

I have just finished migrating my entire house to Hubitat from SmartThings. And now I need help with a driver for my favorite device which I got help with while on ST. It worked there but Hubitat errors out on line 102. I uploaded it to my github and need help modding it.

Can someone take a look? It is a Zigbee device and Hubitat enrolls it as a generic Device.


#2

Take a look and see if that fixes it with my pull.
It lets me save it but your have to test the product.


#3

You would also have to change the button presses. The button capability doesn't exit in Hubitat. You'd have to use pushable button capability. For that, the event name is "pushed" and the value is the button number. Using the event name "button" won't work.

image

The button capability has been deprecated. I can't take a look at it at the moment but if nobody else gets to it soon I can look at it later tonight.


#4

Thought that looked different. I'm on phone so only made the easy changes.


#5

I take no credit for knowing this....just for regurgitating what I have picked up from all the smart folks on here. :smiley: If I hadn't screwed it up on a driver too I wouldn't have known it either.


#6

Me neither :rofl: I have been playing around with a button controller which is why it looked different but if you hadn't said anything I wouldn't have known. I'll take a look tomorrow and see if I can covert the rest unless someone with some proper intelligence gets there first :crazy_face:


#7

Hi @BorrisTheCat,

Now I get a different error when I try to save the device driver.

Metadata Error: Capability 'Button' not found.

Hi @Ryan780,

I am good at tinkering with the hardware devices and not to good at coding. Do you mind telling me where I need to make the code changes in the Github code?


#8

Here is the guide to Hubitat’s Button implementation


#9

Sent you a pull request on github.


#10

Thank you for the help. I will test it tonight when I get back on my hub.


#11

Yeah I hadn't finished the changes at the time it was late so ran out of time. Looks like @Ryan780 has done it now?


#12

Thank you @BorrisTheCat & @Ryan780 for your help. I will try this DH in a few hours. Still at my desk.
My RDP to my home is acting up and keeps disconnecting.


#13

Hi @Ryan780, @BorrisTheCat,

The DH was accepted by Hubitat. Will test in the morning.


#14

Update, @Ryan780, @BorrisTheCat.

The DH is working. I am able to setup the RuleMachine to push notifications for my Front Doorbell and my Deck Doorbell. Thank you both for your help. I will keep the DH on the Github for anyone else who needs a copy.


#15

Great to hear!! Glad I could help.