GasSensor
Smart HomeNotices gases and smoke in the air. A tiny heated plate changes how well it conducts electricity when those gases touch it.
How you reach it
Section titled “How you reach it”The GasSensor class is reached through this attribute of home.
home.gas_sensor
Section titled “home.gas_sensor”Always there.
All the attributes of home are in its table.
Methods
Section titled “Methods”level()
Section titled “level()”How much gas or smoke the sensor feels, as a raw reading from 0 to 4095 (higher means more).
level() -> Optional[int]Used in examples: Web dashboard, Smart house