[RELEASE] Home Assistant Device Bridge (HADB)

I added additional cover support in v0.1.43, specifically for device_class "curtain" (with a new optional child driver in HADB, Generic Component Window Shade).

Were you using "curtain" or something else? Want to give it a try?

FYI @toby

1 Like

Maybe this answer @alexcapone , @ubatra and @g.shepperd requests

2 Likes

Using cover for garage door

OK, that was supported prior to this update and should continue to work. Let us know if you see any issues with it.

Hmm.. hasn't worked for me. Just tried it again. The driver code is updated. I have the cover device selected in app settings, opened and closed the garage door, doesn't show up as child device.

Did you grab the (optional) garage door driver?

Awesome! Didn't realize there was a driver that I needed, should have paid more attention. It's working, thanks. :smile:

1 Like

No worries. The Hubitat staff was awesome and added a bunch of simple sensor "Generic Component" devices a few releases ago to help us support them more easily.

But more complicated devices (like garage doors, locks, etc) just aren't common enough to justify asking for them. So, there are a handful of custom child device types as part of the HADB distribution.

1 Like

Thank you for adding shade control. However, I'm having an issue. I have the Generic Component Garage Door Control driver installed but still can't see my roller shades as a child device after selecting them in the app.

You also need the Generic Component Window Shade driver. Did you add that?

2 Likes

I don't think so. I will add and check again. Thank you!

So after modifying the app to include Generic Component Window Shade Driver and trying to add cover devices I'm still not seeing them as a child device. Any idea what I could be doing wrong?

Will you please post some debug logs that show the traffic when you open and close your shades in HA? Be sure to enable logging on the HE parent device first

This is the window shade I added for testing:

Here is the log that are produced when I closed the shades:

Log

dev:992022-05-14 09:37:38.645 pm debugparse: domain: cover, device_class: shade, entity: cover.upstairs_left_bedroom_window_shade, newVals: [closed], friendly: Upstairs Left Bedroom Window Shade

dev:992022-05-14 09:37:38.642 pm debugparse(): description = {"id":1,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"cover.upstairs_left_bedroom_window_shade","old_state":{"entity_id":"cover.upstairs_left_bedroom_window_shade","state":"closed","attributes":{"current_position":29,"battery_level":100,"device_class":"shade","friendly_name":"Upstairs Left Bedroom Window Shade","supported_features":7},"last_changed":"2022-05-15T02:37:37.427686+00:00","last_updated":"2022-05-15T02:37:37.427686+00:00","context":{"id":"d2c946a402eac27c9857b5d5c6d9634b","parent_id":null,"user_id":"60acddc4fe314ffda034bbac76c5cd59"}},"new_state":{"entity_id":"cover.upstairs_left_bedroom_window_shade","state":"closed","attributes":{"current_position":0,"battery_level":100,"device_class":"shade","friendly_name":"Upstairs Left Bedroom Window Shade","supported_features":7},"last_changed":"2022-05-15T02:37:37.427686+00:00","last_updated":"2022-05-15T02:37:37.471213+00:00","context":{"id":"d2c946a402eac27c9857b5d5c6d9634b","parent_id":null,"user_id":"60acddc4fe314ffda034bbac76c5cd59"}}},"origin":"LOCAL","time_fired":"2022-05-15T02:37:37.471213+00:00","context":{"id":"d2c946a402eac27c9857b5d5c6d9634b","parent_id":null,"user_id":"60acddc4fe314ffda034bbac76c5cd59"}}}

dev:992022-05-14 09:37:38.584 pm debugparse: domain: cover, device_class: shade, entity: cover.upstairs_left_bedroom_window_shade, newVals: [closed], friendly: Upstairs Left Bedroom Window Shade

dev:992022-05-14 09:37:38.580 pm debugparse(): description = {"id":1,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"cover.upstairs_left_bedroom_window_shade","old_state":{"entity_id":"cover.upstairs_left_bedroom_window_shade","state":"closing","attributes":{"current_position":29,"battery_level":100,"device_class":"shade","friendly_name":"Upstairs Left Bedroom Window Shade","supported_features":7},"last_changed":"2022-05-15T02:37:32.916126+00:00","last_updated":"2022-05-15T02:37:32.916126+00:00","context":{"id":"d2c946a402eac27c9857b5d5c6d9634b","parent_id":null,"user_id":"60acddc4fe314ffda034bbac76c5cd59"}},"new_state":{"entity_id":"cover.upstairs_left_bedroom_window_shade","state":"closed","attributes":{"current_position":29,"battery_level":100,"device_class":"shade","friendly_name":"Upstairs Left Bedroom Window Shade","supported_features":7},"last_changed":"2022-05-15T02:37:37.427686+00:00","last_updated":"2022-05-15T02:37:37.427686+00:00","context":{"id":"d2c946a402eac27c9857b5d5c6d9634b","parent_id":null,"user_id":"60acddc4fe314ffda034bbac76c5cd59"}}},"origin":"LOCAL","time_fired":"2022-05-15T02:37:37.427686+00:00","context":{"id":"d2c946a402eac27c9857b5d5c6d9634b","parent_id":null,"user_id":"60acddc4fe314ffda034bbac76c5cd59"}}}

dev:992022-05-14 09:37:34.073 pm debugparse: domain: cover, device_class: shade, entity: cover.upstairs_left_bedroom_window_shade, newVals: [closing], friendly: Upstairs Left Bedroom Window Shade

dev:992022-05-14 09:37:34.070 pm debugparse(): description = {"id":1,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"cover.upstairs_left_bedroom_window_shade","old_state":{"entity_id":"cover.upstairs_left_bedroom_window_shade","state":"open","attributes":{"current_position":29,"battery_level":100,"device_class":"shade","friendly_name":"Upstairs Left Bedroom Window Shade","supported_features":7},"last_changed":"2022-05-15T02:37:18.455103+00:00","last_updated":"2022-05-15T02:37:28.536818+00:00","context":{"id":"0b8c581a5810308705fb7ba1340d9cc8","parent_id":null,"user_id":null}},"new_state":{"entity_id":"cover.upstairs_left_bedroom_window_shade","state":"closing","attributes":{"current_position":29,"battery_level":100,"device_class":"shade","friendly_name":"Upstairs Left Bedroom Window Shade","supported_features":7},"last_changed":"2022-05-15T02:37:32.916126+00:00","last_updated":"2022-05-15T02:37:32.916126+00:00","context":{"id":"d2c946a402eac27c9857b5d5c6d9634b","parent_id":null,"user_id":"60acddc4fe314ffda034bbac76c5cd59"}}},"origin":"LOCAL","time_fired":"2022-05-15T02:37:32.916126+00:00","context":{"id":"d2c946a402eac27c9857b5d5c6d9634b","parent_id":null,"user_id":"60acddc4fe314ffda034bbac76c5cd59"}}}

dev:992022-05-14 09:37:29.699 pm debugparse: domain: cover, device_class: shade, entity: cover.upstairs_left_bedroom_window_shade, newVals: [open], friendly: Upstairs Left Bedroom Window Shade

dev:992022-05-14 09:37:29.696 pm debugparse(): description = {"id":1,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"cover.upstairs_left_bedroom_window_shade","old_state":{"entity_id":"cover.upstairs_left_bedroom_window_shade","state":"open","attributes":{"current_position":55,"battery_level":100,"device_class":"shade","friendly_name":"Upstairs Left Bedroom Window Shade","supported_features":7},"last_changed":"2022-05-15T02:37:18.455103+00:00","last_updated":"2022-05-15T02:37:23.466642+00:00","context":{"id":"acf3aaf885fe23aa296ae35bc1e87a31","parent_id":null,"user_id":null}},"new_state":{"entity_id":"cover.upstairs_left_bedroom_window_shade","state":"open","attributes":{"current_position":29,"battery_level":100,"device_class":"shade","friendly_name":"Upstairs Left Bedroom Window Shade","supported_features":7},"last_changed":"2022-05-15T02:37:18.455103+00:00","last_updated":"2022-05-15T02:37:28.536818+00:00","context":{"id":"0b8c581a5810308705fb7ba1340d9cc8","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2022-05-15T02:37:28.536818+00:00","context":{"id":"0b8c581a5810308705fb7ba1340d9cc8","parent_id":null,"user_id":null}}}

dev:992022-05-14 09:37:24.629 pm debugparse: domain: cover, device_class: shade, entity: cover.upstairs_left_bedroom_window_shade, newVals: [open], friendly: Upstairs Left Bedroom Window Shade

dev:992022-05-14 09:37:24.625 pm debugparse(): description = {"id":1,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"cover.upstairs_left_bedroom_window_shade","old_state":{"entity_id":"cover.upstairs_left_bedroom_window_shade","state":"open","attributes":{"current_position":81,"battery_level":100,"device_class":"shade","friendly_name":"Upstairs Left Bedroom Window Shade","supported_features":7},"last_changed":"2022-05-15T02:37:18.455103+00:00","last_updated":"2022-05-15T02:37:18.470776+00:00","context":{"id":"55ae93db9add91d1e4c618479229f136","parent_id":null,"user_id":null}},"new_state":{"entity_id":"cover.upstairs_left_bedroom_window_shade","state":"open","attributes":{"current_position":55,"battery_level":100,"device_class":"shade","friendly_name":"Upstairs Left Bedroom Window Shade","supported_features":7},"last_changed":"2022-05-15T02:37:18.455103+00:00","last_updated":"2022-05-15T02:37:23.466642+00:00","context":{"id":"acf3aaf885fe23aa296ae35bc1e87a31","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2022-05-15T02:37:23.466642+00:00","context":{"id":"acf3aaf885fe23aa296ae35bc1e87a31","parent_id":null,"user_id":null}}}

dev:992022-05-14 09:37:19.635 pm debugparse: domain: cover, device_class: shade, entity: cover.upstairs_left_bedroom_window_shade, newVals: [open], friendly: Upstairs Left Bedroom Window Shade

dev:992022-05-14 09:37:19.632 pm debugparse(): description = {"id":1,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"cover.upstairs_left_bedroom_window_shade","old_state":{"entity_id":"cover.upstairs_left_bedroom_window_shade","state":"open","attributes":{"current_position":100,"battery_level":100,"device_class":"shade","friendly_name":"Upstairs Left Bedroom Window Shade","supported_features":7},"last_changed":"2022-05-15T02:37:18.455103+00:00","last_updated":"2022-05-15T02:37:18.455103+00:00","context":{"id":"da9c22b12325937baa5a953e65b42519","parent_id":null,"user_id":null}},"new_state":{"entity_id":"cover.upstairs_left_bedroom_window_shade","state":"open","attributes":{"current_position":81,"battery_level":100,"device_class":"shade","friendly_name":"Upstairs Left Bedroom Window Shade","supported_features":7},"last_changed":"2022-05-15T02:37:18.455103+00:00","last_updated":"2022-05-15T02:37:18.470776+00:00","context":{"id":"55ae93db9add91d1e4c618479229f136","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2022-05-15T02:37:18.470776+00:00","context":{"id":"55ae93db9add91d1e4c618479229f136","parent_id":null,"user_id":null}}}

dev:992022-05-14 09:37:19.610 pm debugparse: domain: cover, device_class: shade, entity: cover.upstairs_left_bedroom_window_shade, newVals: [open], friendly: Upstairs Left Bedroom Window Shade

dev:992022-05-14 09:37:19.607 pm debugparse(): description = {"id":1,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"cover.upstairs_left_bedroom_window_shade","old_state":{"entity_id":"cover.upstairs_left_bedroom_window_shade","state":"closing","attributes":{"current_position":100,"battery_level":100,"device_class":"shade","friendly_name":"Upstairs Left Bedroom Window Shade","supported_features":7},"last_changed":"2022-05-15T02:37:13.788420+00:00","last_updated":"2022-05-15T02:37:13.788420+00:00","context":{"id":"42c2270b266789aba116e2e5d1949557","parent_id":null,"user_id":"60acddc4fe314ffda034bbac76c5cd59"}},"new_state":{"entity_id":"cover.upstairs_left_bedroom_window_shade","state":"open","attributes":{"current_position":100,"battery_level":100,"device_class":"shade","friendly_name":"Upstairs Left Bedroom Window Shade","supported_features":7},"last_changed":"2022-05-15T02:37:18.455103+00:00","last_updated":"2022-05-15T02:37:18.455103+00:00","context":{"id":"da9c22b12325937baa5a953e65b42519","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2022-05-15T02:37:18.455103+00:00","context":{"id":"da9c22b12325937baa5a953e65b42519","parent_id":null,"user_id":null}}}

dev:992022-05-14 09:37:14.944 pm debugparse: domain: cover, device_class: shade, entity: cover.upstairs_left_bedroom_window_shade, newVals: [closing], friendly: Upstairs Left Bedroom Window Shade

dev:992022-05-14 09:37:14.941 pm debugparse(): description = {"id":1,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"cover.upstairs_left_bedroom_window_shade","old_state":{"entity_id":"cover.upstairs_left_bedroom_window_shade","state":"open","attributes":{"current_position":100,"battery_level":100,"device_class":"shade","friendly_name":"Upstairs Left Bedroom Window Shade","supported_features":7},"last_changed":"2022-05-15T02:30:24.343497+00:00","last_updated":"2022-05-15T02:30:39.071287+00:00","context":{"id":"346e9240a3d55339ed55becba710ff3f","parent_id":null,"user_id":null}},"new_state":{"entity_id":"cover.upstairs_left_bedroom_window_shade","state":"closing","attributes":{"current_position":100,"battery_level":100,"device_class":"shade","friendly_name":"Upstairs Left Bedroom Window Shade","supported_features":7},"last_changed":"2022-05-15T02:37:13.788420+00:00","last_updated":"2022-05-15T02:37:13.788420+00:00","context":{"id":"42c2270b266789aba116e2e5d1949557","parent_id":null,"user_id":"60acddc4fe314ffda034bbac76c5cd59"}}},"origin":"LOCAL","time_fired":"2022-05-15T02:37:13.788420+00:00","context":{"id":"42c2270b266789aba116e2e5d1949557","parent_id":null,"user_id":"60acddc4fe314ffda034bbac76c5cd59"}}}

These shades were literally shades, not curtains like the support I added previously. Thanks to testing help from @alexcapone, "shade" support is available in 0.1.44, which is now on GitHub and HPM.

This version uses the same child driver as before with "curtain," so there isn't anything to add beyond just updating the parent driver.

3 Likes

Hi everyone,

I'm hoping someone can help me with getting the app running. When I put in my IP and token, I click on "Discover and select devices." However, when it goes to the next screen, I don't get any devices. I went to HA and checked the logs and it says "Login attempt or request with invalid authentication from 192.168.x.xx (192.168.x.xx). (Apache-HttpClient/4.5.13 (Java/1.8.0_221))"

Anyone know what I'm doing wrong?

Is it possible to add a confirmation dialog window when selecting/de-selecting all devices? More than once I've run into the problem of accidentally selecting or deselecting and wiping out all of my existing selections.

The easiest way for me to fix it was to restore a previous hub backup but if there was an additional safeguard on the selection screen it would be extremely helpful. Thanks!

1 Like

This is a good idea. I’ve never made this mistake, but have come close.

Good idea, but it will be difficult with the way I have it implemented. I have an idea for how to make it work. I'll give it a shot and send you something to test.

3 Likes

Is it possible to add a confirmation dialog window when selecting/de-selecting all devices?

This change is in v0.1.45, now on GitHub and HPM.

Thanks for the suggestion and testing help, @alexcapone!

2 Likes