No sensor data via REST from Shelly for 3 days

Home Assistant OS
Core: 2025.7.1
Supervisor: 2025.07.1
Operation System : 16.0
Frontend: 20250702.1

Hello,

I haven’t received any current data for three days. The configuration has been running smoothly for a year. Even when I send the request via https, I get a response in the browser with all the data, but the entity always retains the value of 250, even after restarting HA. Can someone help me figure out what might be wrong here?

My configuration looks like this:

---------------------------------------- configuration.yaml -------------------------------------------

rest: !include rest.yaml

--------------------------------------------- rest.yaml -----------------------------------------------

Shelly Markise

------------------ Response over Https: --------------------------------------------

{“isok”:true,“data”:{“online”:false,“device_status”:{“getinfo”:{“fw_info”:{“device”:“shellyplug-s-xxxxxx”,“fw”:“20230913-113421/v1.14.0-gcb84623”}},“_updated”:“2025-07-09 11:50:10”,“meters”:[{“power”:249.85,“overpower”:0,“is_valid”:true,“timestamp”:1752069010,“counters”:[279.721,260.297,212.73],“total”:6366515}],“has_update”:false,“ram_free”:40900,“temperature”:35.4,“cloud”:{“enabled”:true,“connected”:true},“actions_stats”:{“skipped”:0},“unixtime”:1752053026,“wifi_sta”:{“connected”:true,“ssid”:“Lollipop_Guest”,“ip”:“192.168.179.70”,“rssi”:-40},“uptime”:7504747,“mqtt”:{“connected”:false},“fs_free”:166413,“time”:“13:50”,“tmp”:{“tC”:35.4,“tF”:95.72,“is_valid”:true},“overtemperature”:false,“ram_total”:52056,“fs_size”:233681,“mac”:“4C732539A1F2”,“relays”:[{“ison”:true,“has_timer”:false,“timer_started”:0,“timer_duration”:0,“timer_remaining”:0,“overpower”:false,“source”:“schedule”}],“update”:{“status”:“idle”,“has_update”:false,“new_version”:“20230913-113421/v1.14.0-gcb84623”,“old_version”:“20230913-113421/v1.14.0-gcb84623”,“beta_version”:“20231107-164219/v1.14.1-rc1-g0617c15”},“cfg_changed_cnt”:0,“serial”:7079}}}

Are you sure the method is a POST?
What tool did you use to get the JSON?

Please format code correctly for the forum with the </> button.

That JSON (once I fought my way through it manually, as I can’t use online tools due to the way it’s formatted) shows 249.9W rounded to one decimal place, so HA is doing what it’s told. The response also suggests it hasn’t seen an update since 9 July. Have you done anything with your network that might block the device from talking to the Shelly cloud?

Fixed the quotes, and used the template editor to show your config is interpreting it correctly:

I would have thought 249.85 would round to 249.9 but hey ho.

Why aren’t you using the Shelly integration?

1 Like

It’s purely a coincidence that the attached response showed 249.85 W. This is obviously misleading, which was not intended. Even if the response says, for example, 120 W, this is no longer updated. The reason I’m accessing the REST API is that the device is operated outside of my network, 8 km away, in the garden shed.

I just checked again via HTTPS, and it actually shows 249.85 W, and the last update was on July 9, 2025, at 11:50:10 AM. The problem seems to be with Shelly, as it’s not updating here. The displays in the Shelly app are fine, though. I’m now contacting them. Thanks for bringing this to my attention.

1 Like

Maybe they blocked you for calling them every 14 seconds?

I don`t think so because i get an answer. And it works now over 12 Month. We will see.

1 Like

I found the error. Shelly moved my devices to a new server. Now it’s working again.

1 Like