We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
current_humidity
1 parent 91f4b76 commit fa99c6dCopy full SHA for fa99c6d
lib/extension/homeassistant.ts
@@ -752,7 +752,7 @@ export class HomeAssistant extends Extension {
752
discoveryEntries.push(discoveryEntry);
753
}
754
755
- const currentHumidity = allExposes?.filter(isNumericExpose).find((e) => e.name === "humidity" && e.access === ACCESS_STATE);
+ const currentHumidity = allExposes?.filter(isNumericExpose).find((e) => e.name === "humidity" && e.access & ACCESS_STATE);
756
if (currentHumidity) {
757
discoveryEntry.discovery_payload.current_humidity_template = `{{ value_json.${currentHumidity.property} }}`;
758
discoveryEntry.discovery_payload.current_humidity_topic = true;
0 commit comments