Custom Component: Hubitat

@jason0x43 I got it working. I realized that, in Hubitat, after I’ve added new devices, I need to ensure the devices are selected in the Maker API to expose them to Home Assistant.

I just got Home Assistant setup and I think I am going to migrate all my devices from Hubitat to Home Assistant. I currently am using this integration. If I remove the integration in Home Assistant, does it also remove all the entities brought over from Hubitat or will I need to go back and remove them all first before pairing my devices to Home Assistant?

Want to see if I can get some input on this. Apologizing ahead of time as my knowledge and lingo on HA is somewhat limited but I am getting there.
New to HA and learning alot so far in the day Ive been using it. I have Hubitat setup with about 20 devices and want to integrate it to HA. So far all Ive done is install HACS and added jason0x43’s Hubitat integration. I assume I did it correct as I do see Hubitat in the integrations. What I do not see is any of my devices. The Maker API is setup in HE, so I dont think that is the problem. One thing I did not see during the Hubitat integreation are the setup steps for adding my HE hub IP, app ID, or API token. The Hubitat integration is pretty much just a tiled window. Tried to fiddle around with the custom repository but i wasnt to sure where to go with that.
Any help is appreciated.

Thanks in advance
BM

I believe so.

Could you post a screenshot of the UI you’re seeing?

Sure. See below.

Once you install the custom Hubitat integration via HACS, you then need to go to Home Assistant’s list of Integrations and Add it there.

1 Like

Holy sh!t. I swear i tried this and it wasnt there. Thanks so much. I got it working and see all my HE devices on HA.

1 Like

My Docker container was using 2021.9.7 :slight_smile:

Upgraded HA and the integration, and everything works fine now. Thanks for the help! And sorry for the late response (didn’t get a notification of your reply).

Is there a way to add the name “hubitat” to the prefix of all the entities by hubitat?

So… I’m back… I wanted to move everything to Unraid, which is in my basement…
No USB sticks talking to Z-Wave/Zigbee reaching my basement…
So a tiny little Hubitat in my basement cellar stairway might be the answer…
Call me crazy.

2 Likes

I wanted some advice on rebuilding my Hubitat environment and subsequently syncing up to the Hubitat Home Assistant integration.

I’m planning to have:

1 Hubitat c7 for my upstairs devices
1 Hubitat c7 for my downstairs devices
1 Hubitat c7 to run consolidate downstairs and upstairs devices through hub mesh and utilize apps including Maker API to send the selected devices to Home Assistant

Is the above the best approach to get devices into Home Assistant? Alternatively, would there be issues with sending the Upstairs and Downstairs devices from their respective hubs to Home Assistant (as opposed to the consolidating hub)?

1 Like

Why would you need upstairs/downstairs hubs? Zigbee/Zwave travel just fine between floors and even come out with a stronger mesh because of it. I cover 5,400ft2 on 2 floors plus 2 outbuildings just fine with a single mesh. Before investing in multiple C7 hubs, I’d buy a good zigbee stick and zwave stick , save a ton of money and just go 100% HA.

I use HA for Lovelace. I don’t feel comfortable going all in with HA as there are updates that will blindside me and completely mess up my setup. These are not even breaking changes. It happened to me just last week:

As for zigbee/zwave range I have a 4,600 ft home and it works 95% of the time on Hubitat. However, a few devices furthest from the hub drop off. I have 80 zigbee/zwave devices and I plan on adding several more so this is in anticipation of the growth of my network.

Lastly, I like the organization of the apps and their automation capabilities in Hubitat. It’s simple yet flexible and easy to set up.

At the moment there’s still a bug open regarding multiple hubs and unique IDs. I’ve only heard of a couple cases of the issue coming up, and I haven’t looked into it yet, but an integrating Hubitat may be helpful.

1 Like

I run a C5 and C7 with separate HA integrations no problem.

If memory serves, if you run everything through the consolidated hub all the device names get appended with the hub name. Kind of annoying when trying to write yaml and remember device names.

1 Like

I have now been running this with 4 Hubitat HE hubs, talking to 189 Zigbee bulbs (Sylvania Ledvance 5/6 rt). The bulbs are evenly distributed among the hubs, and everything has been smooth now for over 2 months. This is the best solution I have come across for my zigbee bulbs. And believe me I tried everything! I really like this integration to HA, works seamlessly. Thank you for making this integration. My lights work great now.

2 Likes

So I spent a good amount of time getting all the devices into an integrating hub so I think this is the route I’m going to go. I’d like to make this as seamless as possible although I know that I’ll have to redo several automations that included devices from the original hub. I had a couple questions before I dive into the change over.

  1. What is the best way to go about changing over the hubs? Should I just click Configure on the previous integration and change the IP address to the new hub? Or should I create a new configuration for the new hub and delete the old one?

  2. What happens to the devices on the old hub? Do they permanently reside in HA as disabled? If so, is there any way to clean that up?

Hi Everyone,

I have installed the Hubitat integration and have been able to see the Hubitat devices into HA and have been able to control them without an issue i.e. turn on / turn off etc. so far so good…
The problem l am having is that if l turn on a device from Hubitat the device state does not get reflected into HA e.g. it still shows the device as being switched off.

In the Hubitat Maker API, l have enabled ‘Post Location Events’ and ‘Allow control of HSM’

Can someone please advise what l am doing wrong?

Thanks in advance

Hi Jason, I have a problem with an Aqara push button. Works fine in Habitat, and shows up in the HA integration. But the device is not recognised as a push button in HA. When I try to create an automation, I see “No triggers” for the device. Any idea what the problem is?

These are the capabilities and attributes for the device according to Maker API:

"capabilities": [
    "RelativeHumidityMeasurement",
    "MotionSensor",
    "Refresh",
    "Battery",
    "PressureMeasurement",
    "IlluminanceMeasurement",
    "ContactSensor",
    "ReleasableButton",
    "PushableButton",
    "PresenceSensor",
    "Configuration",
    "VoltageMeasurement",
    "AccelerationSensor",
    "HoldableButton",
    "WaterSensor",
    "TemperatureMeasurement",
    "Sensor",
    "DoubleTapableButton"
  ],
  "attributes": {
    "shaken": null,
    "dataType": "NUMBER",
    "values": null,
    "pushed": "1",
    "presence": "present",
    "battery": "100",
    "temperature": null,
    "taps": null,
    "held": "1",
    "motion": null,
    "pressure": null,
    "voltage": "3.05",
    "frequency": null,
    "acceleration": null,
    "released": "1",
    "doubleTapped": "1",
    "tilt": null,
    "humidity": null,
    "numberOfButtons": null,
    "illuminance": null,
    "contact": null,
    "water": null
  }

Here are events that are emitted when pressing the button:

app:12022-04-23 10:48:37.644 debugdevice event: {"name":"pushed","value":"1","displayName":"Knop1 aqara","deviceId":"116","descriptionText":null,"unit":null,"type":null,"data":null}
app:12022-04-23 10:48:09.186 debugdevice event: {"name":"doubleTapped","value":"1","displayName":"Knop1 aqara","deviceId":"116","descriptionText":null,"unit":null,"type":null,"data":null}
app:12022-04-23 10:48:04.257 debugdevice event: {"name":"released","value":"1","displayName":"Knop1 aqara","deviceId":"116","descriptionText":null,"unit":null,"type":null,"data":null}
app:12022-04-23 10:48:02.729 debugdevice event: {"name":"held","value":"1","displayName":"Knop1 aqara","deviceId":"116","descriptionText":null,"unit":null,"type":null,"data":null}
app:12022-04-23 10:47:57.249 debugdevice event: {"name":"pushed","value":"1","displayName":"Knop1 aqara","deviceId":"116","descriptionText":null,"unit":null,"type":null,"data":null}

Event for a scene switch for which I see device triggers in HA:
app:12022-04-23 10:57:18.549 debugdevice event: {"name":"pushed","value":"1","displayName":"tuya scene switch (Aubess)","deviceId":"77","descriptionText":"button 1 was pushed","unit":null,"type":null,"data":"{\"buttonNumber\":1}"}