Skip to main content

Shelly adds MQTT support for their WiFi switches

Shelly have added native support for their WiFi relay switches in version 1.3 officially released this week
Configure under Internet and Security > Advanced - Developer Settings and tick " Enable action execution via MQTT"

Once you add your MQTT broker IP and username/password if applicable, you can use an application like MQTT.fx to subscribe to "shellies/#" to discover all of the MQTT goodness coming from your device/s.

The MQTT reference library is available from the Shelly API page here.

For reference, below is my MQTT packages config for Home Assistant. Simply replace the device ID with yours. Note that on one of the Shelly2 relays, I've only configured one of the two relays.

Shelly1 on Amazon https://amzn.to/2Qdexag
Shelly2 on Amazon https://amzn.to/2Io5aSf

Comments

  1. bonsoir et merci à vous.

    pour configurer sur home assistant 10.0 une sonde de temperature DS8b20 sur un esp8266 + esp easy qui envoie à un mosquitto vers nodered installé comme module de home assistant

    mais j'ai un message :
    Cette entité ("sensor.temperature_cuisine") n'a pas d'ID unique, par conséquent ses paramètres ne peuvent pas être gérés à partir de l'interface utilisateur. Consultez le documentation pour plus de détails.

    ma config dans configuration.yaml
    ##### broker mosquitto #####
    mqtt:
    sensor:
    - name: "temperature exterieure"
    state_topic: "home/ESP_1/DS18b20/tempExt"

    ReplyDelete
    Replies
    1. mqtt:
      sensor:
      - name: "temperature exterieure"
      unique_id: temperature_exterieure
      state_topic: "home/ESP_1/DS18b20/tempExt

      Delete

Post a Comment

Popular posts from this blog

Using ESPEasy with Home Assistant via MQTT

Preface: I've just started playing around with Home Assistant on a Raspberry Pi and exploring the world of MQTT to control devices on the network. Learning curve is a bit steep but worth the effort as MQTT is very fast. The hardware and software tools I'm using are as follows: 2 x Sonoff relay units 2 x NodeMCU Boards ESPEasy firmware (must be version 121 or above as that contains the MQTT 'retain' flag option. Home Assistant software on Raspberry Pi2 MQTT Test Software: PC: MQTT.fx Android: MQTT Dashboard

My Notepad++ tricks when editing YAML files in Home Assistant

To comment out a whole section in one go: Highlight the text you want to comment out and use CTRL + Q. If you do this at the start of a line, it will only comment that line. CTRL + Q is toggle mode (comment on/off). CTRL + K will allow you to add multiple comments one after the other.

How to check what entities are filling up your Home Assistant database

If you use the Home Assistant MariaDB add-on, this tip will show you how to query the database so see what Home Assistant entity states are triggering the most, filling up your database. What were going to do: Install the phMyAdmin add-on for MariaDB. Query the MariaDB database. See what entity state changes have the most action. Paste the code below into the SQL query box:  select entity_id,count( * ) from states group by entity_id order by count ( * ) desc; And if you're using the internal home-assistant_v2.db instead, you can use the SQLite Web add-on to achieve the same thing.