From 16b8c1fc82bfb5ce99c7e0bf2bd1e78fa4161fa7 Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Tue, 6 Feb 2024 01:44:02 -0700 Subject: [PATCH] fix(discovery): revert "improve MQTT discovery for scene CC" (#3583) --- api/lib/Gateway.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/api/lib/Gateway.ts b/api/lib/Gateway.ts index 0d9cc32953..453c0006e0 100644 --- a/api/lib/Gateway.ts +++ b/api/lib/Gateway.ts @@ -1319,9 +1319,7 @@ export default class Gateway { } else return break case CommandClasses['Central Scene']: - if (!valueId.readable || valueId.writeable) { - return - } + case CommandClasses['Scene Activation']: cfg = utils.copy(hassCfg.central_scene) // Combile unique Object id, by using all possible scenarios @@ -1330,9 +1328,6 @@ export default class Gateway { valueId.property, valueId.propertyKey, ) - if (valueId.type === 'number') { - cfg.discovery_payload.state_class = 'measurement' - } break case CommandClasses['Binary Sensor']: { // https://github.com/zwave-js/node-zwave-js/blob/master/packages/zwave-js/src/lib/commandclass/BinarySensorCC.ts#L41