Coder Social home page Coder Social logo

homeassistant's Introduction

HomeAssistant Custom Component

Installation

  1. First, copy all the files into the Home Assistant location. It can now be installed either to the custom_components folder
/home/homeassistant/.homeassistant/custom_components

or the root folder (using virtual environment)

/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components

Components

LaCrosse

Since homeassistant release 0.58 the component is included.

https://home-assistant.io/components/sensor.lacrosse/

Fritzbox

Configuration

fritzbox:
  devices:
    - host: <FRITZBOX#1-IP>
      username: <SMARTHOME#1-USER>
      password: <SMARTHOME#1-PASSWORD>
    - host: <FRITZBOX#2-IP>
      username: <SMARTHOME#2-USER>
      password: <SMARTHOME#2-PASSWORD>
      :
    - host: <FRITZBOX#N-IP>
      username: <SMARTHOME#N-USER>
      password: <SMARTHOME#N-PASSWORD>

#Not needed any longer
#climate:
#  platform: fritzhome

#Not needed any longer
#switch:
#  - platform: fritzhome

homeassistant's People

Contributors

hthiery avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

homeassistant's Issues

component fails when fritzbox is restarted

Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 199, in async_update_ha_state
yield from self.async_device_update()
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 306, in async_device_update
yield from self.hass.async_add_job(self.update)
File "/usr/lib/python3.5/asyncio/futures.py", line 380, in iter
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/homeassistant/.homeassistant/custom_components/switch/fritzhome.py", line 61, in update
self._device.update()
File "/srv/homeassistant/lib/python3.5/site-packages/pyfritzhome/fritzhome.py", line 302, in update
node = self._fritz.get_device_element(self.ain)
File "/srv/homeassistant/lib/python3.5/site-packages/pyfritzhome/fritzhome.py", line 117, in get_device_element
elements = self.get_device_elements()
File "/srv/homeassistant/lib/python3.5/site-packages/pyfritzhome/fritzhome.py", line 112, in get_device_elements
plain = self._aha_request('getdevicelistinfos')
File "/srv/homeassistant/lib/python3.5/site-packages/pyfritzhome/fritzhome.py", line 89, in _aha_request
plain = self._request(url, params)
File "/srv/homeassistant/lib/python3.5/site-packages/pyfritzhome/fritzhome.py", line 40, in _request
rsp.raise_for_status()
File "/srv/homeassistant/lib/python3.5/site-packages/requests/models.py", line 935, in raise_for_status
raise HTTPError(http_error_msg, response=self)

Problem with FRITZ OS 6.51

Hi,

I have a problem with fritz 6490 Cable and OS version 6.51, a newer one is not possbile because of provider. Also I'am not able to use a smarthome user, only admin user works with other HomeAssistant components.

Thanks in advanced.

Error Message in Home Assistant:

2017-11-07 20:59:35 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform fritzhome
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 170, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
  File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
    raise self._exception
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/dominion/.homeassistant/custom_components/switch/fritzhome.py", line 27, in setup_platform
    device_list = fritz.get_devices()
  File "/home/dominion/.homeassistant/deps/lib/python3.6/site-packages/pyfritzhome/fritzhome.py", line 133, in get_devices
    device = FritzhomeDevice(self, node=element)
  File "/home/dominion/.homeassistant/deps/lib/python3.6/site-packages/pyfritzhome/fritzhome.py", line 239, in __init__
    self._update_from_node(node)
  File "/home/dominion/.homeassistant/deps/lib/python3.6/site-packages/pyfritzhome/fritzhome.py", line 272, in _update_from_node
    self.device_lock = bool(get_node_value(n, 'devicelock'))
  File "/home/dominion/.homeassistant/deps/lib/python3.6/site-packages/pyfritzhome/fritzhome.py", line 28, in get_node_value
    return get_text(node.getElementsByTagName(name)[0].childNodes)
IndexError: list index out of range

greetz,
Dominion

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.