Comments (8)
Hi,
please check by making a POST call:
https://.shelly.cloud/device/status?auth_key=&id=
There should be a 200 response with
{
"isok": true,
"data":{
"online": true,
"device_status":{
...
"tmp":{
"value": 0.5,
"units": "C",
"tC": 0.5,
"tF": 32.9,
"is_valid": true
},
from shelly_exporter.
Trying right now.
from shelly_exporter.
Looks like it works, I received a 200
...
{
"isok":true,
"data":{
"online":true,
"device_status":{
"unixtime":1675024595,
"time":"21:36",
"temperature_status":"Normal",
"actions_stats":{
"skipped":0
},
"ram_free":39676,
"cloud":{
"enabled":true,
"connected":true
},
"mqtt":{
"connected":false
},
"uptime":122171,
"fs_size":233681,
"wifi_sta":{
"connected":true,
"ssid":"Nivelles 2ghz",
"ip":"192.168.2.129",
"rssi":-80
},
"mac":"DC4F22608D2A",
"temperature":16.48,
"fs_free":150098,
"serial":2686,
"tmp":{
"tC":16.48,
"tF":61.67,
"is_valid":true
},
"relays":[
{
"ison":false,
"has_timer":false,
"timer_started":0,
"timer_duration":0,
"timer_remaining":0,
"overpower":false,
"source":"http"
}
],
"getinfo":{
"fw_info":{
"device":"shelly1pm-608D2A",
"fw":"20221108-153925\/v1.12.1-1PM-fix-g2821131"
}
},
"update":{
"status":"idle",
"has_update":false,
"new_version":"20221108-153925\/v1.12.1-1PM-fix-g2821131",
"old_version":"20221108-153925\/v1.12.1-1PM-fix-g2821131"
},
"inputs":[
{
"input":0,
"event":"",
"event_cnt":0
}
],
"meters":[
{
"power":0,
"overpower":0,
"is_valid":true,
"timestamp":1675030298,
"counters":[
0,
0,
0
],
"total":0
}
],
"overtemperature":false,
"_updated":"2023-01-29 21:11:37",
"ext_sensors":{
"temperature_unit":"C"
},
"ext_humidity":[
],
"ext_temperature":[
{
"hwID":"28aab0f64914018c",
"tC":2.19,
"tF":35.94
}
],
"ram_total":51272,
"cfg_changed_cnt":0,
"has_update":false
}
}
}
from shelly_exporter.
In your shelly-metrics.json is descibred where to find the export value, e.g.
"products": [
{
"type": "ht",
"export": {
"temperature": "data.device_status.tmp.value",
},
... means temperature will be read from "data --> device_status --> tmp --> value".
For Shelly1pm this is not valid.
Temp value can be found here: "data --> device_status --> temperature"
Your shelly-metrics.json should be like:
"export": {
"isok": "isok",
"temperature": "data.device_status.temperature",
"temperature_status": "data.device_status.temperature_status",
"uptime": "data.device_status.uptime",
"wifi_connected": "data.device_status.wifi_sta.connected",
"firmware": "data.device_status.getinfo.fw_info.fw",
"mac": "data.device_status.mac",
"updated": "data.device_status._updated"
},
from shelly_exporter.
from shelly_exporter.
It works indeed, thanks for the help ! Maybe we should add such thing in the README.
Metric: shelly_ht_info
- Exporter Result:
- Exporter Result 0:
- wifi_connected="true"
- updated="2023-01-30 07:01:33"
- isok="true"
- temperature="18.21"
- shelly_name="ht"
- temperature_status="Normal"
- firmware="20221108-153925/v1.12.1-1PM-fix-g2821131"
- mac="DC4F22608D2A"
- name="Serverrom"
- uptime="158611"
- prom desc: Desc{fqName: "shelly_ht_info", help: "Non-numeric data, value is always 1", constLabels: {}, variableLabels: [shelly_name name isok temperature battery has_update firmware mac updated]}
- prom metric type: 2
- prom metric value: 1
- prom label values: [ht Serverrom 1 18.21 20221108-153925/v1.12.1-1PM-fix-g2821131 DC4F22608D2A 2023-01-30 07:01:33]
Metric: shelly_ht_temperature
- Exporter Result:
- Exporter Result 0:
- temperature="18.21"
- shelly_name="ht"
- temperature_status="Normal"
- wifi_connected="true"
- updated="2023-01-30 07:01:33"
- isok="true"
- uptime="158611"
- firmware="20221108-153925/v1.12.1-1PM-fix-g2821131"
- mac="DC4F22608D2A"
- name="Serverrom"
- prom desc: Desc{fqName: "shelly_ht_temperature", help: "shellyht temperature", constLabels: {}, variableLabels: [shelly_name name]}
- prom metric type: 2
- prom metric value: 18
- prom label values: [ht Serverrom]
The thing is that the temperature value is too high compared to what I see on home.shelly.cloud
.
18.21
vs 5.5
! It doesn't seems to be a Farenheit/Celcius conversion issue.
Do you have any clue?
from shelly_exporter.
Do you have any clue @aexel90 ?
Should I add an offset here?
from shelly_exporter.
Don`t know
from shelly_exporter.
Related Issues (3)
- Cannot connect to shelly api HOT 4
- Nix package HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shelly_exporter.