-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Status node to fetch Serialized Service #210
Comments
Thanks for posting a feature request! I am not sure if we can add it.
|
If you use openHAB (or any other unified platform - and just using Node-RED as an "extension"), you should store the states in openHAB I think (it does that automatically). |
Yes! I have many function nodes that hold brightness, hue, saturation, and other values in a context variable. I believe there are examples in the wiki page, later today I’ll take a look at the original comment here and provide some guidance. @lsteelandt - can you share your current flow? Especially what device are you connecting to and which other nodes do you use? |
@crxporter I will post it in a short time. |
@radokristof thanks for you reply. |
For a preview, my current example of a well functioning rgb light is here. This example is controlled over mqtt (input and output) and has been working great for several months. I’ll be happy to help you adapt it to whatever system your lights are using! |
@lsteelandt you can use retain in MQTT to always have the latest available state. |
@lsteelandt I'm trying to clean up some older issues, if you're all set then let us know to close this one. Otherwise please let us know what progress you've made and if you'd like suggestions how to move forward. |
Hi, sorry for the long delay without news. I decided to manage the problem by using the state memorized by openhab item as @radokristof suggest. So this enhancement demand can be closed. |
I think I would like to have it anyway. Some new node with access to all services read only states. |
This is for persistence within the NRCHKB plugin, correct? |
I think also for pulling whole Service status at once whenever you want to. |
It would be useful for HSV bulbs, brightness bulbs, and other items where individual data is updated and currently must be stored in nodered context stores. |
- no longer send empty object to first output for events - attached current value to events (msg.payload.key=value)
Note: this is now called "Status" node, and works great in version 1.4 and higher. Closing as completed in 1.4 - please re open if any issue persists on this topic. |
### Fixed - Fixed customCharacteristics incorrect refresh in UI - Implemented static accessoryUUIDs for subflows Enables the use of nrchkb nodes in subflows with backwards compatibility #393 - thanks @kevinkub - Fixed Custom MDNS Configuration not showing in UI for Standalone Accessory - Stop components from clearing other component's node.status call - Add missing advertiser selector in UI for Standalone Accessory - Not naming the host node causes a crash #424 - Do not output oldValue for onSet as it does not have access to old value ### Added - Notice during app launch: Node.js 10 will be deprecated in Node-RED 2.0.0 - Event output in Service 2 which is available in NRCHKB_EXPERIMENTAL #392 #437 - Status node to fetch Serialized Service #210 - Support for environment variables in characteristic properties #217 ### Changed - Updated hap-nodejs to 0.9.5 (added new iOS 15 Services and Characteristics) - Updated dependencies to latest versions - Changed `BatteryService` to `Battery` in demo examples as `BatteryService` is deprecated #381 - thanks @crxporter - Readme rework - thanks @crxporter - More descriptive error when incorrect Characteristic has been used in msg.payload - Add msg.hap.allChars to service nodes #438
Related problem
For lightbulb, it is impossible to know the Homekit stored state when you switch on a light.
On Home app, when you click on a Lightbulb button, you see it highlighted with a % representing the last brightness of lightbulb. This value is not outputted to let order the node driving the associated light (for exemple an Openhab node).
For exemple when you switch On a light (
{On:true}
) received, it is difficult to send the right command to have a prefect synchronization on the displayed item's state in Home App and the reality. That's is because{On:true}
doesn't give which values of H,S,B should be applied.Whish
Can the output msg object, hold a property with the right state store in HomeKit ?
example for Lightbulb : {"On":true, "Brigthness":bbb, "Saturation":sss, "Hue":hhh}
Or in other case an msg.lastState={"Brigthness":bbb, "Saturation":sss, "Hue":hhh}
The text was updated successfully, but these errors were encountered: