Git Product home page Git Product logo

cz2's Introduction

cz2

Overview

This script provides an interface for monitoring and controlling a Carrier ComfortZone II HVAC system from Linux.

Pre-Requisites

You'll need an RS-485 connection to your ComfortZone II panel. You can use a serial-to-USB adapter connected locally (usually via /dev/ttyUSB0), or a serial-to-network adapter for remote management. Personally, I use a USR-W610 in Transparent Mode, connected via WiFi. The proper serial parameters are 9600,8,N,1.

Installation

You'll need the following non-core perl modules:

  • Data::ParseBinary
  • Digest::CRC
  • IO::Termios (only if using a local serial connection)
  • JSON
  • Params::Validate

Configuration

The cz2 script has two parameters which must be configured for your installation, and one optional parameter. The preferred method of configuration is to create a file called $HOME/.cz2 with the following syntax:

# Configuration file for cz2

# Connection string. This should be hostname:port if you're using
# a TCP connection, or /dev/ttyXXX for a serial connection.
#
connect = CHANGEME

# Zone count OR list of zone names. This can be an integer number
# of zones, or a comma-separated list of zone names. The zone
# names, if supplied, are only used for status display.
#
zones = First Floor, Second Floor, Basement

# Device ID number to use on the serial bus. This must be unique.
# OPTIONAL (defaults to 99) and you shouldn't need to change this
# unless you're running multiple instances of this script.
#
# id = 99

The following environment variables are also available:

  • CZ2_CONFIG: Alternate path to configuration file
  • CZ2_CONNECT: Overrides the connect parameter
  • CZ2_ZONES: Overrides the zones parameter
  • CZ2_ID: Overrides the id parameter

If both the CZ2_CONNECT and CZ2_ZONES environment variables are supplied, then the script won't attempt to read the configuration file.

Usage

Run cz2 for usage information. The set of features supported should be enough for most needs.

Carrier doesn't provide documentation on the protocol used by this system, but several people have helped with reverse-engineering. The most complete reference is currently on a wiki page of the CZII_to_MQTT project. I've discovered many additional fields and have contributed the details to the owner of that project for inclusion in the wiki.

Contributing

Most of the fields I've figured out have been using the czdiff script. I'll do my best to add more features upon request, especially if you can provide field-level details.

You can also help by testing this script with different configurations. I only have remote access, so the direct serial connection support is untested. Also, my system has only basic remote sensors in each zone, not Smart Sensors, so I haven't tested with those.

cz2's People

Contributors

ronisaacson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.