Giter Site home page Giter Site logo

homeassistant-control4's Introduction

homeassistant-control4

Warning

This integration is no longer maintained and is likely broken on newer versions of Home Assistant.

Consider migrating to https://github.com/lawtancool/hass-control4, which is faster, supports the latest Home Assistant releases, and does not require a custom driver to be installed on the Control4 system.

These custom components for Home Assistant (https://www.home-assistant.io) allow you to integrate Control4 systems into Home Assistant. Currently, lights, thermostats, alarm systems, and media room volume control are supported.

How to use:

  • Install the Web2Way driver into your Control4 project using Composer Pro (2.9+ recommended): https://github.com/itsfrosty/control4-2way-web-driver (You may need your dealer to do this if you don't have access to the Control4 Composer Pro program)
  • Copy the custom_components into your ~/.homeassistant/ folder
  • Find the proxy_id of each Control4 device you want to integrate inside Composer Pro, and include them in your configuration.yaml
  • NOTE: If you have a lot of Control4 devices and you are experiencing large delays in executing actions, try randomizing your scan_interval, setting different devices to slightly different values; this should help prevent Home Assistant from overwhelming the Control4 controller with refresh requests. However, don't set this value too high, otherwise Control4 state changes will take a long time to be reflected inside Home Assistant.

Sample Home Assistant configuration.yaml entries:

base_url: The IP address of your Control4 controller + ":9000". (You should assign a static IP to your controller on your router)
proxy_id: The proxy ID of the Control4 device, found inside Composer Pro by hovering over the device in the project tree view.
name: The name that Home Assistant will use to identify the device.
scan_interval: How often to query the Control4 controller about the state of the device, in seconds.

Lights:

light:
  - platform: control4
    base_url: 'http://192.168.1.20:9000/'
    proxy_id: 14
    name: Piano Room
    scan_interval: 10

Thermostats:

climate:
  - platform: control4
    base_url: 'http://192.168.1.20:9000/'
    proxy_id: 220
    name: Downstairs
    scan_interval: 20

Alarm System:

alarm_control_panel:
  - platform: control4
    base_url: 'http://192.168.1.20:9000'
    proxy_id: 70
    name: DSC Alarm
    scan_interval: 10

Media volume control: (The proxy_id needs to be the ID of the room inside Composer Pro)

media_player:
  - platform: control4
    base_url: 'http://192.168.1.20:9000'
    proxy_id: 8
    name: Kitchen Speakers
    scan_interval: 10

Acknowledgements:

This is heavily based on work by itsfrosty: https://github.com/itsfrosty/homeassistant-control4

homeassistant-control4's People

Contributors

lawtancool avatar rellerton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

homeassistant-control4's Issues

Brightness bar doesn't show up

HA Core 0.107.6, latest pull of the homeassistant-control4 component. EA-3 running 3.1.2, C4-KD120 exposed. On/off switch works but I get no brightness bar.

Configuration snippet:

Integration error: c4 - Integration 'c4' not found.

I'm a bit of a noob - to home assistant and this type of coding in general - but whenver I add my code I get this error.

Please note my code:
c4:
base_url: 192.168.0.6
proxy_id: 720
name: Downlights
scan_interval: 10

Please clarify

I am not sure, where should I copy the files (files or folder?) from custom_components.
What path is it looking for?

Failed to call service homeassistant/restart. The system cannot restart because the configuration is not valid: Platform error climate.control4 - No module named 'homeassistant.components.control4.climate'

Help!!! Since Hassio update 0.118.0 Control 4 integration is broken

Sir,

I have been using your implementation for last one year. Since 0.118.0 update last night my control 4 integration is broken with below error for lights, climate and alarm. Please help.

2020-11-20 04:35:41 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.upstairs fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 474, in async_device_update
raise exc
File "/config/custom_components/control4_kr/climate.py", line 298, in async_update
yield from request.release()
TypeError: 'noop' object is not iterable
2020-11-20 04:35:41 ERROR (MainThread) [homeassistant.helpers.entity] Update for light.living_light fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 474, in async_device_update
raise exc
File "/config/custom_components/control4_kr/light.py", line 162, in async_update
yield from request.release()
TypeError: 'noop' object is not iterable

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.