Incorrect trigger
This commit is contained in:
parent
5190341be6
commit
2610c1eaa4
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ const getTopicName = (
|
||||||
/** @type { import('./types/Mqtt').TopicType } */ topicType,
|
/** @type { import('./types/Mqtt').TopicType } */ topicType,
|
||||||
) => `${getBaseTopic(uniqueId, mqttDeviceType)}/${topicType}`;
|
) => `${getBaseTopic(uniqueId, mqttDeviceType)}/${topicType}`;
|
||||||
|
|
||||||
const getButtonEventTopic = (/** @type {string} */ deviceId) => `${getTopicName(getTriggerUniqueId(deviceId), MQTT_TYPES.DEVICE_AUTOMATION, TOPIC_TYPES.STATE)}`;
|
const getButtonEventTopic = (/** @type {string} */ deviceId) => `${getTopicName(deviceId, MQTT_TYPES.DEVICE_AUTOMATION, TOPIC_TYPES.STATE)}`;
|
||||||
const getTriggerUniqueId = (/** @type { string } */ uniqueId) => `${uniqueId}_trigger`;
|
const getTriggerUniqueId = (/** @type { string } */ uniqueId) => `${uniqueId}_trigger`;
|
||||||
const getSceneEventTopic = (/** @type {string} */ sceneId) => `${getTopicName(getTriggerUniqueId(sceneId), MQTT_TYPES.DEVICE_AUTOMATION, TOPIC_TYPES.STATE)}`;
|
const getSceneEventTopic = (/** @type {string} */ sceneId) => `${getTopicName(getTriggerUniqueId(sceneId), MQTT_TYPES.DEVICE_AUTOMATION, TOPIC_TYPES.STATE)}`;
|
||||||
const getSubscribePath = () => `${discoveryPrefix}/+/${nodeId}/#`;
|
const getSubscribePath = () => `${discoveryPrefix}/+/${nodeId}/#`;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue