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

feat: add temperature command targetting climate entities #63

Merged
merged 3 commits into from
Oct 27, 2024

Conversation

mrene
Copy link
Contributor

@mrene mrene commented Oct 27, 2024

Adds a command to set the temperature of any climate entities. It uses the temperature units that are configured in home assistant (the api just takes a float)

❯ hctl temperature heat_pump <TAB>
heat_pump  nest  refrigerator_freezer  refrigerator_fridge
❯ hctl temperature heat_pump 21.5
 SUCCESS  heat_pump temperature set to 21.5

cmd/temperature.go Outdated Show resolved Hide resolved
cmd/temperature.go Outdated Show resolved Hide resolved
@xx4h
Copy link
Owner

xx4h commented Oct 27, 2024

Thanks for contributing ❤️

Copy link
Owner

@xx4h xx4h left a comment

Choose a reason for hiding this comment

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

Regarding the JSON_PRETTIER

pkg/hctltest/testdata/states.json Outdated Show resolved Hide resolved
pkg/hctltest/testdata/states.json Outdated Show resolved Hide resolved
cmd/temperature.go Outdated Show resolved Hide resolved
- `goimports`-ed
@xx4h xx4h merged commit fc9c13f into xx4h:main Oct 27, 2024
2 of 3 checks passed
@xx4h
Copy link
Owner

xx4h commented Oct 27, 2024

Thanks again!

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