Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elko Super Thermostat - Configurable reporting of local temperature based on sensor choice #8313

Merged
merged 7 commits into from
Nov 20, 2024

Conversation

torandreroland
Copy link
Contributor

No description provided.

if (data.localTemp !== undefined) {
const value = precisionRound(msg.data['localTemp'], 2) / 100;
const valuesFloorSensor = ['floor', 'supervisor_floor'];
const sensorType = globalStore.getValue(msg.endpoint, 'sensor');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to get the value from the meta.state, the globalStore is always reset after every z2m restart.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the valuable input. I agree (now that I understand the meta.state capability) that this is much better and I've made the change.

@Koenkk Koenkk merged commit 9c0d004 into Koenkk:master Nov 20, 2024
2 checks passed
@Koenkk
Copy link
Owner

Koenkk commented Nov 20, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants