I have added this switch to HA through zigbee2mqtt:
https://www.zigbee2mqtt.io/devices/ROB_200-008-0.html#robb-rob_200-008-0
And I have a Tuya Wifi downlight which I would like to dim up and down with the switch.
Here is the smart light entity:
It works with this simple automation, but the increments are to big. So basically it goes from 100%-5% straight away, it’s not possible to gradually dim it.
alias: Dim light down
description: ''
trigger:
- platform: device
domain: mqtt
device_id: 7e2fb23f36fdb8a4caccc17b618bcd5d
type: action
subtype: brightness_move_down_1
discovery_id: 0x000d6f000fd85946 action_brightness_move_down_1
condition: []
action:
- device_id: 2081141cc4b688c8f26e5168955eedc4
domain: light
entity_id: light.smart_lamp
type: brightness_decrease
mode: single
This is from the switch zigbee2mqtt document page, but since I’m a noob I do not know what to do with it?
simulated_brightness:
delta: 20 # delta per interval, default = 20
interval: 200 # interval in milliseconds, default = 200