Slacky-DIY TS0042-z-SlD
| Model | TS0042-z-SlD |
| Vendor | Slacky-DIY |
| Description | Tuya wireless switch with 2 buttons with custom firmware |
| Exposes | battery, switch_actions, switch_type, scene_id, group_id, action |
| Picture | ![]() |
OTA updates
This device supports OTA updates, for more information see OTA updates.
Options
How to use device type specific configuration
simulated_brightness: Simulate a brightness value. If this device provides a brightness_move_up or brightness_move_down action it is possible to specify the update interval and delta. The action_brightness_delta indicates the delta for each interval. Example:
simulated_brightness:
delta: 20 # delta per interval, default = 20
interval: 200 # interval in milliseconds, default = 200
Exposes
Battery (numeric)
Remaining battery in %. Value can be found in the published state on the battery property. To read (/get) the value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/get with payload {"battery": ""}. It's not possible to write (/set) this value. The minimal value is 0 and the maximum value is 100. The unit of this value is %.
Switch actions (enum, 1 endpoint)
Actions switch. Value can be found in the published state on the switch_actions_1 property. To read (/get) the value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/get with payload {"switch_actions_1": ""}. To write (/set) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set with payload {"switch_actions_1": NEW_VALUE}. The possible values are: off, on, toggle.
Switch actions (enum, 2 endpoint)
Actions switch. Value can be found in the published state on the switch_actions_2 property. To read (/get) the value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/get with payload {"switch_actions_2": ""}. To write (/set) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set with payload {"switch_actions_2": NEW_VALUE}. The possible values are: off, on, toggle.
Switch type (enum, 1 endpoint)
Switch type. Value can be found in the published state on the switch_type_1 property. To read (/get) the value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/get with payload {"switch_type_1": ""}. To write (/set) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set with payload {"switch_type_1": NEW_VALUE}. The possible values are: toggle, momentary, multifunction, brightness_level_up, brightness_level_down, scene.
Switch type (enum, 2 endpoint)
Switch type. Value can be found in the published state on the switch_type_2 property. To read (/get) the value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/get with payload {"switch_type_2": ""}. To write (/set) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set with payload {"switch_type_2": NEW_VALUE}. The possible values are: toggle, momentary, multifunction, brightness_level_up, brightness_level_down, scene.
Scene id (numeric, 1 endpoint)
Scene ID. Value can be found in the published state on the scene_id_1 property. To read (/get) the value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/get with payload {"scene_id_1": ""}. To write (/set) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set with payload {"scene_id_1": NEW_VALUE}. The minimal value is 0 and the maximum value is 255.
Scene id (numeric, 2 endpoint)
Scene ID. Value can be found in the published state on the scene_id_2 property. To read (/get) the value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/get with payload {"scene_id_2": ""}. To write (/set) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set with payload {"scene_id_2": NEW_VALUE}. The minimal value is 0 and the maximum value is 255.
Group id (numeric, 1 endpoint)
Group ID for scenes. Value can be found in the published state on the group_id_1 property. To read (/get) the value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/get with payload {"group_id_1": ""}. To write (/set) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set with payload {"group_id_1": NEW_VALUE}. The minimal value is 0 and the maximum value is 65527.
Group id (numeric, 2 endpoint)
Group ID for scenes. Value can be found in the published state on the group_id_2 property. To read (/get) the value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/get with payload {"group_id_2": ""}. To write (/set) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set with payload {"group_id_2": NEW_VALUE}. The minimal value is 0 and the maximum value is 65527.
Action (enum)
Triggered action (e.g. a button click). Value can be found in the published state on the action property. It's not possible to read (/get) or write (/set) this value. The possible values are: on_1, on_2, off_1, off_2, toggle_1, toggle_2, hold_1, hold_2, single_1, single_2, double_1, double_2, triple_1, triple_2, quadruple_1, quadruple_2, quintuple_1, quintuple_2, release_1, release_2, brightness_move_to_level_1, brightness_move_to_level_2, brightness_move_up_1, brightness_move_up_2, brightness_move_down_1, brightness_move_down_2, brightness_step_up_1, brightness_step_up_2, brightness_step_down_1, brightness_step_down_2, brightness_stop_1, brightness_stop_2, recall_1, recall_2, store_1, store_2, add_1, add_2, remove_1, remove_2, remove_all_1, remove_all_2.

