Comments (7)
Merci pour le release!
from hilo.
Tu as très bien décrit le même problème que j'ai observé, et je suis d'accord avec tes observations. Je t'encourage à le régler!
from hilo.
Belle observation, je crois également que tu as raison après avoir lu la doc.
Je crois qu'on devrait mettre la logique dans python-hilo
comme hvac_mode
et tout simplement exposer hvac_mode
dans l’intégration home assistant.
Si j'ai bien compris:
- On remplacerait
hvac_mode
ici parhvac_action
et on remplaceheat
parheating
etoff
paridle
, a moins qu'il soitoffline
.
https://github.com/dvd-dev/python-hilo/blob/main/pyhilo/device/climate.py#L31-L34
-
hvac_mode
retournerait tout simplement toujoursheat
, à moins que vous vouliez vraiment unoff
à 5C? Je ne vois pas de stateoffline
:
https://github.com/dvd-dev/python-hilo/blob/main/pyhilo/device/climate.py#L31-L34 -
On ajoute un
hvac_action
ici un peu comme lehvac_mode
:
hilo/custom_components/hilo/climate.py
Lines 85 to 87 in 6e96be3
Malheureusement, Hilo ne semble pas supporté les calls de type set_hvac_mode
(ex pour mettre a off), donc ici, ça reste pareille:
hilo/custom_components/hilo/climate.py
Lines 81 to 83 in 6e96be3
Et tant qu'à travailler là dedans, il faudrait presque migrer vers les Enum
car les constantes sont dépréciées.
https://github.com/home-assistant/core/blob/dev/homeassistant/components/climate/const.py#L8-L31
J'ai toujours pas environnement de dev et j'manque de temps pour deepdive tout ça, mais si vous soumettez des PR, je vais les reviews et merged.
from hilo.
Je vais essayer de faire une PR en fin de semaine, mais je ne garantis rien.
from hilo.
Belle observation, je crois également que tu as raison après avoir lu la doc.
Je crois qu'on devrait mettre la logique dans
python-hilo
commehvac_mode
et tout simplement exposerhvac_mode
dans l’intégration home assistant.Si j'ai bien compris:
- On remplacerait
hvac_mode
ici parhvac_action
et on remplaceheat
parheating
etoff
paridle
, a moins qu'il soitoffline
.https://github.com/dvd-dev/python-hilo/blob/main/pyhilo/device/climate.py#L31-L34
hvac_mode
retournerait tout simplement toujoursheat
, à moins que vous vouliez vraiment unoff
à 5C? Je ne vois pas de stateoffline
:
https://github.com/dvd-dev/python-hilo/blob/main/pyhilo/device/climate.py#L31-L34- On ajoute un
hvac_action
ici un peu comme lehvac_mode
:
hilo/custom_components/hilo/climate.py
Lines 85 to 87 in 6e96be3
Malheureusement, Hilo ne semble pas supporté les calls de type
set_hvac_mode
(ex pour mettre a off), donc ici, ça reste pareille:hilo/custom_components/hilo/climate.py
Lines 81 to 83 in 6e96be3
Et tant qu'à travailler là dedans, il faudrait presque migrer vers les
Enum
car les constantes sont dépréciées. https://github.com/home-assistant/core/blob/dev/homeassistant/components/climate/const.py#L8-L31J'ai toujours pas environnement de dev et j'manque de temps pour deepdive tout ça, mais si vous soumettez des PR, je vais les reviews et merged.
Je comprends pas mal où tu t'en vas, le bout qui m'échappe c'est où pyhilo entre en ligne de compte? Il ne fait pas parti du custom component, est-il installé via core? Où se trouvent ces fichiers si je veux tenter l'expérience de mon bord?
from hilo.
J'ai fait les 2 pull requests... testé avec HA 2023.2.3.
from hilo.
Merci bien pour les commits et pour avoir tester. J'vais faire une release plus tard ce weekend!
from hilo.
Related Issues (20)
- Eletricity Grid : bug lors de la creation des utility_meter hilo HOT 1
- Température cible : Ne semble pas toujours ce mettre à jour au niveau des thermostats HOT 5
- Erreur pour Energy sensors: Entity id already exists HOT 10
- Energy sensors s'ajoutent au dashboard Energy à chaque restart de HA HOT 22
- L'intégration HIlo ne fonctionne pas. HOT 11
- defi_hilo_date_heure_next not working HOT 2
- Intégration Hilo n'importe pas tous mes appareils. HOT 3
- async_setup_platforms
- Nouveau warning sensor measurement class HOT 2
- Je viens d'avoir le même problème. Je me suis aperçu que ma config s'était vidée.
- Bonjour, besoin d'aide pour HA avec hilo. L'integration ne démarre pas. Ça tourne en boucle HOT 2
- Zigbee + custom component HOT 3
- Warning services.yaml HOT 1
- Restart excessivement long HOT 3
- Tous les sensors ont arrêté de fonctionner. HOT 17
- Setup failed for custom integration hilo: Requirements for hilo not found: ['python-hilo>=2023.4.1'] HOT 63
- This entity is no longer being provided by the hilo integration HOT 2
- Tous les thermostats sont soudainement à 0C HOT 21
- Mes prises intelligentes affichent toutes "off" HOT 8
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 hilo.