Comments (19)
Merci @remycrochon d'avoir trouver le souci !
Donc, si je comprend bien (trouver via https://github.com/home-assistant/core/pull/48573/files ) :
l'ancienne version :
self.next_noon = self._check_event(utc_point_in_time, "solar_noon", None)
nouvelle version :
self.next_noon = self._check_event(utc_point_in_time, "noon", None)
il suffit donc de remplacer la ligne 150 du fichier init.py de
get_astral_event_date(self._hass, "solar_noon", self._now.date())
par
get_astral_event_date(self._hass, "noon", self._now.date())
- Je vient de tester et ça ne génère plus d'erreur !
je fait un PR dans la foulé
mais après le merge :
si HA >=2021-05 , besoin de la nouvelle version de pool_pump
si HA < 2021-05 , besoin de l'ancienne version de pool_pump
pas terrible pour les users mais bon si ils ont des soucis ils penseront sûrement a mettre a jour pool_pump ou a venir par ici ...
from ha-pool_pump.
from ha-pool_pump.
Bonjour
Je suis dans la même configuration et je rencontre le même problème
Slts
from ha-pool_pump.
next_noon
of sun.sun variable seem to be a good candidact to replace the solar_non
, isn't it ?
from ha-pool_pump.
@roumano did you manage to make it work?
from ha-pool_pump.
from ha-pool_pump.
La cause vient de la mise à niveau de Astral vers 2.2 dans HA 2021.5. home-assistant/core#48573
C'est dans l'appel de la fonction "get_astral_event_date" ligne 150 de init .py qu'il y a un problème de mais je ne sais pas le résoudre, je ne suis pas développeur.
from ha-pool_pump.
Merci @roumano pour ton analyse.
J'ai fait la modification de mon coté mais j'ai toujours des erreurs!
2021-05-07 23:53:36 ERROR (MainThread) [homeassistant.components.automation.check_pool_pump_on_event] Piscine Check Pool Pump On event: Error executing script. Unexpected error for call_service at pos 1: 'Location' object has no attribute 'solar_noon'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 363, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 563, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1481, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1516, in _execute_service
await handler.job.target(service_call)
File "/config/custom_components/pool_pump/init.py", line 99, in check
manager = PoolPumpManager(hass, now)
File "/config/custom_components/pool_pump/init.py", line 150, in init
get_astral_event_date(self._hass, "noon", self._now.date())
File "/usr/src/homeassistant/homeassistant/helpers/sun.py", line 119, in get_astral_event_date
return getattr(location, event)(date, **kwargs) # type: ignore
AttributeError: 'Location' object has no attribute 'solar_noon'
2021-05-07 23:53:36 ERROR (MainThread) [homeassistant.components.automation.check_pool_pump_on_event] While executing automation automation.check_pool_pump_on_event
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/automation/init.py", line 504, in async_trigger
await self.action_script.async_run(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1209, in async_run
await asyncio.shield(run.async_run())
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 345, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 363, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 563, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1481, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1516, in _execute_service
await handler.job.target(service_call)
File "/config/custom_components/pool_pump/init.py", line 99, in check
manager = PoolPumpManager(hass, now)
File "/config/custom_components/pool_pump/init.py", line 150, in init
get_astral_event_date(self._hass, "noon", self._now.date())
File "/usr/src/homeassistant/homeassistant/helpers/sun.py", line 119, in get_astral_event_date
return getattr(location, event)(date, **kwargs) # type: ignore
AttributeError: 'Location' object has no attribute 'solar_noon'
from ha-pool_pump.
from ha-pool_pump.
@roumano , Merci, après avoir supprimé le cache python et redémarré HA, cela a fonctionné, Pool_pump est de nouveau opérationnel.
J'ai appris quelque chose avec la suppression du cache c'est top.
Bonne journée
from ha-pool_pump.
Bonjour, je débute sur HA et après avoir installé ha-pool_pump (la version corrigée) je bute sur le problème suivant:
Error while executing automation automation.check_pool_pump_on_event: Unable to find service pool_pump.check
Je ne vois pas pourquoi HA ne trouve pas le service pool_pump.check . Des suggestions? Merci.
from ha-pool_pump.
@xav-aaa , Tu peut regarder là pour t'aider : https://domo.rem81.com/home-assistant-gestion-piscine-filtration/
Sinon regarde les variables et ... dans "Outils de développement" de HA.
Mais ton souci n'a rien a voir avec cette issue donc stp évite de pollué les issue si c'est pas lié.
from ha-pool_pump.
Bonjour,
J'ai atterri ici car j'ai aussi l'erreur solar_noon.
J'ai fait la modification mais mon fichier init.py s'appelle init.py.
Est ce normal ?
Au redémarrage toujours les erreurs, mais je vois pas le cache python ??
from ha-pool_pump.
@g4seb, init.py == init.py , non ?
from ha-pool_pump.
@g4seb, init.py == init.py , non ?
Oups pardon init.py . Je me suis trompé.
Avant la modification j'avais ça comme erreur :
Logger: homeassistant.components.automation.piscine_check_pool_pump
Source: helpers/sun.py:119
Integration: Automatisation (documentation, issues)
First occurred: 11:40:00 (138 occurrences)
Last logged: 17:25:00
Piscine Check pool Pump: Error executing script. Unexpected error for call_service at pos 1: 'Location' object has no attribute 'solar_noon'
While executing automation automation.piscine_check_pool_pump
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 366, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 566, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1481, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1516, in _execute_service
await handler.job.target(service_call)
File "/config/custom_components/pool_pump/init.py", line 99, in check
manager = PoolPumpManager(hass, now)
File "/config/custom_components/pool_pump/init.py", line 150, in init
get_astral_event_date(self._hass, "solar_noon", self._now.date())
File "/usr/src/homeassistant/homeassistant/helpers/sun.py", line 119, in get_astral_event_date
return getattr(location, event)(date, **kwargs) # type: ignore
AttributeError: 'Location' object has no attribute 'solar_noon'
Après la modification, plus d'erreur sur Boon, mais encore une là :
Logger: homeassistant.components.automation.piscine_check_pool_pump
Source: custom_components/pool_pump/init.py:168
Integration: Automatisation (documentation, issues)
First occurred: 18:00:00 (70 occurrences)
Last logged: 20:50:00
Piscine Check pool Pump: Error executing script. Unexpected error for call_service at pos 1: 'NoneType' object has no attribute 'state'
While executing automation automation.piscine_check_pool_pump
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 366, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 566, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1481, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1516, in _execute_service
await handler.job.target(service_call)
File "/config/custom_components/pool_pump/init.py", line 99, in check
manager = PoolPumpManager(hass, now)
File "/config/custom_components/pool_pump/init.py", line 154, in init
self._total_duration_in_hours = self._build_parameters()
File "/config/custom_components/pool_pump/init.py", line 168, in _build_parameters
self._hass.states.get(
AttributeError: 'NoneType' object has no attribute 'state'
Je comprends pas....
from ha-pool_pump.
Bonjour,
bon j'ai réglé mes problèmes ça fonctionne !!
Par contre re belotte, je vien s de passer en 2021.6.3 et de nouveau des erreurs. Il me trouve pas le service pool_pump.check.
Avez vous aussi cette erreur ??
Logger: homeassistant.components.automation.piscine_check_pool_pump
Source: helpers/script.py:1341
Integration: Automatisation (documentation, issues)
First occurred: 15:25:00 (1 occurrences)
Last logged: 15:25:00Piscine Check pool Pump: Error executing script. Service not found for call_service at pos 1: Unable to find service pool_pump.check
from ha-pool_pump.
Moi non mais je sais d'où vient le souci.... Le service est désactivé car il y a pas la version dans le fichier manifest , cf l'autre bug que j'ai ouvert et j'ai aussi proposer un correctif (sans réponse)... Le mar. 8 juin 2021 à 15:41, g4seb @.***> a écrit :
…
Bonjour, bon j'ai réglé mes problèmes ça fonctionne !! Par contre re belotte, je vien s de passer en 2021.6.3 et de nouveau des erreurs. Il me trouve pas le service pool_pump.check. Avez vous aussi cette erreur ?? Logger: homeassistant.components.automation.piscine_check_pool_pump Source: helpers/script.py:1341 Integration: Automatisation (documentation, issues) First occurred: 15:25:00 (1 occurrences) Last logged: 15:25:00 Piscine Check pool Pump: Error executing script. Service not found for call_service at pos 1: Unable to find service pool_pump.check — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#17 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQ3GTUT2QYIPBWBRZX7AVTTRYMYZANCNFSM44FWBP3A .
Je viens de répondre sur ton autre post
from ha-pool_pump.
please please can you write in English here in GitHub? I have the same problem but cannot read anything here :(
from ha-pool_pump.
please please can you write in English here in GitHub? I have the same problem but cannot read anything here :(
Hi, Please see the related merge request for the fix ! , it's only one line fix
I don't known why it's not yet merged but i'm not the owner or this repository so i can't handle this ...
from ha-pool_pump.
Related Issues (20)
- service not found HOT 10
- auto-auto HOT 2
- Erreur temperature HOT 17
- Clarify documentation due to different version HOT 1
- Filtration time HOT 6
- Parts needed to monitor all this. HOT 3
- pool_pump.next_run_schedule and pool_pump.total_daily_filtering_duration don't keep the customization HOT 1
- No 'version' key in the manifest file for custom integration 'pool_pump' HOT 2
- Unexpected error for call_service at pos 1: 'NoneType' object has no attribute 'state'
- Pump start/stop every 5min HOT 4
- Component error: pool_pump - Integration 'pool_pump' not found. HOT 2
- question for the futur HOT 2
- new mode HOT 6
- Call for ideas and needs HOT 5
- Winter Mode : integrate a risk of frost mode HOT 2
- abacus equation
- Bug for Filtration time, impossible to use more than ~17h HOT 2
- pool_pump.next_run_schedule and pool_pump.total_daily_filtering_duration unavailable since last HA update HOT 1
- Abacus algorithm - taking account of pool size, power of the pump and overwintering
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 ha-pool_pump.