NRCHKB / node-red-contrib-homekit-bridged

Node-RED Contribution - HomeKit Bridged : Node-RED nodes to simulate Apple HomeKit devices.
https://nrchkb.github.io
MIT License
416 stars 52 forks source link

[Feature]: Request to add `msg.hap.allChars` to service nodes #438

Closed crxporter closed 3 years ago

crxporter commented 3 years ago

Your Current NRCHKB Plugin Version

1.4

Operating System

All

What is your idea?

As discussed on discord, the idea is to add msg.hap.allChars to service nodes. The idea is to output all of the HAP-NodeJS values for a service along with all messages.

This will allow users to pull (for example) hue and saturation for a bulb when the brightness is changed. Each service node should output all saved characteristics ... example for color bulb:

msg.hap.allChars = {
    "Name":"Example",
    "On": true,
    "Brightness": 42,
    "Hue": 301,
    "Saturation": 20
}

Any more details?

If this is specific to some hardware or specific software version, please explain here.

Additional comments?

Additional comments here, if any.

Any code or functions to add?

No response

Shaquu commented 3 years ago

image

crxporter commented 3 years ago

Completed in 1.4.0 dev.19