Skip to content

Reversing the music_data data point in light sources #420

@NyaomiDEV

Description

@NyaomiDEV

The music_data DP (27) is an interesting one found in some Tuya light sources. It is interesting because it does not get set directly into the light source's memory, plus, the change in colour is instant.
This could allow for more fine tuned control of the bulbs by third party software, like RGB effect engines.

I began researching the matter just today, and for now I know that music_data is a string type data point. It contains an HEX string like 000fc03e8032000000000 (when I send this to the bulb, it turns bright purple).

The next goal is understanding how this HEX string is made. It doesn't seem to be just a padded HEXHSB or HSB value.

I need help on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions