Skip to content

Release 0.2.2 Beta 3

Pre-release
Pre-release
Compare
Choose a tag to compare
@hakana hakana released this 03 Mar 23:29

GitHub Releases

Note

This beta has big changes, so be careful not to instal it on a critical system.

Changes

  • Add support for Shelly Motion
  • Accept Shelly Button 1 that identifies it with SHBTN-2 (not tested)
  • Add MQTT support client/broker modes (see more below)
  • Add support for external sensors using an extender to Shelly 1/1PM
  • Add support for Shelly Plug 1L
  • pyShelly is updated to support other plugins (Python 2.7). Hopefully, this will not affect this plugin.

Fixes

  • Fixed a bug causing TCP connections to stay in TIME_WAIT state
  • Change unit from lux to lx

MQTT Support

MQTT support is added to two different modes that can run in parallel.
You can run CoAP and MQTT at the same time and add Shelly devices using CoAP, REST and/or MQTT.
The benefits with MQTT is that it working with VLANs and network equipment that not support CoAP/igmp. The backside it that MQTT can't be enabled in same time as device is connected to Shelly Cloud, except for Shelly H&T.

Connect to an MQTT broker like mosquito etc

Specifying the address and login to your MQTT broker to make ShellyForHass automatically detect your devices and create entities for them in HA. You must also configure your Shelly devices also to connect to this MQTT broker.

shelly:
  mqtt_server_host: "192.168.1.100"
  mqtt_server_port: "1883" #Default 1883
  mqtt_server_username: "user"
  mqtt_server_password: "password"

Build-in MQTT server

By configuring the mqtt_port the plugin starts listening for clients (Shelly devices) to connect to that port. It can be configured in the integration GUI or in config.yaml depending on how it is installed in your system. Please do not use port 1883 for this to avoid collission with other MQTT brokers.

shelly:
   mqtt_port: 1888

In the Shelly config, you only have to enter the server address to point to the IP of HA and the port specified above in the config. This is just a simple MQTT server without authentication. So do not publish it on public networks etc.
image