Options
All
  • Public
  • Public/Protected
  • All
Menu

HttpThermostat class get the temp from

import HttpThermostat from './http_thermostat.ts'

const myHttpThermostat = new HttpThermostat(settings)
myHttpThermostat.update()

Hierarchy

Index

Constructors

constructor

Properties

cooling

cooling: boolean = false

currentTemperature

currentTemperature: number

heating

heating: boolean = false

range

range: number

wantedTemperature

wantedTemperature: number

Methods

getCooling

  • getCooling(): boolean

getHeating

  • getHeating(): boolean

start

  • start(currentTemperature: number): void
  • set heating ore cooling

    Parameters

    • currentTemperature: number

      is the current temperature that is given by the sensor

    Returns void

update

  • update(): void
  • update the thermostat whit the new temperature value from the http temperature sensor

    Returns void

Generated using TypeDoc