Closed foXaCe closed 4 years ago
Justement il faut remplacer input_boolean.fake_pump_switch
par l'entité qui va piloter la mise sous tension de ta pompe. Très probablement un switch.xxxxxxxxxx
ok. il y a un truc que je dois pas bien faire. mon entity s'appelle switch.pompe_piscine
configuration.yaml
input_select: pool_pump_mode: name: Pool Pump mode options:
input_boolean: swimming_season: name: Swimming Season icon: mdi:swim
input_number: run_pool_pump_hours_swimming_season: name: Run Pool Pump in Swimming Season min: 1 max: 15 step: 1 run_pool_pump_hours_off_season: name: Run Pool Pump in Off Season min: 1 max: 6 step: 1
pool_pump: switch_entity_id: switch.pompe_piscine pool_pump_mode_entity_id: input_select.pool_pump_mode swimming_season_entity_id: input_boolean.swimming_season run_pool_pump_hours_swimming_season_entity_id: input_number.run_pool_pump_hours_swimming_season run_pool_pump_hours_off_season_entity_id: input_number.run_pool_pump_hours_off_season
automation.yaml
alias: 'Pool Pump On' trigger:
Peux tu détailler les symptomes. Peux tu ajouter ca dans ton configuration.yaml
logger:
default: error
logs:
custom_components.pool_pump: debug
Reboot et regarde les logs.
peut etre ca pourra te parler. j'ai essayer de filtrer le log
2020-05-09
08:23:32 DEBUG (MainThread) [custom_components.pool_pump] Pool pump mode: Auto
2020-05-09 08:23:32 DEBUG (MainThread) [custom_components.pool_pump] Calculating daylight for today: 2020-05-09 01:23:32.917093+02:00
2020-05-09 08:23:32 DEBUG (MainThread) [custom_components.pool_pump] Total daylight today: 14.4 hours
2020-05-09 08:23:32 DEBUG (MainThread) [custom_components.pool_pump] Breaks maximum is 504.6 for offset 75 and break 60
2020-05-09 08:23:32 DEBUG (MainThread) [custom_components.pool_pump] Manager initialised: <PoolPumpManager(runs=[<Run(start=2020-05-09 07:50:00+02:00, stop=2020-05-09 10:50:00+02:00, duration=180.0)>, <Run(start=2020-05-09 11:50:00+02:00, stop=2020-05-09 14:50:00+02:00, duration=180.0)>])>
2020-05-09 08:23:32 DEBUG (MainThread) [custom_components.pool_pump] Next run: <Run(start=2020-05-09 07:50:00+02:00, stop=2020-05-09 10:50:00+02:00, duration=180.0)>
2020-05-09 08:23:32 DEBUG (MainThread) [custom_components.pool_pump] Pool pump should be on now: <Run(start=2020-05-09 07:50:00+02:00, stop=2020-05-09 10:50:00+02:00, duration=180.0)>
2020-05-09 08:23:32 INFO (MainThread) [custom_components.pool_pump] Switching pool pump from 'off' to 'on'
2020-05-09 08:49:03 DEBUG (MainThread) [custom_components.pool_pump] Pool pump mode: Auto 2020-05-09 08:49:03 DEBUG (MainThread) [custom_components.pool_pump] Calculating daylight for today: 2020-05-09 01:49:03.639434+02:00 2020-05-09 08:49:03 DEBUG (MainThread) [custom_components.pool_pump] Total daylight today: 14.4 hours 2020-05-09 08:49:03 ERROR (MainThread) [homeassistant.components.automation] Check Pool Pump on Event: Error executing script. Unexpected error for call_service at pos 1: could not convert string to float: 'unavailable' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 153, in _async_step self, f"async{cv.determine_script_action(self._action)}_step" File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 623, in _async_call_service_step *self._prep_call_service_step(), blocking=True, context=self._context File "/usr/src/homeassistant/homeassistant/core.py", line 1247, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1282, in _execute_service await handler.func(service_call) File "/config/custom_components/pool_pump/init.py", line 100, in check manager = PoolPumpManager(hass, now) File "/config/custom_components/pool_pump/init.py", line 140, in init self._first_run_offset_after_sunrise, self._durations = self._build_parameters() File "/config/custom_components/pool_pump/init.py", line 162, in _build_parameters ATTR_RUN_PUMP_IN_SWIMMING_SEASON_ENTITY_ID ValueError: could not convert string to float: 'unavailable' 2020-05-09 08:49:16 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last):`
Peux tu éditer ton dernier commentaire et utiliser la syntaxe adéquat pour partager du code et des logs. https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks
Pour le moment c'est pas très lisible
ok j'ai reussi a faire marcher.
Voici mon automations
`- id: '1589011338617' alias: Pool Pump On description: '' trigger:
Content pour toi. Peux tu expliquer ceux que tu as corrigé. Cela pourra servir à d'autre peut être ? Pense à étudier les basiques de la contribution sur les projets open sources pour faciliter les communcation.
j'ai rien fait de spécial. j'ai repris chaque automations 1 a 1 depuis le début. évidemment si quelqu'un a besoin d'aide, pas de problème pour moi.
je n'arrive pas a faire démarrer la pompe service not found
je ne comprends pas ce qu'il faut mettre a la place de cette entité switch_entity_id: input_boolean.fake_pump_switch
peut etre que mon probleme viens de la .