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

How to ... (control thermostats) #53

Open
Geranni opened this issue Dec 10, 2021 · 2 comments
Open

How to ... (control thermostats) #53

Geranni opened this issue Dec 10, 2021 · 2 comments

Comments

@Geranni
Copy link

Geranni commented Dec 10, 2021

Hello hthiery,

I really like the idea of the project and would like to use it for control of my FRITZ DECT 301 thermostats.
As I didn't find any documentation of how to put your code into practice, I cloned the repository and searched line for line through the code for hints on how it works and how to apply it. After 4 hours of work I was finally able to switch my DECT 200 on and off using CLI.
Another hour later I still don't have any idea how I can set temperatures on my thermostats...
Can you please give a hint, how to use your code to achieve this? Also it would be great if you could add some documentation to make the application of your great project a little bit more user friendly.

Thank you very much!

@hthiery
Copy link
Owner

hthiery commented Dec 22, 2021

Thank you for your feedback. Unfortunatly there is no support for setting the temp with the CLI.

For setting the temperature of a thermostate take a look at:
https://github.com/hthiery/python-fritzhome/blob/master/pyfritzhome/devicetypes/fritzhomedevicethermostat.py#L93
and
https://github.com/hthiery/python-fritzhome/blob/master/pyfritzhome/devicetypes/fritzhomedevicethermostat.py#L117

I hope that helps a little bit. For your idea about adding documentation please feel free to make a PR ;-)

@Hendrick42
Copy link

A little late late, but i also needed some time to get it running:

My steps:

  • cd ~
  • clone repo into "python-fritzhome"
  • create python venv and activate it, cd ~ againg
  • make the python-fritzhome module available:) pip3 install -e python-fritzhome
  • go to cli file: cd python-fritzhome/pyfritzhome
  • list all devices and get the ain for your thermostat
  • python cli.py -f fritz.box -u smarthome -p smarthome23 list
  • python cli.py -f fritz.box -u smarthome -p smarthome thermostat set_target_temperature "xxxxx yyyyyy" 17

hope it still helps :)

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

No branches or pull requests

3 participants