Skip to content
Discussion options

You must be logged in to vote

Certainly no need for splitting....

import json
sensors=json.load(tasmota.read_sensors())
print(sensors['BME280']['Temperature'])

To add your own sensor data to the usual places for sensors (including MQTT), you can create a driver in berry, where you can have methods to create JSON data in exactly the same way as built-in sensors.

Note: If you set Altitude, Tasmota will automatically include SeaPressure when the sensor delivers Pressure.

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@boozeman
Comment options

@s-hadinger
Comment options

@barbudor
Comment options

@sfromis
Comment options

@s-hadinger
Comment options

Answer selected by boozeman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants