Node-RED nodes for hubitat

Yes that works!!!

1 Like

Any chance you could share how you have this setup?
I was using telegram for notifications but found it slowed down NR far too much!

I may be missing something but cant you just use the email node on NR? You'd just send a standard email to your phone as an alert...

I created a simple subflow that I use so I don't have to set the email address each time.

simple email subflow

[{"id":"944d697a.e44988","type":"subflow","name":"Email Alert","info":"","category":"","in":[{"x":60,"y":40,"wires":[{"id":"b8eb1e28.ae761"}]}],"out":[],"env":[],"color":"#DDAA99"},{"id":"da72995a.19c368","type":"e-mail","z":"944d697a.e44988","server":"mail.yourmailserver.com","port":"587","secure":false,"tls":true,"name":"","dname":"Alerts","x":450,"y":40,"wires":[]},{"id":"b8eb1e28.ae761","type":"change","z":"944d697a.e44988","name":"Set Email Recipients","rules":[{"t":"set","p":"to","pt":"msg","to":"1234567890@somecellprovider.com,regular@emailaddr.com","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":260,"y":40,"wires":[["da72995a.19c368"]]}]

2 Likes

I do pretty much what @erktrek does.

1 Like

Thanks Gents - Thought it was some elaborate setup..

1 Like

Yup, Node-RED makes it easy!

It is a little more elaborate with Hubitat alone - you have to install @erktrek's Hubitat-DoNS email notifications driver.

@aaiyar @erktrek
So.....i can get an email notification just fine, but it seems australian mobile carriers do not have email2sms gateways, unless you have a business account and prepared to pay thru the roof!...... :angry:

Darn. I think that is because of telecom fee structure.

So, here in the US, senders/recipients both pay for SMS. As I understand it, in many other countries (including Australia), only senders pay for SMS.

That's my understanding from what i have been reading!!
Shame - Well back to a notifications app! ( i can still use email as backup)

2 Likes

What computer are you running your NR server on? Maybe look at upgrading that - more memory or changing to a more powerful computer / virtual machine (I use proxmox for my vm system). That might help with the slowdowns..

Running on an I5-3570, 8GB RAM
Which should be fine, as it can run a windows vm no worries, plus it serves media throughout the house.

Could be just the telegram node, as once i removed it, deploying changes was near instant - with it installed, took anywhere from 7-10 secs to deploy.

Didnt bother me too much, but when i saw the email2sms option, just seemed easier!!! (plus it was something else to learn about NR) :smiley:

Thats crazy.. but good to know. Yeah sorry don't know of a good (cheap/free) service for down under.

1 Like

All good!!!
May take a look at Pushover!
Apart from the slowness, telegram worked great - could even set it so you could reply and action a device

Pushover was sending me old messages constantly, I'd fire up my computer and get a flood of messages from a month ago... so I dropped it

I've since switched to sending Push Notifications through an Alexa Routine node, this has been super rock solid

Screenshot 2020-04-15 10.43.41

While that is for sure a "your milage may vary" statement, at least let me use this post to provide another option :slight_smile:

1 Like

Because we cannot pass arrays to Hubitat, I have spent a while trying to figure out how to send color from the NR dashboard color-picker node to Hubitat. After many hours (which I now have thanks to stay-at-home orders) I came up with a very simple subflow:

code

[{"id":"3007c2b2.7fc35e","type":"subflow","name":"Split hsv","info":"","category":"","in":[{"x":40,"y":100,"wires":[{"id":"5d468780.792e88"}]}],"out":[{"x":960,"y":40,"wires":[{"id":"c0325897.7c74e8","port":0}]},{"x":960,"y":100,"wires":[{"id":"f167a53f.aa4528","port":0}]},{"x":960,"y":160,"wires":[{"id":"77db5b20.191984","port":0}]}],"env":[],"color":"#DDAA99","outputLabels":["hue","saturation","level"]},{"id":"5d468780.792e88","type":"change","z":"3007c2b2.7fc35e","name":"","rules":[{"t":"set","p":"hue","pt":"msg","to":"payload.h","tot":"msg"},{"t":"set","p":"sat","pt":"msg","to":"payload.s","tot":"msg"},{"t":"set","p":"level","pt":"msg","to":"payload.l","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":180,"y":100,"wires":[["75093577.80599c"]]},{"id":"75093577.80599c","type":"range","z":"3007c2b2.7fc35e","minin":"0","maxin":"360","minout":"0","maxout":"100","action":"scale","round":true,"property":"hue","name":"Hue","x":350,"y":100,"wires":[["5bc3577c.a32788"]]},{"id":"5bc3577c.a32788","type":"range","z":"3007c2b2.7fc35e","minin":"0","maxin":"1","minout":"1","maxout":"100","action":"scale","round":true,"property":"sat","name":"Sat","x":490,"y":100,"wires":[["3313443c.7f4f3c"]]},{"id":"3313443c.7f4f3c","type":"range","z":"3007c2b2.7fc35e","minin":"0","maxin":"1","minout":"1","maxout":"100","action":"scale","round":true,"property":"level","name":"Level","x":630,"y":100,"wires":[["c0325897.7c74e8","f167a53f.aa4528","77db5b20.191984"]]},{"id":"c0325897.7c74e8","type":"change","z":"3007c2b2.7fc35e","name":"set hue","rules":[{"t":"set","p":"command","pt":"msg","to":"setHue","tot":"str"},{"t":"set","p":"arguments","pt":"msg","to":"hue","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":800,"y":60,"wires":[[]]},{"id":"f167a53f.aa4528","type":"change","z":"3007c2b2.7fc35e","name":"set sat","rules":[{"t":"set","p":"command","pt":"msg","to":"setSaturation","tot":"str"},{"t":"set","p":"arguments","pt":"msg","to":"sat","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":100,"wires":[[]]},{"id":"77db5b20.191984","type":"change","z":"3007c2b2.7fc35e","name":"set level","rules":[{"t":"set","p":"command","pt":"msg","to":"setLevel","tot":"str"},{"t":"set","p":"arguments","pt":"msg","to":"level","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":800,"y":140,"wires":[[]]}]

Access the subflow as such:
image

I am still working on a way to update the color-picker node with the current value. Any ideas here would be appreciated.

3 Likes

For my RGBW bulbs, I do this by storing switch, ct/rgb mode, hue, sat, level in flow variables. And then recover them using those flow variables to restore the original values.

1 Like

So my earlier NR-Nodes question may have gotten lost in the shuffle..

Does anyone know how to differentiate between a manual unlock vs a code being entered? In my case if someone unlocks the door from the inside then the lastCodeName does not change. Is there another way to detect this?

Thanks!

1 Like

I want the same thing too.

But, AFAIK, there's no way to distinguish between physical and digital lock events right now with Hubitat. Hopefully this will also change with Maker API updates.

1 Like

My use case is like this:

I want to change things in this house when my maid leaves (not an issue right now with COVID-19!). Anyway, when she locks the door from the inside when she arrives then that's a physical event. If she locks it from the outside when she leaves that would be a digital event - so if I could get the digital events, then I could use it to set a sequence in motion ....

1 Like

Ah well that is unfortunate.. hopefully we can get both physical switch and lock data in API in the upcoming release.

1 Like