-
Notifications
You must be signed in to change notification settings - Fork 4
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
Idée d'Amélioration #35
Comments
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'] |
Merci. Je ne connais pas grand chose en programmation, encore moins en python. Merci |
Cela n'a aucun intérêt, non. |
L'intérêt est la mise à jour automatique des prix en cas de changement sans avoir à les modifier dans le fichier const.py |
Plus d'informations sur cette question ici: |
Bonjour,
Merci pour cette intégration qui fonctionne très bien.
Est-il possible pour les tarifs de se servir de ce que remonte cette intégration :
https://github.com/delphiki/hass-tarif-edf
Merci
Xav
The text was updated successfully, but these errors were encountered: