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');
}
}
Device
_TZ3000_e3vhyirxProblem
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:
The error repeats every time the device sends a status update (every few minutes).
Expected
pulseshould be added to theswitch_typeoptions 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
pulsein the options list, or a Z2M external converter: