Smart Automatic Chicken Coop Door

I have been working on a Home Assistant integration for the Omlet Smart Chicken Coop Door - GitHub - krozgrov/ha-omlet-integration: Custom Home Assistant integration for Omlet devices, enabling monitoring and control of Autodoors and related devices. Includes features like battery level monitoring, door/light control, and real-time updates via API., it’s still a work in progress but I have a lot of the functionality working. Omlet has a great, well documented SDK! You can send commands like door (open/close) and light (on/off) and view all of the information availability from the API. Feedback appreciated, go easy its my first integration attempt. I want to be able to use the Sun2 integration to send the current sun rise and set times to the door. The light sensor works fine but with tree coverage it’s not always accurate. Cheers! Hope someone finds this useful!

2 Likes

I just wanted to say thank you! We’re using this on our new Chicken Coop Dashboard and it works perfectly.

1 Like

Hi Matthew,
I’ve certainly found this useful. I just replaced an ‘old’ Omlet door controller with the new wifi one. This integration you’ve made is great to make it really sing (so to speak).
I’ll be adding a second door to another part of the coop and I hope just adding it along side the existing one in the existing integration will be easy.
Thanks so much for the time and effort you’ve put into this - much appreciated - it’ll help keep our chooks safe at night and in the early morning.
Cheers
Stephen Jeffers

1 Like

My wife bought an Omlet door a while ago because we were preparing for chickens. It took a while but finally our first three chickens arrived this past week. I had checked the Omlet/Home Assistant situation before but nobody had done anything yet. Thinking I’d have to integrate things myself, I decided to give it another Google search and found your integration. I tried it and as far as I can tell, it works very well. My wife will be very happy with this. Will definitely buy you a coffee.

1 Like

Thanks for the kind words and coffee!!!

Thank you very much for this integration, Matthew!

I made an automation that sets the door’s open time to 15 minutes before sunrise and the door’s close time to 30 minutes after sunset. The automation is triggered every Monday and Thursday at 12:00h.
The automation also sets the door’s “Deep Sleep” time 5 minutes after the closing time and 5 minutes before the opening time.

Thought this might be helpful for folks that are looking to get the door to open and close based on sunset/sunrise times.

(Obviously, the door’s setting needs to be set to “Time” in the app. Also, the “Sun” integration needs to be installed in Home Assistant.)

alias: Set open and close time chicken coop
description: ""
triggers:
  - trigger: time
    at: "12:00:00"
    weekday:
      - mon
      - thu
conditions: []
actions:
  - action: time.set_value
    target:
      entity_id:
        - time.chicken_coop_open_time
    data:
      time: >-
        {{ as_timestamp(states.sun.sun.attributes.next_rising | as_datetime -
        timedelta(minutes=15)) | timestamp_custom('%H:%M') }} 
  - action: time.set_value
    target:
      entity_id:
        - time.chicken_coop_overnight_sleep_end_time
    data:
      time: >-
        {{ as_timestamp(states.sun.sun.attributes.next_rising | as_datetime -
        timedelta(minutes=20)) | timestamp_custom('%H:%M') }}
  - action: time.set_value
    target:
      entity_id: time.chicken_coop_close_time
    data:
      time: >-
        {{ as_timestamp(states.sun.sun.attributes.next_setting | as_datetime +
        timedelta(minutes=30)) | timestamp_custom('%H:%M') }}
  - action: time.set_value
    target:
      entity_id:
        - time.chicken_coop_overnight_sleep_start_time
    data:
      time: >-
        {{ as_timestamp(states.sun.sun.attributes.next_setting | as_datetime +
        timedelta(minutes=35)) | timestamp_custom('%H:%M') }} 
mode: single

1 Like

I released an update today that included support for webhooks among other improvements. It’s that so many people are enjoying this integration! Cheers!!!