Comments (5)
Plus d'informations sur cette question ici:
#29 (comment)
from rtetempo.
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.
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.
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.
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)
- Jour tempo vs. jour calendaire HOT 2
- Home Assistant supervisor HOT 2
- Ha core 2023.8.4 HOT 3
- unable to add Ids HOT 3
- Fonctionnement des ENUM HOT 3
- Mise à jour sensors HS depuis le 14/10/2023 HOT 24
- impossible d'entrer les infos ID Client et l'ID Secret HOT 3
- After Update 2023.11.0 HOT 13
- [Feature] Paramétrer l'heure du changement HP/HC HOT 2
- Colours in calendar HOT 3
- Possibilité d'utiliser une API ouverte pour simplifier l'installation ? HOT 2
- EDF Zen Flex jour sobriété HOT 1
- Sensors de prix pour le dashboard energy HOT 1
- Accès à sensor.edf_tempo_prix_actuel pour calculer le prix de la consommation HOT 12
- No Colourupdate HOT 3
- [BUG] Pas d'affichage des prix HOT 2
- [BUG] Nombre de jour restant rouge incorrecte HOT 2
- [Request] Personnalisation horaire de changement de tarif HOT 1
- Nouvelle fonctionnalité "Hiver Tempo"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtetempo.