Replace force_update with expire_after for home assistant buttons. https://github.com/Koenkk/zigbee2mqtt/issues/959

This commit is contained in:
Koen Kanters
2019-02-15 23:31:44 +01:00
parent 00900958ef
commit 577bb0d12c
+2 -2
View File
@@ -119,7 +119,7 @@ const configurations = {
discovery_payload: {
icon: 'mdi:toggle-switch',
value_template: '{{ value_json.click }}',
force_update: true,
expire_after: 1,
},
},
'sensor_power': {
@@ -137,7 +137,7 @@ const configurations = {
discovery_payload: {
icon: 'mdi:gesture-double-tap',
value_template: '{{ value_json.action }}',
force_update: true,
expire_after: 1,
},
},
'sensor_brightness': {