RavenSystem / esp-homekit-devices

Advanced firmware to add native Apple HomeKit and custom configurations, compatible with any SoC based on ESP32, ESP32-S, ESP32-C and ESP8266 series. (Shelly, Sonoff, Electrodragon, Tuya...)
Other
2.72k stars 357 forks source link

SPRINKLER @ Sonoff BASIC #931

Closed KrzysiekRadek closed 4 years ago

KrzysiekRadek commented 4 years ago

Hi All :) I need a sprinkler string for Sonoff BASIC ... can you help me?

i3laze commented 4 years ago

Try the online HAA configurator: https://glumb.github.io/haa-configurator/

  1. Use a template for Sonoff Basic standard switch.

  2. Remember GPIOs for Basic: 0 - cyclic input (button) 12 - output (relay) 13 - LED

  3. Remove switch accessory at the bottom and add water valve accessory.

  4. Change valve type to sprinkler (optional).

  5. Add cyclic input 0 an digital output 12 on, 12 low off

  6. Copy the resulting JSON.

  7. Profit!

  8. Optionally remove LED from general settings and add it as additional digital output 13 (see 5.) so LED will follow sprinkler state.

  9. Optionally add default running time (it can be changed in Home.app later). Be advised that “maximum On Time (“d”)” for HomeKit sprinkler seems to be 15 min (900s). In case runtime more than 15 min is needed, use “reset to default state timer (“i”)” instead.

P.S. Your task is a piece of cake. Today, using glumb’s online configurator, I’ve programmed two Sonoff Duals running rotary ball valves. One even had a floating leakage sensor attached for closing the valve. I really admire great job done by @RavenSystem (and @glumb): HAA indeed allows almost any imaginable scenario and logic right inside autonomous device (without must-stay-online HomeKit automations).

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.