diff --git a/lib/Gateway.js b/lib/Gateway.js index bd472b383db..01ba23cc2a8 100755 --- a/lib/Gateway.js +++ b/lib/Gateway.js @@ -1737,12 +1737,11 @@ Gateway.prototype.discoverValue = function (node, vId) { ].includes(specificDeviceClass) ) { cfg = copy(hassCfg.cover_position) - cfg.discovery_payload.state_topic = getTopic cfg.discovery_payload.command_topic = setTopic cfg.discovery_payload.position_topic = getTopic cfg.discovery_payload.set_position_topic = cfg.discovery_payload.command_topic - cfg.discovery_payload.value_template = + cfg.discovery_payload.position_template = '{{ value_json.value | round(0) }}' cfg.discovery_payload.position_open = 99 cfg.discovery_payload.position_closed = 0