Virtual Notification Device

Would it be possible to have a virtual Notification device? The use case is sending notifications to node-red for further processing and routing using the Maker-API app.

Thanks!

You could use the variable attribute in the virtual omni sensor to pass text to NR. I've done it the other way round (from NR to HE) but no reason for it not to work.

The driver I wrote for someone else in this other thread should do what you want if all you want is an event out of the deal:

(Ignore the other questions about HTTP. :slight_smile: )

Thank you!

Writing Hubitat drivers is new to me and I've got to say there's a bit of a learning curve.

I tried using both the Virtual Omni Sensor as suggested by @rocketwiz and the driver written by @bertabcd1234 and both throw an error when an event is received and they're used with the Maker API. On the Hubitat side I see:

[error](http://hubitat.local/installedapp/configure/20)java.lang.NullPointerException: Cannot invoke method getSupportedCommands() on null object on line 410 (sendDeviceCommand)

and on the Node-Red (Maker API client) I see this:

[deviceId:383] http://hubitat.local:80/apps/api/20/devices/383/off: {"error":true,"type":"java.lang.Exception","message":"An unexpected error occurred."}

It's interesting that the same error occurs with both. I'm wondering if there's some missing support for Notification devices.

Odd - I set up the omni sensor with some text as the variable attribute and it was passed just fine through to node red. Are you using a device node? How are you configuring it?

Also there doesn't seem to be a way to set the omni sensor variable within HE. This particular post (and code) might do the trick however Virtual Omni Sensor variable doesn't seem to work as trigger (possible bug?)

EDIT: Just to check maker API have you set up any devices at all to test?