Skip to content

[Feature Request] SC500ZB (LoraTap, _TZ3000_e3vhyirx): add 'pulse' to switch_type options #12643

Description

@tsjjBCNBna

Device

  • Model: LoraTap SC500ZB
  • Manufacturer string: _TZ3000_e3vhyirx
  • Z2M version: 2.12.1

Problem

The device reports switch_type: pulse (a valid physical switch mode), but the zigbee-herdsman-converters definition for SC500ZB only lists ['momentary', 'toggle'] as options in the HA MQTT discovery config.

This causes a recurring error in Home Assistant:

ERROR [homeassistant.components.mqtt.select] Invalid option for
select.[name]_switch_type: 'pulse' (valid options: ['momentary', 'toggle'])

The error repeats every time the device sends a status update (every few minutes).

Expected

pulse should be added to the switch_type options list for SC500ZB, so the HA MQTT discovery config includes it and the device operates without errors.

Workaround

Manually publishing a corrected MQTT discovery message with pulse in the options list, or a Z2M external converter:

const base = zhc.findByModel('SC500ZB');
const exposes = typeof base.exposes === 'function' ? base.exposes() : base.exposes;
for (const e of exposes) {
  if (e.name === 'switch_type' && !e.values.includes('pulse')) {
    e.values.push('pulse');
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions