Skip to content
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

Unable to get the status of a group #154

Closed
readeral opened this issue Apr 4, 2020 · 5 comments
Closed

Unable to get the status of a group #154

readeral opened this issue Apr 4, 2020 · 5 comments
Labels

Comments

@readeral
Copy link

readeral commented Apr 4, 2020

Describe the bug
I was previously able to check a group status by passing the group ID via the topic into the hue group node, but this no longer works. Any hints on how I can get this functionality back? In particular I was using the groups node to test if lights were on when my flow received an input from a sensor.

Flow to Reproduce

[{"id":"621d2809.e8b788","type":"hue-group","z":"b25ef4d4.0a8048","name":"Check hue","bridge":"9ed1a05f.3466b","groupid":"","colornamer":true,"skipevents":false,"x":370,"y":320,"wires":[["aa35acf5.41fa7"]]},{"id":"aa35acf5.41fa7","type":"switch","z":"b25ef4d4.0a8048","name":"","property":"payload.anyOn","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":570,"y":320,"wires":[["fc72ecfd.303a7"],["fc72ecfd.303a7"]]},{"id":"28d157c2.ca9ca8","type":"inject","z":"b25ef4d4.0a8048","name":"","topic":"1","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":190,"y":320,"wires":[["621d2809.e8b788"]]},{"id":"fc72ecfd.303a7","type":"debug","z":"b25ef4d4.0a8048","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":770,"y":320,"wires":[]},{"id":"9ed1a05f.3466b","type":"hue-bridge","z":"","name":"Philips hue","bridge":"10.0.1.10","key":"qL6jtASLkGU1Ww3tOWLOzx8VBfgScwsZeYFmzaxB","interval":"3000"}]

Expected behavior
To receive the status on the payload of the group node, and to be able to route the payload on the value of anyOn

Please complete the following information:

  • NodeRED version: latest
  • NodeJS version: latest LTS
  • Device running NodeRED: Raspberry Pi

Additional context
This functionality was previously available, but seems to have been removed in a recent update.

I've tried to gather this information another way by utilising the Bridge node, and the JSON {"fetch": "groups"} however the Bridge node doesn't respect the existing payload, and overwrites my included topic, meaning I can't pass through the desired group I'm trying to poll for, to then filter the returned results from the bridge by.

@readeral readeral added the bug label Apr 4, 2020
@Spampunk
Copy link

This bothers me, too. In former versions I was able to retrieve the status of a group without the duty to make changes to the group. Please get this fixed soon.

Thanks,
Timo

Foddy pushed a commit that referenced this issue Apr 26, 2020
* The colorloop effect in Hue group & Hue Light nodes can now be activated and deactivated manually ([#158](#158)
* New status property for Hue Light, Hue Group & Hue Motion nodes to request the current status of the devices ([#154](#154) & [#156](#156))
* Dependency updates
@Foddy
Copy link
Owner

Foddy commented Apr 26, 2020

Due to major adjustments in the previous versions, it is now necessary (and possible from v2.6.4+) to request the current status of lamps, groups and motion sensors via the new "status" property.

Sorry about the circumstances!

@readeral
Copy link
Author

Unfortunately this hasn't been fixed. Please reopen the issue.

@Foddy
Copy link
Owner

Foddy commented Apr 27, 2020

Did you tried it like this?

[{"id":"3f971186.23081e","type":"tab","label":"Example","disabled":false,"info":""},{"id":"75515524.f36b14","type":"inject","z":"3f971186.23081e","name":"","topic":"","payload":"{\"status\":true}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":60,"wires":[["412e92fc.f0734c"]]},{"id":"f5f6885.1d0a8f8","type":"debug","z":"3f971186.23081e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":540,"y":60,"wires":[]},{"id":"412e92fc.f0734c","type":"hue-light","z":"3f971186.23081e","name":"","lightid":"","colornamer":true,"skipevents":false,"x":340,"y":60,"wires":[["f5f6885.1d0a8f8"]]}]

@Radiotechniman
Copy link

Did you tried it like this?

[{"id":"3f971186.23081e","type":"tab","label":"Example","disabled":false,"info":""},{"id":"75515524.f36b14","type":"inject","z":"3f971186.23081e","name":"","topic":"","payload":"{\"status\":true}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":60,"wires":[["412e92fc.f0734c"]]},{"id":"f5f6885.1d0a8f8","type":"debug","z":"3f971186.23081e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":540,"y":60,"wires":[]},{"id":"412e92fc.f0734c","type":"hue-light","z":"3f971186.23081e","name":"","lightid":"","colornamer":true,"skipevents":false,"x":340,"y":60,"wires":[["f5f6885.1d0a8f8"]]}]

Yes, it does not work unfortunatley

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants