[RELEASE] Home Assistant Device Bridge (HADB)

I believe that’s my bad.

He correct line should be

if (unit_of_measurement in ["Bq/m³","pCi/L"]) device_class = "radon"

Rather than

if (unit_of_measurement in ["Bq/m³","piC/L"]) device_class = "radon"

I misread the units in your logs. They are pCi/L, not piC/L

I fixed my PR accordingly

1 Like

OK, I updated my local HADB parent driver accordingly
Now I guess it works but introduced new line radon : 0,32

image

The new "radon" value appeared and it is correct and updated accordingly.
But now previous "value" and "valueStr" parameters are staled.
Overal, this is OK but it will be nice to clear that useless now values.

Delete the current child and let it be recreated automatically.

3 Likes

Version 1.54: Add light effects support and include @mboisson improved radon sensor

3 Likes

I would like to expose power state (on/off) for a few specialized HA devices (Denon receiver, Apple TV, LG TV) that don't have good HE drivers. Since these HA devices are too complex, I was think of using some type of virtual toggle switch in HA that would then be exposed to HE as a on/off switch. How would I do this? I Google HA virtual switch, and the results looked grim.

The easy way is to use this integration that allows you to share devices from Hubitat to HA via the Maker API. Then you create the virtual switch on Hubitat and expose it to HA.
(I installed it via HACS)

(HADB and the above integration each do one direction of device sharing -- just make sure you don't re-share devices back to the originating platform via the other integration. Doing so would be ... bad)

2 Likes

I was working recently on a limited media player support. I put it asside because there was too many discrepancies between HA and HE on top of countless disparities in the way different brands are implemented.

But if it is only to switch on or off, it might work for you.

Let me know if you want to try it?

I totally get 'media player' attributes could be a very thorny patch given all the various device types and features out there. For my personal needs, I just need triggers when my receiver, LG TV or AppleTV changes power state.

I did use the Github HA-HE integration that @jlv mentioned and got it working in HA. I already had a virtual 'state' switch in HE from Homekit usage, so that's now exposed to HA and simple automations trigger the on/off state of the virtual state switch.

If your project would capture power state for a Denon receiver, LG TV, and AppleTV, then I could take it for a spin and see how it works.

Some oddities: some device do not report back their state through the brige. Command are succesfull but no state change might be reported.

Here are the links:

Driver: https://raw.githubusercontent.com/ymerj/HE-HA-control/ymerj-patch-MP/HA%20parent.groovy

Component: https://raw.githubusercontent.com/ymerj/HE-HA-control/ymerj-patch-MP/genericComponentMediaPlayer.groovy

App: https://raw.githubusercontent.com/ymerj/HE-HA-control/ymerj-patch-MP/haDeviceBridgeConfiguration.groovy

I have a question about an entity in HA that's appearing as a motion sensor in HE. I have the Ring integration in HA, and the 'button' on the doorbell is: binary_sensor.front_door_ding

However, this 'binary sensor' is coming over as motion, which is confusing in HA because Ring also has a separate motion sensor as well. Is there another type of HE device that would be more appropriate/less confusing? I tried to use a 'virtual switch' that has an auto-off feature, but it wasn't compatible.

As per instructions:

The built in Hubitat driver, while too limited overall, does do power fine. Also, there is a Denon Homebridge plugin (homebridge-denon-tv) that works too

1 Like

Ya tried the HE Denon plugin, and it was trash. Would work for a few days, then die. Asked in the forums for that driver, and due to telnet issues and Denon, they acknowledged it does have issues. I currently have Denon connected through to HB, but then I need an Apple Home automation to flip a HE virtual switch. Apple Home automations can be quite unreliable, so my goal was to use HA to set HE state information and remove Apple Home/HB from the equation.

1 Like

Can you do something like this: Template Switch - Home Assistant

I've used this one in the past. It's got more features. Not sure if it has similar performance issues to the built in driver. The guy who wrote it is no longer a Hubitat user, so consider it unmaintained.

Hi there,

Just a quick questions regarding HADB. Has anyone set up Hubitat and HA in a bi-directional method? I.e using HADB to populate Home Assistant devices to Hubitat, and using the Home Assistant integration into Hubitat to feed Hubitat devices into Home Assistant.

The reason why I'm asking is because HA supports bluetooth devices, which I would like to utilize in Hubitat (easier to work with Rules for automations), but expose Hubitat to Home Assistant for dashboards.

1 Like

I do this, for very specific reasons. The majority of devices I have on HA work with HA device bridge and do not require an HE to HA integration. However, some do not work completely, and so I share Hubitat virtual switches to HA, and then use HA automation to trigger the Hubitat virtual switch when HA device triggers.

[NOTE]
You can also do this with HA Toggle Helpers and HADB. Sometimes that's easier, depending on what you're trying to accomplish.

test toggle example

It works almost the same with the automation you create on HA, but Helpers are not devices, so in the Action on HA, you have to select Helpers > Input boolean

Then you have to select Input boolean: Turn off or Input boolean: Turn on, and because it's not a device, you instead select the HA entity.

1 Like

I do as I mentioned above (but I only really do so to get some HE devices to appear in an HA dashboard):

Thank you! I figured this is the way - just wanted to make sure there's no other "hiccups" involved

This is how I'm doing it also with Apple TV and homepod state changes flipping switches to initiate routines.

1 Like