Options
All
  • Public
  • Public/Protected
  • All
Menu

Class App

A class that accepts values and sends the calculated values to the thermostat

Hierarchy

  • App

Index

Constructors

constructor

  • new App(): App

Properties

currentTemp

currentTemp: number

rangeTemp

rangeTemp: number

unit

unit: string

wantedTemp

wantedTemp: number

Methods

setupCurrentTemperature

  • setupCurrentTemperature(currentTemp: number, unit: string): boolean[]
  • A method that accepts values and calculates them with classes before sending them to the thermostat and returns the automation info

    Parameters

    • currentTemp: number

      Represents the value of the current temperature

    • unit: string

      Represents the types of temperature that is used to calculate

    Returns boolean[]

    A JSON string that represents the automation info

setupValues

  • setupValues(wantedTemp: number, rangeTemp: number, unit: string): void
  • A method that accepts values and sends them to the thermostat

    Parameters

    • wantedTemp: number

      Represents the value of the wanted temperature

    • rangeTemp: number

      Represents the value of the range were the temperature is free to move

    • unit: string

      Represents the types of temperature that is used to calculate

    Returns void

Generated using TypeDoc