GithubHelp home page GithubHelp logo

sv1c / broadlink_ac_mqtt_docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from broadlink-ac/broadlink_ac_mqtt_docker

0.0 0.0 0.0 40 KB

Docker version of Broadlink AC to Mqtt

License: MIT License

Dockerfile 100.00%

broadlink_ac_mqtt_docker's Introduction

broadlink_ac_mqtt_docker

Docker version of Broadlink AC to Mqtt

Usage

Here is a docker-compose snippet to help you get started creating a container.

docker-compose

Compatible with docker-compose v2+ schemas.

---
version: "2"
services:
  ac2mqtt:
    image: broadlinkac/broadlink_ac_mqtt
    container_name: ac2mqtt
    hostname: ac2mqtt
    network_mode: host
    restart: unless-stopped
    volumes:
      - ${CONFIG}/ac2mqtt:/config
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}

The container needs to use the host network to ensure it runs on the same subnet as your AC units.

Once the container starts you will need to edit your config.yml file with your MQTT host address and username/password.

After you have edited the config.yml file, restart your container.

You can then use a program like MQTT Explorer to watch for the aircon topic to start populating with your AC unit mac addresses.

MQTT Usage

to set values just publish to /aircon/mac_address/option/value/set new_value :

/aircon/b4430dce73f1/temp/set 20

MQTT values

Parameter Accepted Value Function
power ON or OFF Power on/off the AC unit
temp 16 to 32 Sets the AC temperature. Values are between 16 and 32 and in 0.5 increments. e.g. 20.5
mode AUTO, HEATING, COOLING, OFF Sets the mode of the AC unit
homeassist auto, heat, cool, off Same as mode but specifically for Home-Assistant. For Home-Assistant integration see home-assistant
fanspeed AUTO, LOW, MID, HIGH Sets the fans speed for the AC unit

Home-Assistant

AC2MQTT can be utilised with Home-Assistant using MQTT auto-discovery (https://www.home-assistant.io/docs/mqtt/discovery/)

To enable MQTT autodiscovery in your Home-Assistant configuration.yaml:

mqtt:
  discovery: true
  discovery_prefix: homeassistant
  

Edit your ac2mqtt config.yml file and ensure the following is under the mqtt section:

auto_discovery_topic: homeassistant

The auto_discovery_toipc must match the discovery_prefix in your Home-Assistant configuration.yaml.

latest version: 1.0.15

broadlink_ac_mqtt_docker's People

Contributors

liaan avatar wjbeckett 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.