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

Query strings for gestalt #23

Open
scrool opened this issue Nov 24, 2021 · 4 comments
Open

Query strings for gestalt #23

scrool opened this issue Nov 24, 2021 · 4 comments

Comments

@scrool
Copy link
Collaborator

scrool commented Nov 24, 2021

In 2.8.3 (maybe earlier?) app sends requests like: /xled/v1/gestalt?filter=prod_infos&filter2=group and a device responds with

{
"product_name": "Twinkly",
"hardware_version": "100",
"bytes_per_led": 3,
"hw_id": "1cc190",
"flash_size": 64,
"led_type": 14,
"product_code": "TWS250STP",
"fw_family": "F",
"device_name": "Twinkly_1CC190",
"uptime": "1499371",
"mac": "98:f4:ab:1c:c1:90",
"uuid": "E103C5A3-3398-4B77-AE1A-9D8998A5EB62",
"max_supported_led": 510,
"number_of_led": 250,
"led_profile": "RGB",
"frame_rate": 24,
"measured_frame_rate": 25,
"movie_capacity": 5397,
"serial": "000000",
"production_date": 1586909241,
"production_site": 4,
"group": {
"mode": "none",
"compat_mode": 0
},
"copyright": "LEDWORKS 2021",
"code": 1000
}

where uuid, mac, device_name, hw_id were redacted by me. Also serial (which seems to be new) - I kept length.

Copyright seems to be bumped to this year.

@JLOrwell
Copy link
Contributor

If you have a group, the group info will appear in here as well. However it's not super-useful because gen 1 doesn't support it.

@patrickbs96
Copy link

I had a look into this for my own project.

mode seems to have 3 values:

  • none = no group
  • master = main light to control
  • slave = all other lights in group

If you have an active group then size will be added. This is the total size of all the lights combined.
Additionally offset is added when mode=slave

@JLOrwell
Copy link
Contributor

JLOrwell commented Nov 28, 2022 via email

@JLOrwell
Copy link
Contributor

JLOrwell commented Apr 4, 2023

I had a look into this for my own project.

mode seems to have 3 values:

  • none = no group
  • master = main light to control
  • slave = all other lights in group

If you have an active group then size will be added. This is the total size of all the lights combined. Additionally offset is added when mode=slave

I only see this in the v2 api (meaning pro devices). I am unable to reproduce this on wifi consumer devices.

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

No branches or pull requests

3 participants