Sense Collector provides a way of collecting real-time data from the Sense Energy Monitor. Includes Grafana dashboards for visualizations of detected devices and smart plugs and their wattage, voltage, and amp utilization.
Great script!
Unfortunately, for some reason my setup stopped working (it works 1/2 day and stops after that) and I have been trying to scratch my head to find out where the issue is.
My setup (all inside docker instance):
InfluxDB 180
Chronograf (to setup the sense db on influxDB for the first time)
Grafana Private Data Source Connect (PDC) Agent (to be able to send the report to Grafana from my own network)
payload={"voltage":[248.2037353515625],"frame":17049350,"devices":[{"id":"always_on","name":"Always On","icon":"alwayson","tags":{"DefaultUserDeviceType":"AlwaysOn","DeviceListAllowed":"true","TimelineAllowed":"false","UserDeleted":"false","UserDeviceType":"AlwaysOn","UserDeviceTypeDisplayString":"Always On","UserEditable":"false","UserMergeable":"false"},"attrs":[],"w":318},{"id":"unknown","name":"Other","icon":"home","tags":{"DefaultUserDeviceType":"Unknown","DeviceListAllowed":"true","TimelineAllowed":"false","UserDeleted":"false","UserDeviceType":"Unknown","UserDeviceTypeDisplayString":"Unknown","UserEditable":"false","UserMergeable":"false"},"attrs":[],"w":140.02094},{"id":"solar","name":"Solar","icon":"solar_alt","tags":{"DefaultUserDeviceType":"Solar","DeviceListAllowed":"false","TimelineAllowed":"false","UserDeleted":"false","UserDeviceType":"Solar","UserDeviceTypeDisplayString":"Solar","UserEditable":"false","UserMergeable":"false"},"attrs":[],"w":6.2918267}],"deltas":[],"defaultCost":29.65,"channels":[458.02093505859375],"hz":50.01411437988281,"w":458.02093505859375,"c":13,"solar_w":6.2918267250061035,"grid_w":452,"solar_c":0,"_stats":{"brcv":1699989443.435617,"mrcv":1699989443.552,"msnd":1699989443.552},"aux":{"solar":[-6.2918267250061035]},"power_flow":{"solar":["home"],"grid":["home"]},"solar_pct":1,"d_w":458,"d_solar_w":6,"epoch":1699988873} type=realtime_update
sense-collector: poll_check=23
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 230 0 0 100 230 0 3432 --:--:-- --:--:-- --:--:-- 3432
HTTP/1.1 204 No Content
Content-Type: application/json
Request-Id: 706535bb-8322-11ee-b5c1-02420a000302
X-Influxdb-Build: OSS
X-Influxdb-Version: 1.8.0
X-Request-Id: 706535bb-8322-11ee-b5c1-02420a000302
Date: Tue, 14 Nov 2023 19:17:23 GMT
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 246 0 0 100 246 0 3727 --:--:-- --:--:-- --:--:-- 3727
and sometimes showing error 400 bad request too:
HTTP/1.1 400 Bad Request
Content-Type: application/json
Request-Id: 7cd1b35c-8324-11ee-87fc-02420a000302
X-Influxdb-Build: OSS
X-Influxdb-Error: partial write: unable to parse 'sense_mains,leg=L2 voltage= 1699989750': missing field value unable to parse 'sense_mains,leg=L2 watts= 1699989750': missing field value dropped=0
X-Influxdb-Version: 1.8.0
X-Request-Id: 7cd1b35c-8324-11ee-87fc-02420a000302
Date: Tue, 14 Nov 2023 19:32:04 GMT
Content-Length: 192
error=partial write: unable to parse 'sense_mains,leg=L2 voltage= 1699989750': missing field value
unable to parse 'sense_mains,leg=L2 watts= 1699989750': missing field value dropped=0
I have also tried to re-authenticate using "./generate_docker-compose.sh" command and use the new token too, unfortunately, still showing the same http 204 result
Hi,
Great script! Unfortunately, for some reason my setup stopped working (it works 1/2 day and stops after that) and I have been trying to scratch my head to find out where the issue is.
My setup (all inside docker instance):
Environment variable used:
Error logs:
and sometimes showing error 400 bad request too:
InfluxDB log also stated the same:
I have also tried to re-authenticate using "./generate_docker-compose.sh" command and use the new token too, unfortunately, still showing the same http 204 result
Is there something that I missed?
Thank you