Shelly Door/Window 2 sensor in Home Assistant

Sdílet
Vložit
  • čas přidán 26. 07. 2024
  • In last few years, I've purchased various Shelly devices. With most of them I'm happy, some work better then expected, but this one - I sincerely hope only my device has this problem.
    Shelly Door/Window 2 sensor is one of the BEST sensors I've seen in terms of what is packed in this (not so) small package. You get Magnetic sensor to monitor status of the door or window with included tilt functionality. You also get temperature sensor and Lux sensor. But there is even vibration sensor so you can detect forced entry or maybe window breaking.
    In this video we well add this sensor to Home Assistant via internal integration and by using MQTT and you still have option to use ShellyforHASS HACS custom component.
    Home Assistant integration:
    ⏵ www.home-assistant.io/integra...
    ShellyforHASS:
    ⏵ github.com/StyraHem/ShellyFor...
    Shellies Discovery:
    ⏵ github.com/bieniu/ha-shellies...
    00:00 Intro
    00:25 Thank you for your support
    00:44 Let's talk about Shelly Door/window sensor
    03:04 Functionality list
    05:06 Setup and configuration
    07:15 Home Assistant integration settings
    16:32 Adding Shelly Door/Window 2 sensor to HA
    18:04 Sensor update speed test
    18:54 Automation examples
    21:39 Conclusion
    Please, give me a thumb up if you liked this video, subscribe if you still haven't and I'll see you next time!
    Have fun!
    BeardedTinker
    🧡 If you would like to support me and this channel, you can JOIN and become channel member!
    czcams.com/users/BeardedTinker...
    ✅Twitter: @BeardedTinker
    ✅Discord: / discord
    #howto #HomeAssistant #automation #trigger
  • Věda a technologie

Komentáře • 78

  • @superkikim4916
    @superkikim4916 Před rokem +3

    Great vid. Tx for that. It's not recent but anyway :) It helped. Note that now, the integration works fine. However, setting a fix IP helps a lot. Because with DHCP, everytime it wakes up, it needs to make a DHCP request, which add overhead. With a fix IP, in home assistant,open/close sensor change is reported within 1 to 2 seconds.

    • @BeardedTinker
      @BeardedTinker  Před rokem +2

      Thank you! I always set fixed IP addresses for all of the devices. The problem with Shelly Door/WIndow sensor is the battery life and if in deep sleep - time to send state on wakeup. There is no way to speed up wake up, WiFi handshake and sending state, not with the chip used in this older device. If they would release newer version with newer Silicon Labs, it could potentially be faster and have longer battery life.

  • @BeardedTinker
    @BeardedTinker  Před 3 lety +6

    Just want to clear something - all 6 sensors do show up (eventually) in Home Assistant if you are using internal integration: Door/Windows state, temperature, vibration, lux, tilt and battery states.
    And to add, it's running latest firmware (now 1.11)

    •  Před 2 lety +1

      Great! The Home Assistant can drawing nice temperature diagram, like shelly H&T?

    • @BeardedTinker
      @BeardedTinker  Před 2 lety

      @ you can use temperature sensor that was added from this door sensor and combine it with HACS mini-graph-card. That is custom component that I use for most of my graphs.

  • @nostradada9657
    @nostradada9657 Před 3 lety +1

    Thanks for the video. I bought one 3 months ago and wanted to throw it away.
    It never woke up. I will try with the Mqtt protocol.

    • @BeardedTinker
      @BeardedTinker  Před 3 lety

      Sorry to hear that. It's a shame. BTW, there is new firmware available 1.11 I think, that is focused on battery powered devices. Try to upgrade as it may help.

  • @richardwalker_
    @richardwalker_ Před 3 lety +5

    These are really, really awkward to set up; but eventually they work, and they become reliable - providing you don’t interfere. Two here running for six months now and battery still 95%.

    • @BeardedTinker
      @BeardedTinker  Před 3 lety +1

      Are your sensors triggered often or just 1-2 times a day?
      Not sure if you know, bit few days back, new firmware was release for battery powered devices. It should further optimise the battery. Updated mine yesterday and will keep an eye on it.

    • @richardwalker_
      @richardwalker_ Před 3 lety +1

      @@BeardedTinker One on the back door is opened maybe ten or more times a day while I’m working from home, letting the dog out, going to the greenhouse and so on. I only have wifi configured. Response time is less than a second. They also put on the outside lights after dark if the door is opened. I had 13 April firmware but just pressed update.

  • @ronm6585
    @ronm6585 Před 3 lety +1

    Thanks BT.

  • @superwombat
    @superwombat Před 8 měsíci +1

    I can agree with this video. I just bought two of these sensors. They were more difficult to connect to HA, and one of them has a defective magnet sensor...it always indicates open even if the magnet sits right next to the sensor. I am happy with all my other Shelly components, from 2PM plus, smoke, plug plus and H&T...but these are just crap.

    • @BeardedTinker
      @BeardedTinker  Před 8 měsíci +1

      Yeah - very disappointing device. I do have for about month or so newer one, but just didn't have time or strength to play with it. It should be better.

  • @adifoto6362
    @adifoto6362 Před 3 lety +1

    Thanks for the video, it looks to be a fun sensor. changing the batteries so quick is no good, especial that they are not chip or easy to find.

    • @BeardedTinker
      @BeardedTinker  Před 3 lety

      Batteries are a bit odd to find - CR123A. This new pair is holding a bit longer then last one, but I'm still not using this sensor daily/normal use.

    • @adifoto6362
      @adifoto6362 Před 3 lety +1

      @@BeardedTinker probably using that tripe of batteries will make people think twice if to buy this door sensor. it feels that they packed more than it is needed in this sensor. Once again good video.Thanks

    • @BeardedTinker
      @BeardedTinker  Před 3 lety +1

      If it would have rechargable battery, it would be better I think, but then again, needing power source/power bank to recharge also complicates things a bit.
      Thanks a lot for the comment, much appreciated Adi

    • @adifoto6362
      @adifoto6362 Před 3 lety +1

      @@BeardedTinker My pleasure love your video's keep up the good work.

    • @playlist325446586
      @playlist325446586 Před 2 lety +1

      I'm using this sensor for almost a month and battery status is 99%. Open door detection works fine (response is 1s or 2s) unlike in the video. I guess the guy didn't know the 2 parts of the sensor must not touch! Few mm space is needed for it to work fine.

  •  Před 2 lety +1

    Hi, is this sensor for outdoor use too? If I put this on the yard gate, can I use this as an outdoor temperature sensor, like shelly H&T? (beautifull temperature diagram?)
    Can this illuminate sensor trigger scenes for evening moodlight (dawn/susk)? Thx

    • @BeardedTinker
      @BeardedTinker  Před 2 lety

      Unfortunately no. Case is not waterproof in any way. Not even splash proof I would say.

  • @Wilotas
    @Wilotas Před 3 lety +1

    Hi,
    First of all, thank you for your videos.
    Just two questions:
    1.- Is normal to wait 5 seconds until a switch (also from Shelly) receives the message to "turn_on"?
    2.- How can I access to the web interface?, the device is in sleep mode the mjority part of the time so I can not access to configure CoIot for instance.
    Thanks!

    • @BeardedTinker
      @BeardedTinker  Před 3 lety

      Hi and thanks for great question.
      1) yes, that can be normal behaviour unfortunately. If it's receiving đessage from door sensor, I would say that it's average time you can get. This depends how fast can it connect to WiFi
      2) You need to wake it up. Easiest way is to use needle that arrived with it and insert in small hole on the front of the sensor to push the switch.
      Other option you have is to trigger the sensor and quickly open the URL. Doesn't work 100% of the time so you may need to repeat this.

    • @Wilotas
      @Wilotas Před 3 lety

      @@BeardedTinker Thank you very much.
      We will try to improve the WiFi signal.
      Regarding the "Open" events, I noticed that it is sending a "false open"event to my Home Assistant several times per day and in the same second I received the "close" event so it seems to be a bug or something strange.
      I thought to configure the Automation in HA with a "Open" state duration of 5 seconds but I think it should not work because it enters in sleep mode once it has sent the "Open" event, right?.

    • @BeardedTinker
      @BeardedTinker  Před 3 lety

      It could be bug. I'm really not liking this sensor to be honest. Was expecting much more from it in terms of reliability.
      You could use wait but that's also bad idea for door sensors as they can be tricked.
      What integration type are you using?

  • @Sebastian-xf8je
    @Sebastian-xf8je Před 3 lety +1

    Which brands/sensors have you experienced the most reliability/success with?

    • @BeardedTinker
      @BeardedTinker  Před 3 lety +2

      In regard to Door (but also motion and temperature) I'm very very happy with Xiaomi Aqara Zigbee devices.
      They are fast in terms of response, reliable in terms of capturing events and changes, batteries do last a long time (door sensors is now over 2 years for ex) - and price is really OK for them. BUT They are Zigbee.
      I would love to see WiFi sensors like that. I do have motion sensor from Shelly and it's very sturdy, working great and my wife and kids call it "First device I bought that really works".

    • @nodeiskrad
      @nodeiskrad Před rokem

      This Shelly 2 sensor seems to be the best if you want a wifi sensor that isn't cloud based.

  • @tonydarby9096
    @tonydarby9096 Před 3 lety +2

    I made the mistake of getting two of these. Like yours the batteries only last a fraction of the stated time even with very infrequent use. Tilt and vibration also very poor. I have stopped using them and now use Zigbee and Z-wave sensors that use much cheaper batteries and last months before battery levels drop even a few percent.

    • @BeardedTinker
      @BeardedTinker  Před 3 lety

      I know the pain. I bought this one for testing, and as you've seen, not happy with how they perform.
      Also using Zigbee sensors. From Xiaomi and they work much better. Still have original battery in them, and it's been almost 2 years now

  • @georgch8554
    @georgch8554 Před 2 lety +1

    Somwhere I read that the vibration detection works only if the window is closed.

    • @BeardedTinker
      @BeardedTinker  Před 2 lety

      Thank Greg! Yes, I've seen it somewhere too after I recorded the video. Which makes sense I guess. But there were also ghost vibrations detected by sensor. This is fixed in latest firmware.

  • @BigLeafDropper86
    @BigLeafDropper86 Před 2 lety +1

    I want to use as a letter box open sensor - but it takes about 3-4 secs for posty to put mail in and the sensor doesn't connect in that time and doest send a signal if it is back in closed position before connecting

    • @BeardedTinker
      @BeardedTinker  Před 2 lety +1

      New firmware updates improved on connection speed, but there is not much you can do with WiFi sensors.
      Problem is that they go in deep sleep and when they awake it takes time for WiFi handshake.
      Did you try any ZWave (I don't use them) or Zigbee door/window sensor? They shoul dbe faster to respond.
      Some are also using light sensors for mailbox it should register when it's open due to light change.

    • @BigLeafDropper86
      @BigLeafDropper86 Před 2 lety

      @@BeardedTinker I had a Xiaomi ZigBee sensor connect but i think the distance is just a little to far as it would become unavailable very often. Wifi connects fine but is to slow to react, I just with Shelly would still send a post that it did open even though it's closed again

  • @SlackerLabs
    @SlackerLabs Před 3 lety +1

    A Lux sensor? On a door window sensor? That seems weird to me. But I guess it makes sense on a window where the sensor is pointing into a room.

    • @BeardedTinker
      @BeardedTinker  Před 3 lety

      Yeah, I've cut a lot of the video as it was too long, but this really is strange sensor. If it would work (maybe mine has issues only) it would be awesome.
      A lot of things could be done, if only it would work 😂

    •  Před 2 lety +1

      I think, the lux sensor is good to turn on lighting, if there is dark, and I'm opening the garage door. Bat the temperature sensor? For what???

    • @BeardedTinker
      @BeardedTinker  Před 2 lety +1

      Probably they had extra so they just added that one 😉

  • @CantFindInYoutube
    @CantFindInYoutube Před 11 měsíci +1

    Today I received that sensor directly from Shelly, had firmware of 2021 and I update to the last one of 2023 and behaves like yours, vibration sensor don't work, now we have 5 sensors in Shelly integration. I bought batteries from them and in last 11 hours mine went from 100% to 98%, I have several devices from them and this is the first that is a waste of money.

    • @BeardedTinker
      @BeardedTinker  Před 11 měsíci

      IMHO - they should just stop selling them. New one with Bluetooth should according to what I've heard be much better. But still haven't tested it.

    • @CantFindInYoutube
      @CantFindInYoutube Před 11 měsíci

      They fixed the problem in the bluetooth removing the vibration sensor :) So if someone broke a window and the sensor is in place it won't fire an alarm.@@BeardedTinker

  • @EnricAragorn
    @EnricAragorn Před 3 lety +1

    Can we have de temperature sensor with the native HA ntegration? thanks mate

    • @BeardedTinker
      @BeardedTinker  Před 3 lety

      It should populate eventually - total of 6 sensors. From HA integration in main setup I got: battery, door, lux, tilt, vibration and temperature.
      No information on firmware, WiFi, IP address etc.

    • @EnricAragorn
      @EnricAragorn Před 3 lety +1

      @@BeardedTinker Oh, I just 3. Bateri, tilt, and open/close :(

    • @BeardedTinker
      @BeardedTinker  Před 3 lety

      @@EnricAragorn you did use CoIoT and changed to match your HA IP address with port 5683. Also, firmware has to be 1.10 or newer for this.

    • @EnricAragorn
      @EnricAragorn Před 3 lety +1

      @@BeardedTinker I think yes, but I will check it out tonight. Thanks!

    • @BeardedTinker
      @BeardedTinker  Před 3 lety +1

      Try also to pull battery out. It sh6keep all the settings but maybe that could "reset" integration.

  • @afro208
    @afro208 Před 3 lety +2

    Aqara Door Sensor, all day, everyday.

  • @ryanandrewbaker
    @ryanandrewbaker Před 3 lety +1

    I've had four of these, and they each died after several months. They are all now in the bin. Very disappointing.

  •  Před 3 lety +2

    Haha, I think that if I own this sensor it will end in the wall with words: "Do you register this vibration M@#$&F$&ker!"

    • @BeardedTinker
      @BeardedTinker  Před 3 lety +1

      I've cut the part where I bang them repeatedly on the table - no vibration 😂😂😂

    • @sanspt7213
      @sanspt7213 Před 2 lety

      @@BeardedTinker haven't you see that it states that sensor has to be in closed state (magnet touching the alrge body)? otherwise it will not 'vibrate'. when i noticed it, it started to report vibration, however it also doesn't work as i expected... unfortunatelly vibration is the most important feature of it for me, so i am searching for something else... any suggestions (battery powered)?

  • @svenniandri68
    @svenniandri68 Před 3 lety +1

    How to turn it off in the app?

    • @BeardedTinker
      @BeardedTinker  Před 3 lety

      Sensor? Not sure - I don't use the app so can't help you with that.
      What part of the sensor you want to disable?

  • @nodeiskrad
    @nodeiskrad Před rokem +1

    I've had one of these sensors on a busy door for a month and the battery still reports 100%.

    • @BeardedTinker
      @BeardedTinker  Před rokem

      Great! Mine depletes in 30 days even when not mounted to the door and with 0 activity :)

    • @Aimero
      @Aimero Před 9 měsíci

      @@BeardedTinker bad batteries or very hot/cold environment with direct sun exposure?

    • @BeardedTinker
      @BeardedTinker  Před 9 měsíci

      ​@@Aimero Nothing like that - my work desk, no direct sunlight, 0 opening and closing. It just sucked battery flat (2 actually.

    • @Aimero
      @Aimero Před 9 měsíci

      @@BeardedTinker Very strange. I ordered 5 of them today because I currently run Aqara sensors (95 of them) and on almost every window they work perfectly. But I have 3 Doors (directly next to working windows) where the sensors always drop connection after one or two days. LQI is about 150 on every sensor. It really is always doors. Windows work fine.
      I hope these wifi sensors work. If they drain battery too fast I'll get my electricians to wire them to a power supply lol

    • @Aimero
      @Aimero Před 9 měsíci

      @@BeardedTinker Little heads up if you are interested:
      I now have 5 of them in Use. One is on a door that gets opened about 70 - 100 times a day. The battery first went down to 93% during configuration. But when I hung it on its place, it went up again to a 100%. Now it swings between 96% and 100% since 5 days. Currently it is at 99%.
      All other of them are still at 100% constantly. I guess that the software has some issues at heavy use calculation

  • @svenniandri68
    @svenniandri68 Před 3 lety +1

    Could somebody please tell me how to turn it off in the app ive looked everywhere and found nothing its really annoying😬😬

    • @BeardedTinker
      @BeardedTinker  Před 3 lety

      Sensor? In Shelly App? I'm not sure, not using app myself and haven't seen this option.

  • @chrisrnz
    @chrisrnz Před 2 lety +1

    Every single one of my Shelly Door/Window sensors has required bending of the battery contact. Very poor QA. They also only seem to respond to open/close events if those events are a decent period of time apart - a fast open/close event doesn't register properly. I don't even want to mention the Shelly app ... one of the worst pieces of software I've ever installed. Definitely won't be buying any additional products like this.

    • @BeardedTinker
      @BeardedTinker  Před 2 lety +1

      Mine has been gathering the dust for about week after I recorded that video. I do have to admit that this one and H&T sensor are two worst products I bought overall for smart home - from all of the stuff I bought or got for review. But I did manage to get H&T sensor working properly since - used charging dock, that replaces battery with USB charging port. Of course, i has lost portability with this tweak, but at least it works.
      Really disappointed with both of those devices, especially since I really like other Shelly devices and think they are great IoT company.

    • @chrisrnz
      @chrisrnz Před 2 lety +1

      @@BeardedTinker would you recommend Aqara instead? I'm not interested in any sort of budget constraint at this point - the only things I care about are stability and accuracy (critical for the environment I'm monitoring).

    • @BeardedTinker
      @BeardedTinker  Před 2 lety +1

      I do use a lot of Aqara Zigbee sensors. Had no issues so far with them. Some people are having connections issues but I haven't seen any so far.

  • @s1ubbe
    @s1ubbe Před rokem +1

    These sensors are trash. Getting ANY type of connection is based purely on luck. Cannot see how these would work at all since most of the detections would be missed.

    • @BeardedTinker
      @BeardedTinker  Před rokem

      They are definitely one of the worse sensors I've bought ever and the worst device from Shelly so far.

  • @SayWhaaaaaaaaaaaaaaaaaaaaaaat

    Shelly got the popularity and now makes overpriced crap. China style.

    • @BeardedTinker
      @BeardedTinker  Před 3 lety

      They have some good products, that I would recommend, but some really do have big flaws. Since they are EU company, I was expecting better quality control, but...