r/Scriptable • u/giuliomagnifico • Aug 14 '24
Widget Sharing I created a widget to monitor my home's real-time energy consumption
I created a widget that uses the Shelly EM API to monitor my home power.
But there are a few downsides:
- You need a Shelly EM.
- You need to always be connected to your home LAN (I use WireGuard in split tunnel).
- It reads the value from http://<shellyIP>/status.
It’s a first version, and if anyone finds it useful, I'd be happy to share it.
Maybe it could also work with a remote URL if Shelly’s API exposes the status to a custom URL, but I’m not sure (I'm new to the Shelly brand).
32
Upvotes


5
u/td107 Aug 14 '24
Looks nice! But I think the biggest disadvantage is the refresh rate of the widget. This is not really real-time.
4
u/lollokara Aug 14 '24
Hi! Just a FYI I’ve done a very similar one to yours. Let me know if you are interested
2
u/Extreme-Network1243 Aug 14 '24
Awesome project and result. Few questions if you don’t mind. How is the quality of Shelly products? I’ve looked at getting the relays but the reviews are horrible so I’ve stuck with TP-Link (horrible support) products for HomeKit compatibility and automation but would really prefer a relay for several devices and forgo HomeKit or try to use a TP-Link device to control the relay. Which iOS/SDK did you use to make this? There are some additions to 18/18.1 that expand widget abilities and add functionality that 17 doesn’t have. Otherwise I applaud your creativity and ability to get this working
2
u/letsdoonething Aug 15 '24
looks very nice, but where’s the script?
1
u/seppelicous Aug 15 '24
Very nice, I also created something similar. How do you push the values to the device? My only solution was an ftp upload of several json files on my webspace. So real time is not even possible with solution- I am an absolute js beginner and was more than happy that it works, even least efficient