Awesome Shelly Button 1 and Home Assistant integration

  Рет қаралды 25,779

BeardedTinker

BeardedTinker

Күн бұрын

Shelly Button1 is one of the best Shelly devices I have tested so far - so simple but it works, all the time, every time. Some of the best features is rain/splash protection, internal battery and good WiFi range.
Today we will be looking at what it offers, how to configure Shelly Button and how to integrate it in Home Assistant.
I'll show you also my automation for it - now using Trigger ID which was added in 2021.7.
Home Assistant internal Shelly integration:
⏵ www.home-assistant.io/integra...
Shelly Button link:
⏵ shelly.cloud/products/shelly-...
My automation for Shelly Button:
⏵ github.com/BeardedTinker/Home...
00:00 Intro
00:22 Thank you for all of your support
00:40 About Shelly Button
03:15 Configuration of Shelly Button
06:35 Home Assistant configuration settings
09:28 Actions configuration options
10:22 Adding Shelly Button to Home Assistant
12:09 Creating sample automation
16:42 More complex automation
18:20 Wrapping the video
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 KZbin channel member!
kzbin.info...
✅Twitter: @BeardedTinker
✅Discord: / discord
#howto #HomeAssistant #shellybutton #shelly

Пікірлер: 59
@makeitworktech
@makeitworktech 2 жыл бұрын
This button is part of my next video! I was having a lot of trouble with this button until I realized there was a firmware update. After that, it's fairly responsive! Great tutorial! The Shelly cloud part that lets you use this when you're not in your home network... That's pretty cool!
@BeardedTinker
@BeardedTinker 2 жыл бұрын
What version where you on? 1.10, or 1.09? I think I still haven't updated mine to 1.11, that was just released few weeks ago (1-2 days after I recorded that video).
@makeitworktech
@makeitworktech 2 жыл бұрын
@@BeardedTinker I never thought to write it down or record it! I want to say the date was from 2020.
@shia_labeouf
@shia_labeouf 6 ай бұрын
This was super helpful. I'm new to MQTT in HA so this was great. Also, I really love your accent, it's weirdly soothing. Subscribed for more.
@BeardedTinker
@BeardedTinker 6 ай бұрын
Thanks for subbing! And compliment :)
@KrastyoKrastev
@KrastyoKrastev 2 жыл бұрын
Thanks for the great video
@BeardedTinker
@BeardedTinker 2 жыл бұрын
Glad you liked it Krastyo!
@ansheos
@ansheos Жыл бұрын
Thanks for the overview, now let’s play for a bit! 😁
@BeardedTinker
@BeardedTinker Жыл бұрын
Any time!
@ansheos
@ansheos Жыл бұрын
Haha, saw your older comment about some helping scripts, trying that
@dc857
@dc857 11 ай бұрын
I just got this working. It only worked after I used the shelly discovery script and it does not show single, double, triple or long press as entities but when you create an automation with the button after discovery in MQTT it works as it should.
@BeardedTinker
@BeardedTinker 11 ай бұрын
Yes, there was a change after video was recorded how HA sees the events (or presents them). Glad you got it working!!!
@abwino
@abwino 2 жыл бұрын
Hi, thanks very much for this great and very useful video! Did you have to define the button actions etc in your configuration file to make MQTT work, or does it 'auto discover'? I can't work out how to expose all the entities via MQTT. Thanks - Andrew
@BeardedTinker
@BeardedTinker 2 жыл бұрын
I have Shellies Discovery script installatied. It helps with proper setup of MQTT Shelly devices. Did you try that one? github.com/bieniu/ha-shellies-discovery
@abwino
@abwino Жыл бұрын
@@BeardedTinker Ahhh!! Thank you so much, I didn't know anything about the scripts. All installed and working perfectly. Thanks again for replying and pointing me in the right direction. I learn something new about HA thanks to guys like you.
@BeardedTinker
@BeardedTinker Жыл бұрын
That's fantastic! Glad you got it working!!
@ronaldvargo4113
@ronaldvargo4113 2 жыл бұрын
This would be a great replacement of the Samsung buttons which are now Aeotech and getting expensive. The price of these Shelly buttons are good and no batteries to replace.
@BeardedTinker
@BeardedTinker 2 жыл бұрын
Just be aware of delay from button press to action. That's the only downside that I see in this one. There is new firmware in works that could/should reduce this for a fraction of time, but we have to wait for it.
@ronaldvargo4113
@ronaldvargo4113 2 жыл бұрын
@@BeardedTinker I have a couple of Button1's in my possession now. If you let the button "sleep" the press after say 30 minutes of non-use is really quick to connect to the AP and trigger automations, if you try another button press within say 2-3 minutes, the wifi AP connect will timeout but eventually it will connect and the command will be sent out. You can tell by the led colors, white will flash for 3 to 5 seconds, then red, then finally green. That second button event can be up to 5 to 8 seconds as it re-associates with the AP and sends commands. I don't know if it due to AP settings or their firmware or both. If you run the button on USB power it always stays connect and thus none of this delay.
@MichaelAlderete
@MichaelAlderete Жыл бұрын
In the Shelly configuration details, you show configuring both CoIoT and MQTT. And then in Home Assistant, you show the differences in the entities that appear for each of the two integrations (built-in Shelly, which is based on CoIoT, and MQTT). But you don't say whether you need both, and I don't think you do. And while the built-in integration has fewer entities, it's not clear that's actually a difference in functionality. The built-in integration is based on events, rather than entities. So automations check the _type_ of the event (single, double, etc.), instead of watching for specific, different entities going on. To my eyes (squinting at the screens in your video), it appears that the only things you get with MQTT that aren't in the built-in integration are the button's IP address on the Wi-Fi network (which I can look up elsewhere), and the availability of a device firmware update (which is useful, but secondary). Could you perhaps provide additional details of the differences between the two integration approaches, advantages and disadvantages, and so on? Any reliability differences that you know of? Is one more responsive than the other? Is one more reliable than the other?
@BeardedTinker
@BeardedTinker Жыл бұрын
Hi! No, you don't need both of them. Using just internal/CoIoT is enough (or MQTT). As for what to go for - it's matter of preference. If using CoIoT, you can often get unavailable, as device state goes to sleep, while you can avoid that with using MQTT and retain option there. But that's just matter of personal preference... Device will in both cases operate the same in terms of functionality from what I recall. I use it with MQTT as I like to have devices available even during HA restarts.
@Ipeacocks
@Ipeacocks 2 жыл бұрын
Does wifi devices provide better reaction? I mean smaller delay for actions.
@BeardedTinker
@BeardedTinker 2 жыл бұрын
That's not easy to answer - depends. If the WiFi device is always powered on and connected to WiFi, then it should be - of course depending once again on signal quality and network load. If it's battery powered, it has to connect to wifi and send action after that so it can take longer time. Other protocols such as Zigbee or Z-wave can be faster in that case. But once again, depending on the network. For button, it will be a bit slower as it is battery power operated device.
@Marco-jp2rm
@Marco-jp2rm 8 ай бұрын
Hi, please can you help me. When i go to my Homeassistant the Adressbar shows 192.168.178.60:8123 But i dont know what to type into ColoT peer and Mqtt Server by the shelly button?!
@BeardedTinker
@BeardedTinker 8 ай бұрын
For CoIoT, use IP address of home assistant (192.168.178.60) with port 5683 - full address is 192.168.178.60:5683 . MQTT is not needed if you use CoIoT and also if you don't have it installed.
@Alfredplender
@Alfredplender 2 жыл бұрын
Can you only conttrol shelly lights, or also other “tuya wifi” lamps
@BeardedTinker
@BeardedTinker 2 жыл бұрын
I don't have any Shelly lights, controling IKEA and Elgato lights with it.
@MichaelAlderete
@MichaelAlderete Жыл бұрын
It depends on what you're using to respond to clicks on the button. If you're using it with Home Assistant, then the buttons can control anything that you've connected to Home Assistant. The only limitation is your skill with automations.
@instructeurke
@instructeurke 2 жыл бұрын
Hi, I see You are using Configuration.Yaml 4 MQTT. I have Mosquito. Can you tell what are the differences and what is best to use to have an easy life?
@BeardedTinker
@BeardedTinker 2 жыл бұрын
I think that this configuration.yaml is leftover from when Home Assistant internal integration was done via configuration.yaml. I use now mostly MQTT version of integration, and that's easiest way of adding them, but you need to add one Python script (github.com/bieniu/ha-shellies-discovery) - this will add all existing or new devices properly formatted to Home Assistant. In my opinion this is very fast in terms of response and should also handle well any Home Assistant restarts if any sensor data is changed while it was offline.
@instructeurke
@instructeurke 2 жыл бұрын
@@BeardedTinker thanks for the Quick reply. I’ll lookup how to manage those python’s since this is all new to me. Have my HA up and running with a simple node red implementation to achieve my goals, but maybe there is a way to make it more responsive with Mqtt in stead of using the binary sensors I now use.
@alienJIZ1990
@alienJIZ1990 2 жыл бұрын
@@BeardedTinker thx for the link - I've switched back and forth between Shelly and ShellyforHass for a long time now trying to reduce the press delay and this seems to work the best so far. After upgrading to the latest firmware it's now between a 1-10 second delay rather than a 4-10 second delay. The problem is it's about 1-2 seconds the first time I press it - if I push the button immediately after the blue light on the button goes off (i.e. to turn a lamp back off/on) it seems to have a sort of cooldown where if I keep doing that, it will become longer and longer until I can press the button again without a delay. Are you experiencing this at all by chance or is it just my config?
@paul454
@paul454 2 жыл бұрын
I don't get all the push options in my system. Just power on/off, battery, etc. It's showing as a switch, not a button. Any advice?
@BeardedTinker
@BeardedTinker 2 жыл бұрын
How did you connect it - using internal Shelly integration or by using MQTT?
@paul454
@paul454 2 жыл бұрын
​@@BeardedTinker Thanks for your response! I have both the MQTT/Mosquitto and the Shelly integrations. There are a couple of MQTT entities for the buttons, but nothing for short/long presses, just power on/off, battery level, and one or two more that are not useful.
@paul454
@paul454 2 жыл бұрын
@@BeardedTinker Well, thought I would follow up with this... I appears that my configuration was corrupted. I restored the original backup I made right after I initially logged in for the first time. I updated the core and started re-adding the integrations. Interestingly, I am getting no entities for MQTT now (even though it is seeing the messages when I press the buttons). However, the new Shelly integration sees single, double, triple, and long presses now. So at this point, I am going to leave it there and use the Shelly integration.
@BeardedTinker
@BeardedTinker 2 жыл бұрын
@@paul454 Glad you got it working, although not the easiest way...
@Jay750719
@Jay750719 2 жыл бұрын
I use Mosquito(MQTT) that can't find this button. Is this the reason?
@BeardedTinker
@BeardedTinker 2 жыл бұрын
It should work with MQTT without any issue. Just configure MQTT server in device configuration.
@revealingfacts4all
@revealingfacts4all 3 күн бұрын
I wish you would have demonstrated it in actual use so I could get an idea of the reaction time...
@jayemess6622
@jayemess6622 2 жыл бұрын
so it is not possible to turn the LED light on and off from home assistant?
@BeardedTinker
@BeardedTinker 2 жыл бұрын
Sorry, didn't catch you - what light? LED ring light on button?
@jayemess6622
@jayemess6622 2 жыл бұрын
@@BeardedTinker yes, the led ring, can you turn it on and off from remote?
@BeardedTinker
@BeardedTinker 2 жыл бұрын
@@jayemess6622 unfortunately, as far as I know - no, you can't disable it from Home Assistant.
@SirMarco80
@SirMarco80 8 ай бұрын
Thanks for the video! I have integrated the shelly button via MQTT. the shelly discovery script is also running. but I can't see the entities for short press, long press etc. kzbin.info/www/bejne/gpaWop1oaKp0iLs do i need to configure this extra?
@bassbo1
@bassbo1 2 жыл бұрын
I think these "simple" devices are still way too expensive.... 10USD would be OK
@BeardedTinker
@BeardedTinker 2 жыл бұрын
Yes, they are a bit expensive, have to agree on that.
@bassbo1
@bassbo1 2 жыл бұрын
@@BeardedTinker you can build that for $5 from AliExpress, still, mass production capabilities of Shelly and bump the price to $10 and you make double anyway and you will crush the competition in the process.
@JonnyBergdahl
@JonnyBergdahl 3 жыл бұрын
What are you talking about, I love micro USB.
@BeardedTinker
@BeardedTinker 3 жыл бұрын
Me too, when I'm sober. 😂
@oudoulj
@oudoulj 2 жыл бұрын
Maybe you meant you had preferred USB-C ?
@stefanschrodl5506
@stefanschrodl5506 2 жыл бұрын
I'm having a bit of a hard time here. Freshly setup both the button and Mosquitto, when I listen to # in Mosquitto, the button show up e.g: Nachricht 4 empfangen auf shellies/shellybuttonvz/input_event/0 um 13:32: { "event": "S", "event_cnt": 10 } But entities are added to Home Assistant. Am I doing something wrong?
@BeardedTinker
@BeardedTinker 2 жыл бұрын
Are you using Shellies Discovery script? It needs this script if you are adding Shelly devices via MQTT to Home Assistant. github.com/bieniu/ha-shellies-discovery You need to follow few steps from here to get it working enable python_script, copy *.py file and add 2 automations to Home Assistant - if I remember correctly.
@thomaskeeling390
@thomaskeeling390 2 жыл бұрын
@@BeardedTinker This was missing from the video - very pleased to find the answer in the comments - many thanks
@billjuv6010
@billjuv6010 Жыл бұрын
@@BeardedTinker That would have been useful information a couple of hours ago (>; I’m a relatively new HA user and was trying to figure out why I only had one entity, and only three old devices connected to a MQTT… had me puzzled for way too long. I finally gave up and just started adding an automation to the button and then I could see the single, double, triple press choices. Easy peezy.
Shelly BLU Button1 - The Ultimate Shelly Controller!
9:35
Filipe Castilho
Рет қаралды 9 М.
Home Assistant How To - integrate Shelly IoT devices
20:58
BeardedTinker
Рет қаралды 64 М.
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 162 МЛН
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 70 МЛН
Master Home Assistant Templates: State Based Entities
38:39
SlackerLabs
Рет қаралды 27 М.
Best Smart Buttons for Home Assistant (WATCH before you BUY!)
20:18
Make It Work
Рет қаралды 101 М.
Everything You Need to Automate in Home Assistant
17:24
SlackerLabs
Рет қаралды 20 М.
Shelly i3 - many inputs, many actions
22:15
Csongor Varga
Рет қаралды 29 М.
PLEX MEDIA SERVER ON HOME ASSISTANT (with Network Storage Configuration)
15:45
Smart Home Australia
Рет қаралды 4,7 М.
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 15 МЛН
НЕ ПОКУПАЙ СМАРТФОН, ПОКА НЕ УЗНАЕШЬ ЭТО! Не ошибись с выбором…
15:23
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18
Top 50 Amazon Prime Day 2024 Deals 🤑 (Updated Hourly!!)
12:37
The Deal Guy
Рет қаралды 1,4 МЛН
Зачем ЭТО электрику? #секрет #прибор #энерголикбез
0:56
Александр Мальков
Рет қаралды 636 М.