Skip to content

Quick Question About Color Settings in ESPHome AwoX BLE Mesh Hub #85

Answered by fsaris
rewisch asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

you don't need to send all the info.

if you want to set the color temp use:

{ "color_temp": 248}

or to change the brightness

{ "brightness": 79}

or change color

{ "color": { "r": 255, "g": 74, "b": 61 }}

You can combine color and brigtness or color_temp and brightness. You don't need to pass the color_mode. That is something used by HomeAssistant internallySee 

void AwoxMeshMqtt::process_incomming_command(MeshDestination *mesh_destination, JsonObject root) {
for how the send parameters are handled by the code.

So to switch between light modes you need to send the "previous" color_temp

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rewisch
Comment options

Answer selected by rewisch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants