Hi,
Sometimes I have my difficulties finding the basics in the documentation. Instead of a code example feel free to point me into the right direction in the documentation
I have a BME680 sensor that measures the air pressure:
sensor:
- platform: bme680
temperature:
id: bme680_temperature
name: "BME680 Temperature"
pressure:
id: bme680_pressure
name: "BME680 Pressure"
humidity:
id: bme680_humidity
name: "BME680 Humidity"
Then there is a SCD4x sensor which allow to configure a pressure compensation:
sensor:
- platform: scd4x
co2:
name: "Workshop CO2"
temperature:
name: "Workshop Temperature"
humidity:
name: "Workshop Humidity"
ambient_pressure_compensation: ?
I haven’t found a way to set the value to bme680_pressure
. I tried the following:
ambient_pressure_compensation: id(bme680_pressure)
ambient_pressure_compensation: id(bme680_pressure).state
ambient_pressure_compensation:
lambda: |-
return id(bme680_pressure)
ambient_pressure_compensation:
lambda: |-
return id(bme680_pressure).state
What is the right way to do it?