Comments (5)
That nil
could be a symptom of invalid JSON, but you did not show the output from tasmota.read_sensors()
without also doing the json.load()
.
from tasmota.
Hi.
I forgot to mention that. tasmota.read_sensors()
without json.load()
works properly.
import json
var sensors=tasmota.read_sensors()
print(sensors)
from tasmota.
Indeed. There is an invalid JSON output.
This is the output generated for the code below:
var sensors=tasmota.read_sensors()
print(sensors)
{"Time":"2024-05-01T16:20:04","ANALOG":{"A1":2536,"A2":974},"BME680":{"Temperature":31.5,"Humidity":100.0,"DewPoint":31.5,"Pressure":967.6,"Gas":46.99},"SGP40":{"VOC_Raw":28304,,"TVOC":235,},"Custom":{"Battery Voltage":4.10},"PressureUnit":"hPa","TempUnit":"C"}
from tasmota.
Yeah, there was an error in the driver, producing too many commas. Fixed a month ago in #21084
If you upgrade to the development build, the fix is included.
Beware that your "Custom" sensor produces a JSON key with a space. While this is not technically invalid, it can cause trouble with some tools. Hence, this style is generally avoided.
from tasmota.
Closing since already fixed in development branch
from tasmota.
Related Issues (20)
- Events and arrays with mqtt
- Compiling tasmota32 fails
- KNX Support : Latest commit in development branch introduced a regression when using DHT11 sensor HOT 2
- tasmota32 freezing after displaytext more than 128 characters HOT 1
- Display SSD1306 not Working after Upgrade to Tasmota 14.0.0 an Universal Driver HOT 16
- Matter 1.3 - support for energy monitoring HOT 1
- Confict warning in xsnss_53_sml.ino HOT 5
- Deep sleep with timers can wake multiple times due to clock drift.
- Domotixz IDX funktioniert mit 14-0-0 nicht mehr HOT 1
- Shutter + tilt matter device causes Tasmota to hang HOT 5
- Bluetooth BT BLE devives not recognized / found by Tasmota @ V 14.0.0 HOT 21
- Shutters hang + reset HOT 2
- Sonoff 4CH - every 3 seconds tele information on log HOT 1
- Telegram sending error on 14.0.0.1 (and master 14.0.0 also) HOT 7
- Guru Mediation on using ufsserve inside autoexe.be HOT 1
- ESP32 device hang / lagging like hell after upgrade to 14.0.0.1 dev HOT 7
- SD Card access causes crash in development branch, but not in release branch (CAUSED BY WATCHDOG - see below) HOT 6
- No sound after SetOption111 switching
- Send JSON to MQTT with Tasmota not working HOT 1
- Going to "Configure Wifi" causes main loop hang and watchdog trigger
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 tasmota.