irrigation_unlimited icon indicating copy to clipboard operation
irrigation_unlimited copied to clipboard

Events not triggered for manual runs

Open clau-bucur opened this issue 2 years ago • 2 comments

Describe the bug I do not receive events (irrigation_unlimited_start, irrigation_unlimited_finish) for manual run sessions.

Expected behavior Events should be also sent in case of manual runs, with a way to differentiate between scheduled and manual sessions.

clau-bucur avatar Jun 14 '22 10:06 clau-bucur

You will receive these events at the start and end of a sequence, not an individual zone. A manual run can be distinguished by the schedule.index being empty/blank.

rgc99 avatar Jun 16 '22 04:06 rgc99

I do not know how to listen to the irrigation_unlimited_finish. Could some one point me to the right direction? I've tried to implement the irrigation_unlimited_finish example, but without any success (there seems there is nothing triggered). I've also tryed to listen to the 'irrigation_unlimited_finish' event in the HA Developer Tools\Events\Listen to events without any sucess either.

image

image

f616 avatar Aug 14 '22 15:08 f616

You only receive events for the start and end of a sequence. The beginning and finish of a zone do not produce these events but can be tracked using the state platform as the trigger. For example:

    trigger:
      - platform: state
        entity_id:
          - binary_sensor.irrigation_unlimited_c1_z1
        from: "off"
        to: "on"

rgc99 avatar Aug 15 '22 21:08 rgc99

Another thought is to 'wrap' a single zone in a sequence. Create a new sequence and move the schedules from the zone.

rgc99 avatar Aug 16 '22 01:08 rgc99