Repository navigation
Replies: 3 comments
|
Hi, |
0 replies
|
I will work with both the light switch and HA. The thing is, power will always flow to the lights, and now the control of the smart lights is via an event being sent to HA to turn off/on the lights when you press the light switch. About the light switch, it is always on as I configured it that way. |
0 replies
|
I do not have the in Part1.3 mentioned:
also here: this is not stated, what am i missing? Model: _TZ3000_hhiodade |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Im new to github, I dunno how to use it so I'll leave this here, hope it helps someone.
This is an AI Generated guide, I did my best to put all the information I followed to get this working.
Configuring Moes ZS-EUB_1gang (Custom Firmware) for Detached Button Actions in Home Assistant (Zigbee2MQTT)
This guide provides a step-by-step process to configure the Moes ZS-EUB_1gang switch (Model: Moes TS0011, Manufacturer: _TZ3000_hhiodade), specifically with a custom firmware (like romasku's tuya-zigbee-switch), to act as a detached button controller in Home Assistant via Zigbee2MQTT. This allows you to use the physical button presses to trigger automations without controlling a local relay.
Tested Versions:
Step-by-Step Guide
Part 1: Pairing and Initial Zigbee2MQTT Configuration
1. Ensure Zigbee2MQTT is Running with Debug Logging:
configuration.yamlfor Zigbee2MQTT, it's recommended to use Studio Code Server or access the file system directly rather than the Home Assistant Add-on section for a more reliable configuration.Add or modify the
log_leveltodebug:2. Pair Your Moes ZS-EUB_1gang Switch:
permit_join: true).3. Verify Device Settings in Zigbee2MQTT UI:
Switch modeis set tomomentary.Switch relay modeis set todetached.releasedtopressedand back. This confirms the device is sending the button press information to Z2M.Part 2: Activating State action for MQTT Publication
This is a critical step for the
actionevent to be published via MQTT, which Home Assistant uses.1. Navigate to Device Specific Settings:
2. Enable "State action":
FalsetoTrue.3. Restart Zigbee2MQTT:
It's crucial to restart your Zigbee2MQTT add-on/service for this setting to take full effect.
4. Verify MQTT Publication:
mqtt_messageand click "START LISTENING".mqtt_messageevents appearing. Specifically, look for messages on topiczigbee2mqtt/YourGenericSwitchName/actionwithpayload on_relay.You will also see a message ontopic 'zigbee2mqtt/YourGenericSwitchName'with a payload containing"action":"on_relay".Note: The
actionpublished by this specific custom firmware ison_relay(and potentiallyoff_relayor others, depending on how it's released or configured), even if the "Exposes" tab shows "press" and "long_press".Part 3: Home Assistant Automation Configuration
Since the device reports its button press as a state change to a sensor in Home Assistant, we'll use a
statetrigger instead of aneventtrigger for the automation.1. Access Home Assistant Automations:
2. Configure the Automation in YAML Mode:
Explanation of the trigger:
platform: state: Triggers when an entity's state changes.entity_id: sensor.yourgenericswitchname_switch_press_action_switch: Home Assistant creates a sensor for theswitch_press_action_switch attribute. This sensor's state changes topresswhen the button is physically pushed.to: 'press': Ensures the automation only fires when the sensor's state becomespress(and not when it changes back toreleased).3. Save and Test:
All reactions