Hi all, newbie here ā¦Iām looking to replace my old-school dumb controller with a smart controllerā¦I think Iām leaning towards opensprinklerā¦altho Iām somewhat worried about how wife-friendly it will be. Once itās all set up can it feed through to HomeKit in a nice usable way? Can you refer to the zones by nameā¦like āhey Siri, turn on the sprinklers in the back yardā or, say, adhoc timed watering like āhey Siri, water the flower beds for 7 minutesā?
Questions on setting up manual zone operations. Iām trying to do the following. I can get it to work by hard coding an integer value for run_seconds but Iād rather use an input_number slider for versatility. Two questions:
How can I have the input_number slider be in minutes and convert it into seconds for the service?
How do I pass the input_number slider value as an argument into the opensprinkler.run service? Iāve tried:
service_data:
entity_id: sensor.front_1_4_n_station_status
run_seconds: '{{ states(''input_number.front_1_4_n_timer'') | int }}'
but it throws Failed to call service opensprinkler/run. expected a list for dictionary value @ data['run_seconds']
and
service_data_tempalte:
entity_id: sensor.front_1_4_n_station_status
run_seconds: '{{ states(''input_number.front_1_4_n_timer'') | int }}'
but it throws Failed to call service opensprinkler/run. must contain at least one of entity_id, area_id.
My card:
entities:
- action_name: Run zone
icon: 'mdi:sprinkler'
name: Front 1/4 (N)
service: opensprinkler.run
service_data:
entity_id: sensor.front_1_4_n_station_status
run_seconds:
- input_number.front_1_4_n_timer
type: call-service
- entity: input_number.front_1_4_n_timer
title: Run Once Program
type: entities
I could only get it working with input_number by converting it to a float then and int, take a look at a README on https://github.com/vinteo/hass-opensprinkler, there is an example there.
Your second example has a typo, service_data_tempalte -> service_data_template
Helloā¦ I canāt figure out how to manually run my zones. Iāve been stuck for days !
Running latest OpenSprinkler (the one that supports MQTT) with the latest integration installed from HACS.
I keep getting this error when clicking the Run Zone link :
Failed to call service opensprinkler/run. expected int @ data[ārun_secondsā][0]
How should I implement something along the lines of your last example on your github ?
i.e. if not running and I click the link, run the zoneā¦ if running, then turn it off.
Iām not sure where the if condition should be ? the lovelace card, the script itself ? In your github you mention a switch ?