fredericvl / py-agua-iot

py-agua-iot provides controlling heating devices connected via the IOT Agua platform of Micronova
Apache License 2.0
32 stars 16 forks source link

Klover #27

Open Rustedbzh opened 2 years ago

Rustedbzh commented 2 years ago

Hello team,

first of all thanks for the amazing librairy, I have two questions : 1- do you know why on the klover : we cannot use the set_power? Traceback (most recent call last): File "C:\Users\Dnice\Desktop\Klover\readtemp.py", line 14, in klover.set_power = 1 AttributeError: can't set attribute

2- I would like to contribute to the function and create the one to start / stop / set power of the additional ventilator for klover, do you have any ideas where I can start? is this a matter of finding the right property in the JSON?

Rustedbzh commented 2 years ago

Found the solution for 2 :

def canalisation(self, value): item = 'canalization_1_set' values = [self.__prepare_value_for_writing(item, value)] try: self.__request_writing(item, values) except Error: raise Error("Error while trying to set temperature")

teoconnect commented 2 years ago

Dear all, just to contribute, in my klover i have add this function to power on - off

    @status.setter
    def status(self, value):
        item = 'status_get'
        values = [self.__prepare_value_for_writing(item, value)]
        try:
            self.__request_writing(item, values)
        except Error:
            raise Error("Error while trying to set status")

device.status = 1 we power on device.status = 0 we power off

a question @Rustedbzh how did you manage to find the possible JSON values?

teoconnect commented 2 years ago

Solved, just add debug=True) at the end of connection = agua_iot. Bye

Volckius commented 2 years ago

Hey @teoconnect @Rustedbzh, where did you input this code to make the integration work for Klover? Using the a fork of this project but upon adding it has no controls or entities. Thanks

teoconnect commented 1 year ago

Hi @Volckius I created a new branch with the climate.py that worked for my klover https://github.com/teoconnect/aguaiot/tree/master/examples/home-assistant/custom_components/aguaiot see ya

McLP11 commented 1 year ago

hi all, I have 2 Klover but no chance to complete the setup of the integration. I put all the value but I have the message "User input malformed: expected str for dictionary value @ data['brand_id']". @teoconnect ... I also changed the climate.py coping the one you linked specific for Klover.

This is what I can find:

Logger: frontend.js.latest.202212130 Source: components/system_log/init.py:256 First occurred: 23:41:22 (2 occurrences) Last logged: 23:43:35

:0:0 Script error.

thanks!

Volckius commented 1 year ago

@teoconnect, I only saw this now. I'm not so savvy with github but would replacing the original climate.py file with yours do to make it run proper or is there a certain way I can utilize your version? I have a feeling its as simple as using that link as a custom repo in hacs but I'm not so sure so

Mattia2399 commented 1 year ago

Ciao squadra,

prima di tutto grazie per la fantastica libreria, ho due domande: 1- sai perché su klover: non possiamo usare set_power? Traceback (ultima chiamata più recente): File "C:\Users\Dnice\Desktop\Klover\readtemp.py", riga 14, in klover.set_power = 1 AttributeError: impossibile impostare l'attributo

2- Vorrei contribuire alla funzione e creare quella di avvio/arresto/impostazione della potenza del ventilatore aggiuntivo per klover, hai qualche idea da dove posso iniziare? si tratta di trovare la proprietà giusta nel JSON?

Hi, did you manage to find the way to set_power?

Rustedbzh commented 1 year ago

from py_agua_iot import agua_iot connection = agua_iot( YOUR CONNECTION STRING)

for klover in connection.devices: klover.turn_on

we power on

print("On")

image