#[SOLVED] How to send zigbee command from automation?
1 messages ยท Page 1 of 1 (latest)
is the zigbee device recognised as a light entity in HA? you can just set the light entity
yes it is. but the goal is to have the brightness to change continuously while the button is pressed
the light device has built in functionality for smooth dimmer with adjustable speed, etc
but HA does not expose those in any way
this is the light in question: https://www.zigbee2mqtt.io/devices/LED2201G8.html#ikea-led2201g8
Integrate your IKEA LED2201G8 via Zigbee2MQTT with whatever smart home infrastructure you are using without the vendor's bridge or gateway.
you can add transition times to brightness changes
i do not want to "set" a brightness, i want to enter "brightness move" mode that changes the brightness indefinitely untill i tell it to stop
you could maybe make something like.
trigger on button down
repeat until button up
- change brightness down 10
- sleep 500ms
that would be choppy
Back to the original question, what do you mean you "send payloads"?
i've considered that, but that's not the question.
not if you put transition on the change too
the question is: how to do the same, but in HA
i hope you understand i'm trying to use built-in functionality of a device and not mimic it with some dirty hack
the dimmer is just a stand-in for ANY zigbee functionality that's not in HA by default.
it's just that i actually need the dimmer at this time ๐
so in NodeRed when using zigbee2mqtt i can send so called 'payloads' that are basically some json string
example is {"brightness_move_onoff": 60}
this basically sends the zigbee command that triggers the brightenss move function with speed 60 units.
most of available payloads are documented on https://www.zigbee2mqtt.io/devices/LED2201G8.html#ikea-led2201g8
Integrate your IKEA LED2201G8 via Zigbee2MQTT with whatever smart home infrastructure you are using without the vendor's bridge or gateway.
there are some payloads i'm aware of that are not yet documented but do work. I would also want to be able to send them in case i need to do factory reset of the device in the future for whatever reason.
some standard automation things like state: ON/OFF, or brightness: LVL are available as something that i can directly refer to in HA automations
so there's no problem SETing things.
but {"brightness_move_onoff": 60} is not of SET type of a command
i mean, technically it is. i do publish it to SET topic
but it does not have any representation in HA automations.
@soft lark does that make sense?
oh, now we're cooking!
that's the part I was missing!
I think that's the answer to my initial question. Thank you @soft lark for your help ๐
I should be able to cobble together the automation I wanted now ๐