[RELEASE] Home Assistant Device Bridge (HADB)

Can you post your logs?

Sure. Which logs would you need?

As per instructions:

A change has to occur on the device reporting the attribute in order for a log to be generated.

1 Like

Sorry, I should have realized. I'm waiting for a the data to change - it my take a while because the schedules are only updated every few hours. I appreciate your help.

Be aware that the debug log toggle will turn off after 30 minutes

1 Like

Does this help?


(I have changed from Cape Town to my local area, in case you are wondering why it is now Dan Pienaar and not Cape Town)

Nop, You need to enable debug logging:

It will give you entries like this in the log:

It is the log for the parent device that we need, not the one from the specific entity.

Sorry, I had the wrong device. Think I've got it now. Sorry about that.

dev:13382023-01-30 21:59:53.789debugparse: domain: sensor, device_class: null, entity: sensor.load_shedding_area_mangaung_5_danpienaar, newVals: [off], friendly: Dan Pienaar (5)
dev:13382023-01-30 21:59:53.677debugparse(): description = {"id":1,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"sensor.load_shedding_area_mangaung_5_danpienaar","old_state":{"entity_id":"sensor.load_shedding_area_mangaung_5_danpienaar","state":"off","attributes":{"stage":0,"start_time":0,"end_time":0,"ends_in":0,"starts_in":121,"next_stage":4,"next_start_time":"2023-01-30T22:00:00+00:00","next_end_time":"2023-01-31T00:30:00+00:00","forecast":[{"stage":4,"start_time":"2023-01-30T22:00:00+00:00","end_time":"2023-01-31T00:30:00+00:00"},{"stage":4,"start_time":"2023-01-31T10:00:00+00:00","end_time":"2023-01-31T12:30:00+00:00"},{"stage":4,"start_time":"2023-02-01T08:00:00+00:00","end_time":"2023-02-01T10:30:00+00:00"},{"stage":4,"start_time":"2023-02-01T20:00:00+00:00","end_time":"2023-02-01T22:30:00+00:00"},{"stage":4,"start_time":"2023-02-02T06:00:00+00:00","end_time":"2023-02-02T08:30:00+00:00"},{"stage":4,"start_time":"2023-02-02T18:00:00+00:00","end_time":"2023-02-02T20:30:00+00:00"},{"stage":4,"start_time":"2023-02-03T04:00:00+00:00","end_time":"2023-02-03T06:30:00+00:00"},{"stage":4,"start_time":"2023-02-03T16:00:00+00:00","end_time":"2023-02-03T18:30:00+00:00"},{"stage":4,"start_time":"2023-02-04T02:00:00+00:00","end_time":"2023-02-04T04:30:00+00:00"},{"stage":4,"start_time":"2023-02-04T14:00:00+00:00","end_time":"2023-02-04T16:30:00+00:00"},{"stage":4,"start_time":"2023-02-05T00:00:00+00:00","end_time":"2023-02-05T02:30:00+00:00"},{"stage":4,"start_time":"2023-02-05T12:00:00+00:00","end_time":"2023-02-05T14:00:00+00:00"}],"last_update":"2023-01-30T19:09:33+00:00","attribution":"Data provided by sepush.co.za","icon":"mdi:calendar","friendly_name":"Dan Pienaar (5)"},"last_changed":"2023-01-30T19:09:38.265967+00:00","last_updated":"2023-01-30T19:58:53.227477+00:00","context":{"id":"01GR245M9B8P8SNZ5RCNTYYYHB","parent_id":null,"user_id":null}},"new_state":{"entity_id":"sensor.load_shedding_area_mangaung_5_danpienaar","state":"off","attributes":{"stage":0,"start_time":0,"end_time":0,"ends_in":0,"starts_in":120,"next_stage":4,"next_start_time":"2023-01-30T22:00:00+00:00","next_end_time":"2023-01-31T00:30:00+00:00","forecast":[{"stage":4,"start_time":"2023-01-30T22:00:00+00:00","end_time":"2023-01-31T00:30:00+00:00"},{"stage":4,"start_time":"2023-01-31T10:00:00+00:00","end_time":"2023-01-31T12:30:00+00:00"},{"stage":4,"start_time":"2023-02-01T08:00:00+00:00","end_time":"2023-02-01T10:30:00+00:00"},{"stage":4,"start_time":"2023-02-01T20:00:00+00:00","end_time":"2023-02-01T22:30:00+00:00"},{"stage":4,"start_time":"2023-02-02T06:00:00+00:00","end_time":"2023-02-02T08:30:00+00:00"},{"stage":4,"start_time":"2023-02-02T18:00:00+00:00","end_time":"2023-02-02T20:30:00+00:00"},{"stage":4,"start_time":"2023-02-03T04:00:00+00:00","end_time":"2023-02-03T06:30:00+00:00"},{"stage":4,"start_time":"2023-02-03T16:00:00+00:00","end_time":"2023-02-03T18:30:00+00:00"},{"stage":4,"start_time":"2023-02-04T02:00:00+00:00","end_time":"2023-02-04T04:30:00+00:00"},{"stage":4,"start_time":"2023-02-04T14:00:00+00:00","end_time":"2023-02-04T16:30:00+00:00"},{"stage":4,"start_time":"2023-02-05T00:00:00+00:00","end_time":"2023-02-05T02:30:00+00:00"},{"stage":4,"start_time":"2023-02-05T12:00:00+00:00","end_time":"2023-02-05T14:00:00+00:00"}],"last_update":"2023-01-30T19:09:33+00:00","attribution":"Data provided by sepush.co.za","icon":"mdi:calendar","friendly_name":"Dan Pienaar (5)"},"last_changed":"2023-01-30T19:09:38.265967+00:00","last_updated":"2023-01-30T19:59:53.229705+00:00","context":{"id":"01GR247EWD6KM4NFT577YDKE5M","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2023-01-30T19:59:53.229705+00:00","context":{"id":"01GR247EWD6KM4NFT577YDKE5M","parent_id":null,"user_id":null}}}

The Start_In is the data I would like to have in HE. It indicates the time before the next black out starts.

This integration involve multiple attributes for one entity and it is quite specific. I doubt it could be dealt with in a generic manner. As a workaround since you only need that little info, maybe it can be expose with some trick in HA. @SmartHomePrimer may have an idea?

@tomw what do you think?

1 Like

Version 1.51: Added support for "unknown" binary sensor and timestamp sensor.

4 Likes

Excellent. Thank you. Much appreciated.

For those who would like to use the timestamp sensor you need to install the appropriate child driver. This sensor is only for information unless someone know a way to use it in automation (I could not find any)

Hi - HADB has been incredibly powerful and useful. Just wanted to note one UI issue that has caught me a couple times. It seems that the screen area that counts as clicking on "Deselect all devices" is very wide. Twice now I got a notification saying "Click again to deselect all", and even though I didn't want that and tried hard not to click anywhere, it happened anywhere and I lost all my selections. And there was no Cancel option, so I had to start from scratch.

I never noticed that you could click on the text to the right of the toggle switches. That is weird, but I hoped having to click twice would make that less likely.

In the time since we released this app, Hubitat added this option for dropdown lists in apps:

Would it be preferable (and less error prone) to have that and for the buttons below to just go away entirely?

1 Like

For me anyway - yes that would be better.

I think what got me was that Maker API has a similar interface for selecting devices, but in that App, if you click outside the list it just closes the list, whereas in HADB clicking outside the list seems to choose the deselect all button.

Thanks for asking!

I just posted v0.1.52 with some UI improvements as suggested by @hokfujow.

Thanks for the suggestion and for your help with testing it, @hokfujow.

3 Likes

Thanks for the amazingly quick response!

1 Like

Health check capability has been added to all custom generic components (Devices which use built-in component don't have that capability). This is not essential nor a fix, so the package version was not updated. You can update them manually or repair in HPM if you realy need this functionality.

Note: This feature won't work if you enabled the "disregard unavailable states" in the parent device.

2 Likes

Hello my Home Assistant IP address changed. If I update the IP address in the configuration and keep the same Long-Lived Access token will all my selected devices stay in place or will it clear all of my selections?