Custom Component: Hubitat

Do you think I should just make a separate node red vm?

You could but then you would need to manually configure the HA nodes. Not difficult to do but there is convenience of having it installed as an addon.

Backed up alongside HA
Pre-configured to work with HA
Access to NR through the HA frontend/web ui.

I fought with that for days. Had it work once, for like 10 mins then never worked again. Tried everything I could think of. The only reason I was trying to use it was because I wanted a clean and easy way to bring in hub modes from mode manager.

After giving up with that, I ended up doing this.

And then finally I stopped being lazy and re-created everything I had in mode manager with node-red and just yesterday removed mode manager from my HE hub.

Honestly, the HA nodes are better than the HE nodes. The HE nodes will return a device’s status but then you need to run everything through switch nodes. I find it a little messy.

See this time stamp, I just got it working. Steph literally troubleshooted for like 8 hrs. Thank you sir

So I’m attempting to connect to samba and I’m stuck, any help appreciated

A couple of things.
Firstly, based on the last screenshot it looks like you have a space after the “192.168.1”.

Secondly, your allow hosts configuraton appears to be inaccurate. I am assuming that you do not have a complex network setup. Since your HA ip is 192.168.1.213, I’m going to assume your network is setup for 192.168.1.x, with a subnet mask of 255.255.255.0. This would be the default setting on most routers.
That being the case your allowed host portion shoud simply have:

  • 192.168.1.0/24

You can get rid of all the other subnets you have listed (unless of course you do have a more complex network than I am aware of).
Save and restart the Samba addon after making that change and test again.

Thanks, now it gets stuck “attempting to connect”

Does anything show up in the log when you try to connect to the samba share?

What kind of VM are you running your HA install in and does it have a firewall installed on it?

Blockquote
Samba name server HASSIO is now a local master browser for workgroup WORKGROUP on subnet 172.30.32.1


Could not find child 287 – ignoring
Could not find child 289 – ignoring

Not sure, I followed Dropbox - Installing_HASSOS_on_VirtualBox.pdf - Simplify your life

Thank you

Unfortunately I have no clue what these errors are in reference to. Never seen them before.

Where is VirtualBox installed? I assume on a Windows box. Does this Windows install have a firewall (Norton/McAfee or otherwise) installed? If so, disable the firewall temporarily and try again.

My \ were //…doh! I now get username and password but still won’t let me enter. Should I put /share?

Edit /share works but it’s empty

Moving this to PM so we don’t take this thread any further off topic than we already have.

You got the hubitat nodes working in node-red running on home assistant? Do you mind sharing the secret recipe for success??

With some help from aaiyar on the HE boards, I was able to get a very similar setup @omayhemo presence governor app going in node-red.

I tried the person integration and find I get a lot of false-positives which is not acceptable. The Bayesian Sensor approach has been very accurate but I find it slow to trigger a “home”, and no matter how much I tweaked it was always slower than the presence gov app. I would have included a lock code portion on this, but I’ve moved my locks to my Ring alarm which does not expose codes used to HA. But this could be easily added with a direct line to the present switch.

Sharing for any other HE converts looking for presence options.

[{"id":"d83f031a.0dbb","type":"server-state-changed","z":"d614ccff.478af","name":"Mike Life360","server":"94fdcfdf.a00b","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"device_tracker.life360_mike_robichaud","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":90,"y":145,"wires":[["1c723405.ff7c3c"]]},{"id":"3e18bc29.47f144","type":"server-state-changed","z":"d614ccff.478af","name":"Mike Phone HA","server":"94fdcfdf.a00b","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"device_tracker.lya_l0c","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":100,"y":325,"wires":[["1c723405.ff7c3c"]]},{"id":"930ca8ea.c3bcd8","type":"server-state-changed","z":"d614ccff.478af","name":"Mike Owntracks","server":"94fdcfdf.a00b","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"device_tracker.mike_mikeowntracks","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":100,"y":205,"wires":[["1c723405.ff7c3c"]]},{"id":"7321adbc.f8bdf4","type":"server-state-changed","z":"d614ccff.478af","name":"Mike Google","server":"94fdcfdf.a00b","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"device_tracker.google_maps_118153805132893406555","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":90,"y":265,"wires":[["1c723405.ff7c3c"]]},{"id":"97b05cef.a2a3","type":"server-state-changed","z":"d614ccff.478af","name":"Mike Phone ST","server":"94fdcfdf.a00b","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.cartier_street_s_mikeshuawei_presence","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":100,"y":385,"wires":[["1c723405.ff7c3c"]]},{"id":"4b4ac160.6b3a","type":"server-state-changed","z":"d614ccff.478af","name":"Mike Phone HE","server":"94fdcfdf.a00b","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.mike_phone_he_presence","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":100,"y":445,"wires":[["1c723405.ff7c3c"]]},{"id":"2b3cf7f0.60cb68","type":"server-state-changed","z":"d614ccff.478af","name":"Mike WebCoRe","server":"94fdcfdf.a00b","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.mike_webcore_presence_2","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":100,"y":505,"wires":[["1c723405.ff7c3c"]]},{"id":"481b3e51.92566","type":"api-current-state","z":"d614ccff.478af","name":"Already Home?","server":"94fdcfdf.a00b","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.mike_presence_presence","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":460,"y":320,"wires":[[],["c853af78.fbbb5"]]},{"id":"3c2aacbe.de7e54","type":"api-current-state","z":"d614ccff.478af","name":"Already Away?","server":"94fdcfdf.a00b","version":1,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.mike_presence_presence","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":460,"y":440,"wires":[[],["51a485e1.6289fc"]]},{"id":"c853af78.fbbb5","type":"counter","z":"d614ccff.478af","name":"Present Counter","init":"0","step":"1","lower":"0","upper":"9","mode":"increment","outputs":1,"x":680,"y":320,"wires":[["69ad6d3c.3e7c74"]]},{"id":"69ad6d3c.3e7c74","type":"switch","z":"d614ccff.478af","name":"=2","property":"count","propertyType":"msg","rules":[{"t":"eq","v":"2","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":870,"y":320,"wires":[["52352518.7fc71c"]]},{"id":"51a485e1.6289fc","type":"counter","z":"d614ccff.478af","name":"Not Present Counter","init":"0","step":"1","lower":"-3","upper":"0","mode":"decrement","outputs":1,"x":700,"y":440,"wires":[["a8bf1521.c504b8"]]},{"id":"a8bf1521.c504b8","type":"switch","z":"d614ccff.478af","name":"=(-)3","property":"count","propertyType":"msg","rules":[{"t":"eq","v":"-3","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":870,"y":440,"wires":[["4ccae941.346ab8"]]},{"id":"e0221ef.2598ee","type":"change","z":"d614ccff.478af","name":"reset","rules":[{"t":"set","p":"reset","pt":"msg","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1190,"y":380,"wires":[["c853af78.fbbb5","51a485e1.6289fc"]]},{"id":"da36b57.2e76148","type":"server-state-changed","z":"d614ccff.478af","name":"Mike WiFi HE","server":"94fdcfdf.a00b","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.mike_wifi_he_presence","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":90,"y":25,"wires":[["b48ce3f8.4794d"],["2cd89a5.40a0866"]]},{"id":"dd4f3dbd.ff9e6","type":"server-state-changed","z":"d614ccff.478af","name":"Mike WiFi ST","server":"94fdcfdf.a00b","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.mike_wifi_st_presence","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":90,"y":85,"wires":[["b48ce3f8.4794d"],["2cd89a5.40a0866"]]},{"id":"2cd89a5.40a0866","type":"counter","z":"d614ccff.478af","name":"WiFi Off Counter","init":"0","step":"1","lower":"-2","upper":"0","mode":"decrement","outputs":1,"x":350,"y":85,"wires":[["4dbf5d25.2d4e94"]]},{"id":"4dbf5d25.2d4e94","type":"switch","z":"d614ccff.478af","name":"=(-)2","property":"count","propertyType":"msg","rules":[{"t":"eq","v":"-2","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":530,"y":85,"wires":[["3c2aacbe.de7e54","bebf20d1.c58c3"]]},{"id":"b48ce3f8.4794d","type":"api-current-state","z":"d614ccff.478af","name":"Already Home?","server":"94fdcfdf.a00b","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.mike_presence_presence","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":340,"y":25,"wires":[[],["52352518.7fc71c"]]},{"id":"bebf20d1.c58c3","type":"change","z":"d614ccff.478af","name":"Reset WiFi Count","rules":[{"t":"set","p":"reset","pt":"msg","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":85,"wires":[["2cd89a5.40a0866"]]},{"id":"52352518.7fc71c","type":"api-call-service","z":"d614ccff.478af","name":"Present","server":"94fdcfdf.a00b","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.mike_presence","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1020,"y":320,"wires":[["e0221ef.2598ee"]]},{"id":"4ccae941.346ab8","type":"api-call-service","z":"d614ccff.478af","name":"Not Present","server":"94fdcfdf.a00b","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.mike_presence","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1030,"y":440,"wires":[["e0221ef.2598ee"]]},{"id":"1c723405.ff7c3c","type":"switch","z":"d614ccff.478af","name":"Home/Away","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"home","vt":"str"},{"t":"eq","v":"off","vt":"str"},{"t":"eq","v":"away","vt":"str"},{"t":"eq","v":"not_home","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":290,"y":380,"wires":[["481b3e51.92566"],["481b3e51.92566"],["3c2aacbe.de7e54"],["3c2aacbe.de7e54"],["3c2aacbe.de7e54"]]},{"id":"2a04e8e2.d228e8","type":"server-state-changed","z":"d614ccff.478af","name":"Mike Person","server":"94fdcfdf.a00b","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"person.mike","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":90,"y":560,"wires":[["1c723405.ff7c3c"]]},{"id":"3cf4a66b.0ffe5a","type":"server-state-changed","z":"d614ccff.478af","name":"Mike Bayesian","server":"94fdcfdf.a00b","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.mike_presence","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":100,"y":620,"wires":[["1c723405.ff7c3c"]]},{"id":"94fdcfdf.a00b","type":"server","z":"","name":"Home Assistant","addon":true}]

The secret recipe is in the NR addon docs. The POST url for Maker Api needs to include an “endpoint” prefix

It should looks similar to this (with your ip of course)
20200616_173356

I had seen that before and it’s exactly what I have, still only get updates on deployment. Nothing afterwards.

EDIT: While I don’t receive state changes, I can send commands using the HE nodes.

I always hate puling this thread off topic, but are you using the old or new zwave integration for your locks? I’m in almost the exact same boat (somehow got convinced by HE staff that Kwikset z-wave locks don’t work even though they worked fine on ST, so I converted them to Zigbee). I see 0.5.6 adds more lock features to the hubitat integration which might be sufficient, and I know setting up z-wave stuff is a bit complicated right now, but it sure would be nice to switch them back to z-wave and be done with HE.

Yes, I switched back to the zwave module in the kwikset 910. Works great on HA. Pair in secured mode.

1 Like

So after hours my vm crashed so I converted my pc to linux. Install h.a in docker, set up hacs, installed to repo, but now hubitat won’t show under integrations…tia

Did you add the Hubitat repo as jason0x43/hacs-hubitat (not a full URL)?