Shelly Button 1 Overview (with House Assistant)

#Shelly #Button #Overview #House #Assistant

Shelly Button 1 in black and in white along with packaging in a Pinterest Pin format.

Even with all of the automation and voice management capabilities in my home, typically it’s best simply to have the ability to push a button to make one thing occur. That’s why I nonetheless have a distant management and have varied buttons just like the IKEA Trådfri and a few cheap 433MHz buttons to regulate LEDs, my irrigation system, and extra. All the time in the hunt for good button, I got here throughout the Shelly Button 1. I’m a fan of many different Shelly gadgets, particularly the Shelly relays. So how does this Shelly product measure up? Learn on to seek out out extra.

This web page incorporates affiliate hyperlinks. If you buy an merchandise utilizing an affiliate hyperlink I’ll obtain a small fee without charge to you. Associates don’t affect my suggestions. Learn my disclosures for extra info.

Shelly Button 1 Specs

Battery 400mAh Capability, 5V Micro USB Cost
Battery Life 3000 button presses earlier than recharge
Button press varieties Quick, Double Quick, Triple Quick, Lengthy
802.11 b/g/n
Wi-Fi 802.11 b/g/n
Wi-Fi Vary as much as 50 m outdoor, as much as 30 m indoors
Dimensions 45 mm x 45 mm x 16 mm
Protocols MQTT, CoIoT

The Shelly Button 1 comes with a 400mAh battery that’s supposed to last as long as 3000 button presses. That’s a fairly very long time.

Though this gadget solely has one button, it acknowledges 4 completely different button push varieties:

  • Quick Press
  • Double Quick Press
  • Triple Quick Press
  • Lengthy Press

You may configure how lengthy a brief press is and the way lengthy a protracted press is. Additionally, you possibly can configure the anticipated ready time between a number of press actions. You may assign every of those press varieties to an motion, which I’ll get to later.

Moreover, you possibly can disable the LED ring on the button, however I don’t suggest that. It’s an important indicator of when the button has efficiently executed its command.

The button is available in two colours, black and white.

2 Shelly Button 1 Devices, one black, and one white
Shelly Button 1 Overview (with House Assistant) 11

Shelly Button 1 setup

This Shelly setup is much like each different Shelly gadget I’ve arrange. First, you plug the gadget right into a micro USB adapter/charger (not provided). Then the Shelly Button 1 will enter Wi-Fi entry level mode. Utilizing a cellular gadget, connect with the entry level (which will likely be a reputation like shellybutton1-xxxxxxxxxxxx.).

At this level, you should utilize the Shelly App to configure the gadget, however I all the time go to the default IP tackle of Shelly gadgets — 192.168.33.1.

From right here you possibly can head to Web & Safety->WiFi Mode – Shopper and enter the credentials of your Wi-Fi community in order that the Shelly can join

WiFiSetupShelly
Shelly Button 1 Overview (with House Assistant) 12

I like to recommend both organising a static IP or utilizing a DHCP reservation through your router to provide it a constant IP tackle.

After your Shelly reboots it is able to go. There are a couple of configurations like button press period and time between button presses that you simply would possibly wish to configure. An important factor to configure is what occurs once you press the Shelly Button 1.

As you possibly can see from the display beneath, you possibly can enter 4 completely different actions for several types of button presses. These actions might be webhooks/URLs that trigger one thing else to occur.

ButtonPressUI
Shelly Button 1 Overview (with House Assistant) 13

I left these clean as a result of I will likely be utilizing House Assistant to create responses to those button presses.

Please observe that the Net UI solely stays up if the gadget is plugged into USB energy. So if you wish to make configuration adjustments, plug the gadget in.

Load WordPress Sites in as fast as 37ms!imp

Integration with House Assistant

There are two methods to combine this gadget with House Assistant: a local House Assistant integration and utilizing MQTT. Since I’ve two buttons, I made a decision to strive each implementations to see if I seen any variations.

Integration utilizing MQTT

MQTT integration requires you to have an MQTT Dealer, which might be arrange simply in a number of methods. Upon getting your MQTT dealer arrange, you should configure your Shelly Button 1 to connect with it. Simply go to Web & Safety->Superior – Developer Settings and scroll down a bit to allow MQTT, and enter the username, password, and server tackle of your MQTT dealer.

ShellyMQTT
Shelly Button 1 Overview (with House Assistant) 14

In House Assistant, you’ll want to make use of MQTT to arrange a battery sensor and set off actions. You may create a battery sensor with the next template:

sensor:
  - platform: mqtt
    title: "button-battery"
    state_topic: "shellies/shellybutton1-<DEVICEID>/sensor/battery"
    value_template: "{{ worth }}"
    unit_of_measurement: "%"
    icon: mdi:battery
    unique_id: <DEVICEID>

Keep in mind to switch <DEVICEID> with the precise gadget ID of your Shelly button, which you will discover within the Shelly Button net interface.

Now, to the vital half — triggering actions with the button. Right here’s an instance of an automation triggered by urgent the Shelly Button 1.

- id: 'toggle_office_light'
  alias: Toggle Workplace Gentle
  set off:
  - platform: mqtt
    matter: "shellies/shellybutton1-<DEVICEID>/input_event/0"
  situation:
      situation: template
      value_template: "{{ set off.payload_json.occasion == 'S' }}"
  motion:
  - service: gentle.toggle
    goal:
      entity_id: gentle.workplace
  mode: single

The code above will toggle the workplace gentle on and off each time the shelly receives a brief button press. For those who wished to make use of a protracted button press to set off the sunshine toggle you’ll change the value_template to:

"{{ set off.payload_json.occasion == 'L' }}"

Be aware the ‘S’ has been modified to an ‘L’ within the code above. For those who wished this automation to set off from two or three quick presses it might be ‘SS’ and ‘SSS’, respectively.

You may change the motion to be no matter you need it to be and you may arrange an automation for every button press sort.

Integration utilizing the House Assistant Shelly integration.

This methodology is less complicated than the MQTT methodology and doesn’t require something however an everyday House Assistant controller.

Earlier than you get began, you should configure the CoIoT connection of your Shelly Button. You do that by going to Web & Safety > Superior – Developer Settings and enabling it and getting into the tackle of your House Assistant set up:

Shelly Button 1 CoIoT settings
Shelly Button 1 Overview (with House Assistant) 15

Make sure to reboot your Shelly Button 1 after configuring CoIoT. Then you possibly can add the gadget to House Assistant as you’ll different gadgets. Go to Settings > Units & Companies and click on the ADD INTEGRATION button. Sort in Shelly after which enter the IP tackle of the Shelly Button 1.

The Shelly integration will create one entity — a battery sensor. So how do you set off actions for the Shelly Button 1 in House Assistant? The simplest method is to simply use the built-in House Assistant automation editor to spark off button-click occasions. Right here’s an automation I constructed to make use of the Shelly Button single quick click on to set off a panic button script I’ve:

Home Assistant Automation Creation screen.

Shelly Button 1 utilization

Utilizing the Shelly Button 1 is simple. You press the button and also you get the motion you laid out in House Assistant or within the Shelly interface. When on USB energy the motion is nearly instantaneous.

On battery energy, it might take a few seconds as a result of the gadget has to get up and connect with Wi-Fi first. However it isn’t that lengthy.

Once you first press the button you get a blue LED.

ButtonBlueRing

When the button has efficiently known as the configured motion the led will flip inexperienced for a second to point success.

ButtonGreenRing

I’ve discovered the button to be 100% dependable thus far.

Different Buttons

Now there are many different buttons available on the market that you can use. Listed below are a couple of:

I’ve the IKEA Trådfri and it’s nice. However, like the opposite Zigbee buttons above, you should have a Zigbee radio and Zigbee sign the place you wish to put the button. The Z-Wave buttons are usually a bit costlier and likewise require a Z-Wave radio.

The Flic 2 connects through Wi-Fi or Ethernet, however requires a hub and is rather more costly. If you’re in search of a Wi-Fi button, The Shelly Button 1 needs to be in your shortlist.

Last ideas

Do you could have the Shelly Button 1 or one other good button? Let me know which one and what you consider it within the feedback or on Twitter.

Leave a Reply

Your email address will not be published. Required fields are marked *