#[SOLVED] How to send zigbee command from automation?

1 messages ยท Page 1 of 1 (latest)

safe pike
#

Coming from NodeRed, I was able to send payloads like {"brightness_move_onoff": 60} or {"brightness_move": 0}. What is the proper way to achieve the same but from normal HA automations?

half relic
safe pike
#

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

half relic
#

you can add transition times to brightness changes

safe pike
#

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

half relic
#

you could maybe make something like.

trigger on button down
repeat until button up

  • change brightness down 10
  • sleep 500ms
safe pike
#

that would be choppy

soft lark
#

Back to the original question, what do you mean you "send payloads"?

safe pike
#

i've considered that, but that's not the question.

half relic
#

not if you put transition on the change too

safe pike
#

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 ๐Ÿ™‚

safe pike
#

example is {"brightness_move_onoff": 60}

#

this basically sends the zigbee command that triggers the brightenss move function with speed 60 units.

#

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?

soft lark
#

So is that just a MQTT message?

#

HA has mqtt.publish

safe pike
#

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 ๐Ÿ˜