Shelly Cloud - new Component? How to implement it? API is available

Looks like they already support the Shelly 1 and home assistant here.

http://shelly-api-docs.shelly.cloud/#shelly1-mongoose-os-application

Really worth watching:

1 Like

That’s great, but seems it needs to be flashed with the shelly1 Mongoose-OS application The video from @nickrout describes how to flash the Tosmota, which is great!

Using the video doesn’t that negate this entire thread since MQTT is already supported by HomeAssistant?

1 Like

What is great is that the manufacturer actually encourages and supports flashing other firmware, making all sorts of things possible.

1 Like

For those that want a simple way to use a Shelly 1 out of the box (with no flashing), this is one approach:

  - platform: command_line
    scan_interval: 2
    switches:
      counter_leds:
        command_on: '/usr/bin/curl -Ss "http://192.168.X.X/relay/0?turn=on" >>/tmp/foo 2>&1'
        command_off: '/usr/bin/curl -Ss "http://192.168.X.X/relay/0?turn=off" >>/tmp/foo 2>&1'
        command_state: '/usr/bin/curl -Ss "http://192.168.X.X/relay/0" 2>>/tmp/foo | grep ison.:true'

Change 192.168.X.X to match your devices IP address.

5 Likes

Thanks!
Would this work for shelly2 as well?

Fantastic, great

The API is the same. Change /relay/0 to /relay/1 for the second switch.

And now there’s this: https://gist.github.com/ispiropoulos/90a5f215e71f4dde635e3e3407fb5804

3 Likes

yes, great!

What a great mind the guy who wrote this :grin: Oops, that’s me :smiley: :yum::rofl:

7 Likes

awesome i will try this tonight whith the shelly2

Is there any advantage if the Shelly 1 over the Shelly 2?

Does the Shelly 2 support toggle physical light switches (rather than push button momentary switches)?

Does the Shelly 2 support tasmota?

Here’s how to integrate the shelly products into home assistant without changing their firmware: https://www.youtube.com/watch?v=E99-17XyyUg

3 Likes

Thanks. This is wonderful. Cant wait to try it out.
Anything to have in mind when using the roller function?

Hi, host is the IP address of the shelly, correct?

some from shelly was suggesting that a future release would support mqtt. that would be ideal if it’s true/it happens.

thanks a lot. Works great!!

Now support MQTT

http://shelly-api-docs.shelly.cloud/#mqtt-support-beta