Homey
  • Homey Automations
  • Aggregated state
    • Person presence
      • Geofency and webhooks
    • Home state
    • Room and floor presence v2
    • Room and floor presence v1
    • Time table
    • Dark or bright
    • TV
    • Ventilation
      • CO2
      • Humidity bathrooms
  • Lighting
    • Scenes
    • Scene activations
  • Rooms
    • Childrens room
    • Guest room
    • Bathrooms
  • Advanced API usage
    • Getting a bearer token
  • Battery
    • Battery tracking
  • Custom integrations
    • Influxdb and Grafana
    • Flexit ventilation
    • Water metering
    • Telia data plan
    • Trondheim folkebibliotek
    • SBanken
    • Badetemperatur
    • Is it rainy? (yr.no)
  • Music
    • Music
  • Voice
    • Setup
    • Overview
Powered by GitBook
On this page

Was this helpful?

  1. Aggregated state

Ventilation

PreviousTVNextCO2

Last updated 5 years ago

Was this helpful?

I have a logic boolean variable vent which should result in ventilation running on high if true, and medium if false.

Then I use logic like:

if (home) {
    if (vent) {
        fanmode = "High"
    } else {
        fanmode = "Medium"
    }
} else {
    fanmode = "Low"
}

The vent variable should be true if either there is a high CO2 level is high or there is high humidity in the bathroom.

The flow for updating the aggregated vent variable goes like this (and there is a duplicated trigger flow for each of the vent-.. variables.