thirdreality / hubitat

handler of hubitat to suit of ThiradReality smart devices
0 stars 0 forks source link

referencing the button in user app code #1

Open relayman357 opened 1 year ago

relayman357 commented 1 year ago

Hi - how do we reference this button in user app? I've tried capability.button but when I install my app I can't select the Third Reality Smart Button for the button.

preferences { section("Select Devices") { input "doorContact1", "capability.contactSensor", title: "Door Contact 1", required: true input "alarm1", "capability.alarm", title: "Alarm 1", required: true input "button1", "capability.button", title: "Third Reality Smart Button", required: true }

kkossev commented 1 year ago

@relayman357 ThirdReality Smart Button (3RSB22BZ) is natively supported in HE inbuilt drivers : https://community.hubitat.com/t/release-2-3-2-available/95217

relayman357 commented 1 year ago

Hi kkossev - thank you. Yes, but I didn't know how to define the push button. I got it figured out, i was using capability.button but should have been using capability.pushableButton.

preferences { section("Select Devices") { input "doorContact1", "capability.contactSensor", title: "Door Contact 1", required: true input "alarm1", "capability.alarm", title: "Alarm 1", required: true input "button1", "capability.pushableButton", title: "Third Reality Smart Button", required: true } }