Coder Social home page Coder Social logo

Idée d'Amélioration about rtetempo HOT 5 CLOSED

Paroxxx avatar Paroxxx commented on June 19, 2024 1
Idée d'Amélioration

from rtetempo.

Comments (5)

hekmon avatar hekmon commented on June 19, 2024 1

Plus d'informations sur cette question ici:
#29 (comment)

from rtetempo.

lboue avatar lboue commented on June 19, 2024

Les données sont codées dans le fichier ici: const.py puis exposées ici: coordinator.py

        elif data['contract_type'] == CONTRACT_TYPE_TEMPO:
            response = await self.hass.async_add_executor_job(get_remote_file, TEMPO_COLOR_API_URL)
            tempo_color_data = response.json()

            if tempo_color_data['codeJour'] in [1, 2, 3]:
                self.data['tempo_couleur'] = TEMPO_PRICES_DETAILS[tempo_color_data['codeJour']]['couleur']
                self.data['tempo_variable_hp_ttc'] = TEMPO_PRICES_DETAILS[tempo_color_data['codeJour']]['hp']
                self.data['tempo_variable_hc_ttc'] = TEMPO_PRICES_DETAILS[tempo_color_data['codeJour']]['hc']

from rtetempo.

Paroxxx avatar Paroxxx commented on June 19, 2024

Merci.

Je ne connais pas grand chose en programmation, encore moins en python.
Ce que je déduis de ta réponse c'est que les prix sont codés en "dur" et qu'il n'est pas possible de récupérer le sensor de l'autre intégration dans Homessistant.
C'est bien cela ?

Merci
Xav

from rtetempo.

lboue avatar lboue commented on June 19, 2024

Merci.

Je ne connais pas grand chose en programmation, encore moins en python. Ce que je déduis de ta réponse c'est que les prix sont codés en "dur" et qu'il n'est pas possible de récupérer le sensor de l'autre intégration dans Homessistant. C'est bien cela ?

Merci Xav

Cela n'a aucun intérêt, non.

from rtetempo.

Paroxxx avatar Paroxxx commented on June 19, 2024

L'intérêt est la mise à jour automatique des prix en cas de changement sans avoir à les modifier dans le fichier const.py

from rtetempo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.