Hi all-
First post here, and I just want to say thank you to all of the devs working on this. Having used a variety of platforms with ESP’s/Arduino’s in the past, ESPHome is truly amazing.
So here’s my question, and it’s very possible I’m just thinking about this incorrectly as I’ve been using HASS.io and ESPHome for about a week.
I’m pulling data from an ESP using an SHT Temperature/Humidity sensor and using this in Node-Red, but the entity states appear to be coming in separately for humidity and temperature, and what I would like to do is send ONE single data object containing the humidity/temperature state from the ESP at a given interval.
I realize the vast majority of people want to use these separate values for different things and need them as separate entities/state changes, but I am actually logging this data into an influxDB table and I’d like to not deal with joining two asynchronous streams of data. (I’m looking to insert something like id: Sensor001, humidity: 56%, temperature: 35deg, time: Date.now().
Current code for pulling the data:
# SHT 35 Temp Humidity Sensor Monitoring
sensor:
- platform: sht3xd
temperature:
name: "Living Room Temperature"
id: "temperature"
humidity:
name: "Living Room Humidity"
id: "humidity"
address: 0x44
update_interval: 10s
I really just want to do something like:
if (id(temperature).state and id(humidity).state) {
return { id(temperature).state, id(humidity).state }
}
if that makes any sense.
Thank you!