[RELEASE] Home Assistant Device Bridge (HADB)

Ideally everything! However I dont think the boost time period is available in HA.

For my current use case, I just want to be able to change the timer status between off,on and auto. Usually the water is heated at 15:30, but if we need it sooner we boost it manually. I can detect that now (I think), I then want to change the timer to off (preventing it heating again at 15:30) then turn it back to auto at midnight for the next day.

@ritchierich give a nice example of how to use that feature:

For what I can gather in your case the command parameters would be:

Entity --> water_heater.house
Service --> hive.boost_hot_water
Data --> on_off:on

1 Like

As for the time period, the data contains colons (hh:mm:ss) which is not allowed in the current implementation of the HADB custom service call command.

A fix could be use but it would require you to replace a line of code in the parent driver.

...or you can wait for the next version.

1 Like

Thanks. I don’t use rule machine currently, my automations use webCore. Is it possible to make the service call from webcore?

Someone who know about webcore will have to chip in on that.

webCoRE can make HTTP POST or GET calls if that is what you are asking…

I'm not using webcore, but my guess is it can do the same things as RM. Actuating a device command is pretty basic automation stuff. This one require 3 parameters... not a big deal I think.

It is really calling a custom command of the parent HADB driver and pass 3 parameters along with it.

If the device declares it as a command it should be visible, and therefore usable by webCoRE.

1 Like

This is how the device looks in HE. I can add the device into WC, but don’t see any way to send a command to it. You can read the attributes e.g value str, this is the value I would like to change.

Wrong device. You will find the command on the parent device, not the component one.

1 Like

Thanks, I think we’re getting there now.
Using the parent (and adding the device to WC) I can make the service call. I’m just struggling with the parameters. I’m making the call, but it doesn’t do anything and I cant see any info in the logs.
On the attached screen shot, for device home, under controls, I want to change the “water heater” between echo/off/on. If you click it in HA, it gives the option to set these values

You have to find what exactly is the name of the entity. What I gave you was just a guess based on the picture you posted and the HA Hive documentation.

Go to your device properties in HA to find out.

The call might look like that:

Capture d’écran du 2024-08-19 08-58-21

The only parameter I can be sure of is the entity name, as I’ve found that in HA (water_heater.house) I’m not sure of the values for service & data. Is there a way to find these? I admit, I’m a novice with HA!

Did you try what is shown in the previous post? (change water_heater.YourDeviceName for water_heater.house)

I created an automation in HA. This works when run in HA

Then used this in WC and it doesn’t do anything?

Try this:

Capture d’écran du 2024-08-19 12-28-55

1 Like

Thats sorted it!
Many thanks for your help, I can now resurrect all my hive automations.

A tip for anyone else landing on this either for RM or WC…
Set up a simple automation in HA for what you want to do. You dont need a trigger as you can run it manually. When it works edit it in the YAML view, you can then see the value for the parameters yiu need to supply in the service call.

2 Likes

Anyone notice this error or is it just me? I don't have a GDO on HADB but I get this error and HPM ends.