Comments (10)
ok j'ai reussi a faire marcher.
from ha-pool_pump.
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
from ha-pool_pump.
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:
- 'Auto'
- 'On'
- 'Off'
initial: 'Auto'
icon: mdi:water-pump
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
from ha-pool_pump.
automation.yaml
alias: 'Pool Pump On'
trigger:
- platform: state
entity_id: input_select.pool_pump_mode
to: 'On'
action:
service: homeassistant.turn_on
entity_id: switch.pompe_piscine
alias: 'Pool Pump Off'
trigger:- platform: state
entity_id: input_select.pool_pump_mode
to: 'Off'
action:
service: homeassistant.turn_off
entity_id: switch.pompe_piscine
alias: 'Check Pool Pump Periodically'
trigger: - platform: time_pattern
minutes: '/5'
seconds: 00
condition:
condition: and
conditions:- condition: sun
after: sunrise
after_offset: '-1:00:00' - condition: sun
before: sunset
before_offset: '1:30:00'
action:
service: pool_pump.check
alias: 'Check Pool Pump on Event'
trigger:
- condition: sun
- platform: homeassistant
event: start - platform: state
entity_id:- input_select.pool_pump_mode
- input_boolean.swimming_season
- input_number.run_pool_pump_hours_swimming_season
- input_number.run_pool_pump_hours_off_season
- binary_sensor.pool_water_level_critical
action:
service: pool_pump.check
- platform: state
from ha-pool_pump.
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.
from ha-pool_pump.
peut etre ca pourra te parler. j'ai essayer de filtrer le log
Pool Pump Manager
Version: 0.0.1
This is a custom integration!
If you have any issues with this you need to open an issue here:
https://github.com/oncleben31/ha-pool_pump/issues
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):`
from ha-pool_pump.
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
from ha-pool_pump.
Voici mon automations
`- id: '1589011338617'
alias: Pool Pump On
description: ''
trigger:
- entity_id: input_select.pool_pump_mode
platform: state
to: 'On'
condition: []
action: - data: {}
entity_id: switch.pompe_piscine
service: homeassistant.turn_on - id: '1589011456667'
alias: Pool Pump Off
description: ''
trigger:- entity_id: input_select.pool_pump_mode
platform: state
to: 'Off'
condition: []
action: - data: {}
entity_id: switch.pompe_piscine
service: homeassistant.turn_off
- entity_id: input_select.pool_pump_mode
- id: '1589012007096'
alias: Check Pool Pump Periodically
description: ''
trigger:- minutes: /5
platform: time_pattern
seconds: '00'
condition: - condition: and
conditions:- after: sunrise
after_offset: '-1:00:00'
before: sunset
before_offset: '1:30:00'
condition: sun
action:
- after: sunrise
- data: {}
service: pool_pump.check
- minutes: /5
- id: '1589012278069'
alias: Check Pool Pump on Event
description: ''
trigger:- event: start
platform: homeassistant - entity_id: input_select.pool_pump_mode
platform: state
to: Auto
condition: []
action: - data: {}
service: pool_pump.check
`
- event: start
from ha-pool_pump.
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.
from ha-pool_pump.
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.
from ha-pool_pump.
Related Issues (20)
- 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
- Not working with HomeAssistant 2021-05 HOT 19
- 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 2
- Abacus algorithm - taking account of pool size, power of the pump and overwintering
- auto-auto HOT 2
- Erreur temperature HOT 17
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.