Giter Site home page Giter Site logo

autosteve / esphome-panasonic-ac Goto Github PK

View Code? Open in Web Editor NEW

This project forked from domistyle/esphome-panasonic-ac

1.0 0.0 0.0 11.51 MB

Open source alternative for Panasonic air condition wifi adapters that works locally without the Comfort Cloud

License: MIT License

C++ 92.52% Python 7.48%

esphome-panasonic-ac's Introduction

Overview

An open source alternative for the Panasonic wi-fi adapter that works locally without the cloud.

Features

  • Control your AC locally via Home Assistant, MQTT or directly
  • Instantly control the AC without any delay like in the Comfort Cloud app
  • Receive live reports and state from the AC
  • Uses the UART interface on the AC instead of the IR interface
  • Provides a drop-in replacement for the Panasonic DNSK-P11 and the CZ-TACG1 wifi module

Supported hardware

This library works with both the CN-CNT port and the CN-WLAN port. CN-WLAN is only available on newer units. Either port can be used on units that have both ports regardless of the usage of the other port (ie. it is possible to leave the DNSK-P11 connected to CN-WLAN and connect the ESP to CN-CNT).

Works on the ESP8266 but ESP32 is preferred for the multiple hardware serial ports.

Requirements

  • ESP32 (or ESP8266) (supported by ESPHome)
  • 5V to 3.3V bi-directional Logic Converter (minimum 2 channels, available as pre-soldered prototyping boards)
  • Female-Female Jumper cables
  • Soldering iron
  • Wires to solder from Logic converter to ESP
  • Heat shrink
  • ESPHome 2022.5.0 or newer
  • Home Assistant 2021.8.0 or newer

Notes

  • Make sure to disconnect mains power before opening your AC, the mains contacts are exposed and can be touched by accident!
  • Do not connect your ESP32/ESP8266 directly to the AC, the AC uses 5V while the ESPs use 3.3V!
  • While installation is fairly straightforward I do not take any responsibility for any damage done to you or your AC during installation
  • The DNSK-P11 and the CZ-TACG1 use different types of connectors, make sure to connect to the correct one

Software installation

This software installation guide assumes some familiarity with ESPHome.

  • Pull this repository or copy the ac.yaml.example from the root folder
  • Rename the ac.yaml.example to ac.yaml
  • Uncomment the type field depending on which AC protocol you want to use
  • Adjust the ac.yaml to your needs
  • Connect your ESP
  • Run esphome ac.yaml run and choose your serial port (or do this via the Home Assistant UI)
  • If you see the handshake messages being sent (DNSK-P11) or polling requests being sent (CZ-TACG1) in the log you are good to go
  • Disconnect the ESP and continue with hardware installation

Setting supported features

Since Panasonic ACs support different features you can comment out the lines at the bottom of your ac.yaml:

  # Enable as needed
  # eco_switch:
  #   name: Panasonic AC Eco Switch
  # nanoex_switch:
  #   name: Panasonic AC NanoeX Switch
  # mild_dry_switch:
  #   name: Panasonic AC Mild Dry Switch
  # econavi_switch:
  #   name: Econavi switch
  # current_power_consumption:
  #   name: Panasonic AC Power Consumption

In order to find out which features are supported by your AC, check the remote that came with it. Please note that eco switch and mild dry switch are not supported on DNSK-P11.

Enabling unsupported features can lead to undefined behavior and may damage your AC. Make sure to check your remote or manual first. current_power_consumption is just as ESTIMATED value by the AC

Upgrading from 1.x to 2.x

Upgrade instructions

Hardware installation

Hardware installation for DNSK-P11

Hardware installation for CZ-TACG1

esphome-panasonic-ac's People

Contributors

autosteve avatar domistyle avatar jesserockz avatar blacklizard avatar sunsetdk avatar toreamun avatar trsqr avatar jmichiel avatar jnicolson avatar

Stargazers

 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.