Skip to content

Items Owfs_Thermostat

ggodart edited this page Jan 5, 2021 · 1 revision

Owfs_Thermostat

See original

SYNOPSIS

In your code module, instantate the Owfs_Thermostat class. Next, inform the Thermostat of the one-wire devices which control the various HVAC equipment, all of which are optional.

  add_thermometer ( "<device_id>", "<location>", zone );
  set_heat_relay  ( "<device_id>", "<location>");
  set_heat_sensor ( "<device_id>", "<location>", "<channel>");
  set_cool_relay  ( "<device_id>", "<location>");
  set_cool_sensor ( "<device_id>", "<location>", "<channel>");
  set_fan_relay   ( "<device_id>", "<location>");
  set_fan_sensor  ( "<device_id>", "<location>", "<channel>");

Usage:

  $thermostat = new Owfs_Thermostat ( );

  if ($Startup or $Reload) {
    $thermostat->add_thermometer ( "10.A930E4000800", "Sewing Room", 3 );
    $thermostat->add_thermometer ( "10.6D9EB1000800", "Kitchen", 1 );
    $thermostat->add_thermometer ( "10.4936E4000800", "Living Room", 1);
    $thermostat->add_thermometer ( "10.6474E4000800", "Master Bedroom", 2);
    $thermostat->add_thermometer ( "10.842CE4000800", "Guest Room", 3);
    $thermostat->set_heat_relay  ( "05.14312A000000", "Furnace" );
    $thermostat->set_heat_sensor ( "20.DB2506000000", "Furnace", "B");
    $thermostat->set_cool_relay  ( "05.F2302A000000", "Air Conditioner" );
    $thermostat->set_cool_sensor ( "20.DB2506000000", "Air Conditioner", "A");
    $thermostat->set_fan_relay   ( "05.14312A000000", "Air Fan" );
    $thermostat->set_cool_sensor ( "20.DB2506000000", "Air Fan", "C");
  }

DESCRIPTION

Use this module to create a software based thermostat control which is manipulated by the MisterHouse web browser. This library module interacts with the perl cgi scripts found in code/public/Owfs_hvac.pl. This cgi script needs to be copied to web/ia7/outside/Owfs_hvac.pl. You will need to update web/ia7/outside/hvac.stml to call Owfs_hvac.pl.

Requirements:

Download and install OWFS from http://www.owfs.org

INHERITS

Generic_Item

INI PARAMETERS

owfs_on_timer_value = 3 # minimum A/C compressor ON time 
owfs_off_timer_value = 3 # minimum A/C compressor OFF time

METHODS

AUTHOR

03/10/2007 Created by Jim Duda (jim@duda.tzo.com)

SEE ALSO

None

Clone this wiki locally