Closed Marioheld closed 8 years ago
I added some instructions to the readme file. Be aware: You are user #2. Welcome :-) I have not tested with the current version of pyhomematic (maybe I will do this tonight). In pyhomematic just a handful of HM device types are maintained (could be easily extended).
Happy for any contribution...
Thank you for your help. I got pyhomematic working and HA also recognizes the homematic component. But the component two issues.
HA Logger Error Message
70-01-01 01:00:14 pyhomematic._server: Failed to initialize proxy
70-01-01 01:00:14 pyhomematic: Failed to start server
70-01-01 01:00:14 pyhomematic._server: Failed to deregister proxy
Just tried it myself with the current version of pyhomematic and it is working just fine for me. I have never encountered a 'Error: "str" has no get attribute' issue. Maybe something with your configuration is not right?
To be more specific. I use Homeassistant 0.18.2 with homegear 0.5.25-1 localy on a Raspberry Pi 2 on Raspbian GNU/Linux 8.
70-01-01 01:00:16 homeassistant.components.updater: Could not contact PyPI to check for updates
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 516, in urlopen
body=body, headers=headers)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 304, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 724, in _validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 237, in connect
ssl_version=resolved_ssl_version)
File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 123, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3.4/ssl.py", line 364, in wrap_socket
_context=self)
File "/usr/lib/python3.4/ssl.py", line 577, in __init__
self.do_handshake()
File "/usr/lib/python3.4/ssl.py", line 804, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
16-04-28 21:58:02 homeassistant.bootstrap: Error during setup of component homematic
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 158, in _setup_component
if not component.setup(hass, config):
File "/home/pi/.homeassistant/custom_components/homematic.py", line 72, in setup
local_ip = config[DOMAIN].get(LOCAL_IP)
AttributeError: 'str' object has no attribute 'get'
The homematic Plugin is in /home/pi/.homeassistant/custom_components/ and the config in /home/pi/.homeassistant/:
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# C for Celsius, F for Fahrenheit
temperature_unit: C
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Europe/Berlin
...
homematic:
local_ip:"127.0.0.1"
local_port:8070
remote_ip:"127.0.0.1"
remte_port:2001
autodetect:"True"
Here are some ideas:
Tell me if that helps...
My Homeassistant Folder has no components subfolder. Only a deps folder where i think the components are. But when i added the homematic component to this folder then HA wont find it. So creating the custom_components and putting homematic in there worked for me except for the problems above mentioned. Is there a another folder for HA?
Is there the file 'configuration.yaml' in the folder you are refering to? If so it is not the folder you need to look for. What is your OS?
I am using an Raspberry Pi 2 with Raspbian GNU/Linux 8 "Raspbian Jessie".
I think that the folder is the right one.
EDIT
Thought that maybe pyhomematic cant finish so the return True of setup(hass, config) function never get called. So i tried to insert "return True" on the top of Setup(hass, config) and the error not showed up.
So the new log:
16-05-05 11:25:35 homeassistant.core: BusHandler:Exception doing job Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/homeassistant/core.py", line 801, in job_handler func(arg) File "/usr/local/lib/python3.4/dist-packages/homeassistant/core.py", line 265, in onetime_listener listener(event) TypeError: stop() takes 0 positional arguments but 1 was given
But i think this is not homematic related. So time to figure out what pyhomematic breaks.
Your files are in the user specific/custom folders. For other extensions this would be the right location but not for homematic. Please put the files in:
/usr/local/lib/python3.4/dist-packages/homeassistant/components/
Depending on your OS (I use Debian) or the version of python (this is python 3.4) the location could be different. A could approach might be to search for 'alexa.py'. This file should be in the location you are looking for.
Copied the component to the filepath you mentioned. Now the log shows error messages from pyhomematic. So we male progress.
70-01-01 01:00:18 pyhomematic._server: Failed to initialize proxy
70-01-01 01:00:18 pyhomematic: Failed to start server
70-01-01 01:00:18 pyhomematic._server: Failed to deregister proxy
Could you please set the loglevel of HA to debug (or be more specific)? Instructions on that can be found here: https://home-assistant.io/components/logger/ How I would set it:
logger:
default: critical
logs:
homeassistant.components: debug
pyhomematic: debug
Also, just to ensure it does not lead to problems, please set the autodetect-option to False. It's not fully supported yet, so enabeling it could lead to unexpected results.
Another thought: is there any firewall configured? if the command iptables-save
produces output on the raspbian-shell, then there is.
As you have pointed out, pyhomematic by itself is working. Can you verify this by doing any interaction with a device? Please use example.py, modify it so it does something useful for you, and set the loglevel to DEBUG in line 4. This way you will get debug-output with this test-script.
Essentially "Failed to initialize proxy" can only occur if for some reason pyhomematic is not able to connect to your Homegear. So you could also check the homegear logs for any hints on why it does not work for you.
Changed the HA loglevel to debug. New Output after RPi reboot:
16-05-08 19:21:01 pyhomematic: create_server: Creating server object
16-05-08 19:21:01 pyhomematic._server: ServerThread.__init__
16-05-08 19:21:01 pyhomematic._server: Creating proxy. Connecting to http://127.0.0.1:2001
16-05-08 19:21:01 pyhomematic._server: RPCFunctions.__init__
16-05-08 19:21:01 pyhomematic._server: RPCFunctions.__init__: devices_raw = []
16-05-08 19:21:01 pyhomematic._server: ServerThread.__init__: Setting up server
16-05-08 19:21:01 pyhomematic._server: ServerThread.__init__: Registering RPC functions
16-05-08 19:21:01 pyhomematic._server: Starting server at http://127.0.0.1:7080
16-05-08 19:21:01 pyhomematic._server: ServerThread.proxyInit: init(http://127.0.0.1:7080, 'pyhomematic')
16-05-08 19:21:01 pyhomematic._server: Failed to initialize proxy
16-05-08 19:21:01 pyhomematic: Failed to start server
16-05-08 19:21:01 pyhomematic:
16-05-08 19:21:01 pyhomematic._server: ServerThread.stop: Deregistering proxy
16-05-08 19:21:01 pyhomematic._server: Failed to deregister proxy
16-05-08 19:21:01 pyhomematic._server: Shutting down server
16-05-08 19:21:01 pyhomematic._server: ServerThread.stop: Stopping ServerThread
16-05-08 19:21:01 pyhomematic._server: Server stopped
16-05-08 19:21:07 homeassistant.components.recorder: Running query UPDATE recorder_runs SET end=?, closed_incorrect=1
WHERE end IS NULL
16-05-08 19:21:08 homeassistant.components.http: Starting web interface at http://0.0.0.0:8123
16-05-08 19:21:08 homeassistant.components.recorder: Running query INSERT INTO recorder_runs (start, created, utc_offset)
VALUES (?, ?, ?)
16-05-08 19:21:08 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:08 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:08 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:08 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:08 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:08 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:08 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:21:09 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:09 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:09 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:09 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:09 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:09 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:21:09 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:09 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:09 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:09 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:09 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:09 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:09 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:21:09 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:09 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:09 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:10 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:30 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:30 homeassistant.components.discovery: Found new service: philips_hue ('Philips hue (192.168.178.84)', 'http://192.168.178.84:80/')
16-05-08 19:21:30 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:21:30 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:30 homeassistant.components.discovery: Found new service: sonos 192.168.178.63
16-05-08 19:21:30 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:31 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:31 homeassistant.components.discovery: Found new service: sonos 192.168.178.78
16-05-08 19:21:31 homeassistant.components.discovery: Found new service: DLNA http://192.168.178.78:1400/xml/device_description.xml
16-05-08 19:21:31 homeassistant.components.discovery: Found new service: DLNA http://192.168.178.63:1400/xml/device_description.xml
16-05-08 19:21:31 homeassistant.components.discovery: Found new service: DLNA http://192.168.178.1:49000/MediaServerDevDesc.xml
16-05-08 19:21:31 homeassistant.components.discovery: Found new service: DLNA http://192.168.178.38:50001/desc/device.xml
16-05-08 19:21:31 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:31 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:31 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:31 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:31 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:31 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:31 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:31 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:31 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:21:32 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:33 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:21:33 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:33 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:21:33 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:33 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:21:33 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:21:33 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:21:35 homeassistant.components.http: "GET /api/stream?api_password=no_password_set&restrict=state_changed,component_loaded,service_registered HTTP/1.1" 200 -
16-05-08 19:21:35 homeassistant.components.http: "GET /api/bootstrap HTTP/1.1" 200 -
16-05-08 19:22:14 homeassistant.components.http: "GET /api/error_log HTTP/1.1" 200 -
16-05-08 19:22:30 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:22:30 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:23:30 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:23:30 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:23:50 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:23:51 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:24:00 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:24:00 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:24:30 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:24:30 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:25:30 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:25:30 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:26:30 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:26:30 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:27:30 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:27:30 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:28:00 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:28:00 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:28:30 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:28:30 homeassistant.components.recorder: Running query
INSERT INTO states (
entity_id, domain, state, attributes, last_changed, last_updated,
created, utc_offset, event_id)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
16-05-08 19:29:08 homeassistant.components.http: "GET / HTTP/1.1" 200 -
16-05-08 19:29:08 homeassistant.components.http: "GET /static/favicon-192x192.png HTTP/1.1" 200 -
16-05-08 19:29:08 homeassistant.components.http: "GET /static/webcomponents-lite.min.js HTTP/1.1" 200 -
16-05-08 19:29:08 homeassistant.components.http: "GET /static/frontend-ffd8a1bde5ba13f300c3d6ad32036526.html HTTP/1.1" 200 -
16-05-08 19:29:08 homeassistant.components.http: "GET /static/favicon.ico HTTP/1.1" 200 -
16-05-08 19:29:10 homeassistant.components.http: "GET /static/mdi-af8a531f1c2e477c07c4b3394bd1ce13.html HTTP/1.1" 200 -
16-05-08 19:29:10 homeassistant.components.http: "GET /api/bootstrap HTTP/1.1" 200 -
16-05-08 19:29:10 homeassistant.components.http: "GET /static/fonts/roboto/Roboto-Medium.ttf HTTP/1.1" 200 -
16-05-08 19:29:10 homeassistant.components.http: "GET /static/fonts/roboto/Roboto-Light.ttf HTTP/1.1" 200 -
16-05-08 19:29:10 homeassistant.components.http: "GET /static/fonts/roboto/Roboto-Bold.ttf HTTP/1.1" 200 -
16-05-08 19:29:10 homeassistant.components.http: "GET /static/fonts/roboto/Roboto-Thin.ttf HTTP/1.1" 200 -
16-05-08 19:29:10 homeassistant.components.http: "GET /static/fonts/roboto/Roboto-Regular.ttf HTTP/1.1" 200 -
16-05-08 19:29:10 homeassistant.components.http: "GET /static/fonts/roboto/Roboto-Black.ttf HTTP/1.1" 200 -
16-05-08 19:29:10 homeassistant.components.http: "GET /api/stream?api_password=no_password_set&restrict=state_changed,component_loaded,service_registered HTTP/1.1" 200 -
16-05-08 19:29:11 homeassistant.components.http: "GET /static/images/card_media_player_bg.png HTTP/1.1" 200 -
16-05-08 19:29:16 homeassistant.components.http: "GET /api/error_log HTTP/1.1" 200 -
Failed. So restart trying to restart HA manualy:
16-05-08 19:29:57 pyhomematic: create_server: Creating server object
16-05-08 19:29:57 pyhomematic._server: ServerThread.__init__
16-05-08 19:29:57 pyhomematic._server: Creating proxy. Connecting to http://127.0.0.1:2001
16-05-08 19:29:57 pyhomematic._server: RPCFunctions.__init__
16-05-08 19:29:57 pyhomematic._server: RPCFunctions.__init__: devices_raw = []
16-05-08 19:29:57 pyhomematic._server: ServerThread.__init__: Setting up server
16-05-08 19:29:57 pyhomematic._server: ServerThread.__init__: Registering RPC functions
16-05-08 19:29:57 pyhomematic._server: Starting server at http://127.0.0.1:7080
16-05-08 19:29:57 pyhomematic._server: ServerThread.proxyInit: init(http://127.0.0.1:7080, 'pyhomematic')
16-05-08 19:29:57 pyhomematic._server: Proxy initialized
16-05-08 19:29:58 pyhomematic._server: RPCFunctions.listDevices: interface_id = pyhomematic, _devices_raw = []
16-05-08 19:29:58 pyhomematic._server: RPCFunctions.newDevices: interface_id = pyhomematic, dev_descriptions = [{'PARAMSETS': ['MASTER'], 'FLAGS': 1, 'FAMILY': 0, 'RF_ADDRESS': 2786260, 'PHYSICAL_ADDRESS': 2786260, 'FIRMWARE': '2.5', 'VERSION': 16, 'ID': 1, 'TYPE_ID': 172, 'TYPE': 'HM-ES-PMSw1-Pl', 'ADDRESS': 'LEQ0539396', 'RX_MODE': 1, 'INTERFACE': 'VBC9165970', 'CHILDREN': ['LEQ0539396:0', 'LEQ0539396:1', 'LEQ0539396:2', 'LEQ0539396:3', 'LEQ0539396:4', 'LEQ0539396:5', 'LEQ0539396:6'], 'ROAMING': 0, 'CHANNELS': [0, 1, 2, 3, 4, 5, 6], 'PARENT': ''}, {'PARAMSETS': ['MASTER', 'VALUES'], 'FLAGS': 3, 'FAMILY': 0, 'LINK_TARGET_ROLES': '', 'LINK_SOURCE_ROLES': '', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 0, 'DIRECTION': 0, 'ID': 1, 'TYPE': 'MAINTENANCE', 'ADDRESS': 'LEQ0539396:0', 'INDEX': 0, 'PARENT': 'LEQ0539396'}, {'PARAMSETS': ['MASTER', 'VALUES', 'LINK'], 'FLAGS': 1, 'FAMILY': 0, 'LINK_TARGET_ROLES': 'SWITCH WCS_TIPTRONIC_SENSOR WEATHER_CS', 'LINK_SOURCE_ROLES': '', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 1, 'DIRECTION': 2, 'ID': 1, 'TYPE': 'SWITCH', 'ADDRESS': 'LEQ0539396:1', 'INDEX': 1, 'PARENT': 'LEQ0539396'}, {'PARAMSETS': ['MASTER', 'VALUES'], 'FLAGS': 1, 'FAMILY': 0, 'LINK_TARGET_ROLES': '', 'LINK_SOURCE_ROLES': '', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 2, 'DIRECTION': 0, 'ID': 1, 'TYPE': 'POWERMETER', 'ADDRESS': 'LEQ0539396:2', 'INDEX': 2, 'PARENT': 'LEQ0539396'}, {'PARAMSETS': ['MASTER', 'VALUES', 'LINK'], 'FLAGS': 1, 'FAMILY': 0, 'LINK_TARGET_ROLES': '', 'LINK_SOURCE_ROLES': 'KEYMATIC SWITCH WINMATIC', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 3, 'DIRECTION': 1, 'ID': 1, 'TYPE': 'CONDITION_POWER', 'ADDRESS': 'LEQ0539396:3', 'INDEX': 3, 'PARENT': 'LEQ0539396'}, {'PARAMSETS': ['MASTER', 'VALUES', 'LINK'], 'FLAGS': 1, 'FAMILY': 0, 'LINK_TARGET_ROLES': '', 'LINK_SOURCE_ROLES': 'KEYMATIC SWITCH WINMATIC', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 4, 'DIRECTION': 1, 'ID': 1, 'TYPE': 'CONDITION_CURRENT', 'ADDRESS': 'LEQ0539396:4', 'INDEX': 4, 'PARENT': 'LEQ0539396'}, {'PARAMSETS': ['MASTER', 'VALUES', 'LINK'], 'FLAGS': 1, 'FAMILY': 0, 'LINK_TARGET_ROLES': '', 'LINK_SOURCE_ROLES': 'KEYMATIC SWITCH WINMATIC', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 5, 'DIRECTION': 1, 'ID': 1, 'TYPE': 'CONDITION_VOLTAGE', 'ADDRESS': 'LEQ0539396:5', 'INDEX': 5, 'PARENT': 'LEQ0539396'}, {'PARAMSETS': ['MASTER', 'VALUES', 'LINK'], 'FLAGS': 1, 'FAMILY': 0, 'LINK_TARGET_ROLES': '', 'LINK_SOURCE_ROLES': 'KEYMATIC SWITCH WINMATIC', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 6, 'DIRECTION': 1, 'ID': 1, 'TYPE': 'CONDITION_FREQUENCY', 'ADDRESS': 'LEQ0539396:6', 'INDEX': 6, 'PARENT': 'LEQ0539396'}]
16-05-08 19:29:58 pyhomematic._server: RPCFunctions.saveDevices: devicefile: False, _devices_raw: [{'PARAMSETS': ['MASTER'], 'FLAGS': 1, 'FAMILY': 0, 'RF_ADDRESS': 2786260, 'PHYSICAL_ADDRESS': 2786260, 'FIRMWARE': '2.5', 'VERSION': 16, 'ID': 1, 'TYPE_ID': 172, 'TYPE': 'HM-ES-PMSw1-Pl', 'ADDRESS': 'LEQ0539396', 'RX_MODE': 1, 'INTERFACE': 'VBC9165970', 'CHILDREN': ['LEQ0539396:0', 'LEQ0539396:1', 'LEQ0539396:2', 'LEQ0539396:3', 'LEQ0539396:4', 'LEQ0539396:5', 'LEQ0539396:6'], 'ROAMING': 0, 'CHANNELS': [0, 1, 2, 3, 4, 5, 6], 'PARENT': ''}, {'PARAMSETS': ['MASTER', 'VALUES'], 'FLAGS': 3, 'FAMILY': 0, 'LINK_TARGET_ROLES': '', 'LINK_SOURCE_ROLES': '', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 0, 'DIRECTION': 0, 'ID': 1, 'TYPE': 'MAINTENANCE', 'ADDRESS': 'LEQ0539396:0', 'INDEX': 0, 'PARENT': 'LEQ0539396'}, {'PARAMSETS': ['MASTER', 'VALUES', 'LINK'], 'FLAGS': 1, 'FAMILY': 0, 'LINK_TARGET_ROLES': 'SWITCH WCS_TIPTRONIC_SENSOR WEATHER_CS', 'LINK_SOURCE_ROLES': '', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 1, 'DIRECTION': 2, 'ID': 1, 'TYPE': 'SWITCH', 'ADDRESS': 'LEQ0539396:1', 'INDEX': 1, 'PARENT': 'LEQ0539396'}, {'PARAMSETS': ['MASTER', 'VALUES'], 'FLAGS': 1, 'FAMILY': 0, 'LINK_TARGET_ROLES': '', 'LINK_SOURCE_ROLES': '', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 2, 'DIRECTION': 0, 'ID': 1, 'TYPE': 'POWERMETER', 'ADDRESS': 'LEQ0539396:2', 'INDEX': 2, 'PARENT': 'LEQ0539396'}, {'PARAMSETS': ['MASTER', 'VALUES', 'LINK'], 'FLAGS': 1, 'FAMILY': 0, 'LINK_TARGET_ROLES': '', 'LINK_SOURCE_ROLES': 'KEYMATIC SWITCH WINMATIC', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 3, 'DIRECTION': 1, 'ID': 1, 'TYPE': 'CONDITION_POWER', 'ADDRESS': 'LEQ0539396:3', 'INDEX': 3, 'PARENT': 'LEQ0539396'}, {'PARAMSETS': ['MASTER', 'VALUES', 'LINK'], 'FLAGS': 1, 'FAMILY': 0, 'LINK_TARGET_ROLES': '', 'LINK_SOURCE_ROLES': 'KEYMATIC SWITCH WINMATIC', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 4, 'DIRECTION': 1, 'ID': 1, 'TYPE': 'CONDITION_CURRENT', 'ADDRESS': 'LEQ0539396:4', 'INDEX': 4, 'PARENT': 'LEQ0539396'}, {'PARAMSETS': ['MASTER', 'VALUES', 'LINK'], 'FLAGS': 1, 'FAMILY': 0, 'LINK_TARGET_ROLES': '', 'LINK_SOURCE_ROLES': 'KEYMATIC SWITCH WINMATIC', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 5, 'DIRECTION': 1, 'ID': 1, 'TYPE': 'CONDITION_VOLTAGE', 'ADDRESS': 'LEQ0539396:5', 'INDEX': 5, 'PARENT': 'LEQ0539396'}, {'PARAMSETS': ['MASTER', 'VALUES', 'LINK'], 'FLAGS': 1, 'FAMILY': 0, 'LINK_TARGET_ROLES': '', 'LINK_SOURCE_ROLES': 'KEYMATIC SWITCH WINMATIC', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 6, 'DIRECTION': 1, 'ID': 1, 'TYPE': 'CONDITION_FREQUENCY', 'ADDRESS': 'LEQ0539396:6', 'INDEX': 6, 'PARENT': 'LEQ0539396'}]
16-05-08 19:29:58 pyhomematic._devices: HMDevice.__init__: device_description: LEQ0539396 : {'PARAMSETS': ['MASTER'], 'FLAGS': 1, 'FAMILY': 0, 'RF_ADDRESS': 2786260, 'PHYSICAL_ADDRESS': 2786260, 'FIRMWARE': '2.5', 'VERSION': 16, 'ID': 1, 'TYPE_ID': 172, 'TYPE': 'HM-ES-PMSw1-Pl', 'ADDRESS': 'LEQ0539396', 'RX_MODE': 1, 'INTERFACE': 'VBC9165970', 'CHILDREN': ['LEQ0539396:0', 'LEQ0539396:1', 'LEQ0539396:2', 'LEQ0539396:3', 'LEQ0539396:4', 'LEQ0539396:5', 'LEQ0539396:6'], 'ROAMING': 0, 'CHANNELS': [0, 1, 2, 3, 4, 5, 6], 'PARENT': ''}
16-05-08 19:29:58 pyhomematic._devices: HMDevice.__init__: device_description: LEQ0539396:0 : {'PARAMSETS': ['MASTER', 'VALUES'], 'FLAGS': 3, 'FAMILY': 0, 'LINK_TARGET_ROLES': '', 'LINK_SOURCE_ROLES': '', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 0, 'DIRECTION': 0, 'ID': 1, 'TYPE': 'MAINTENANCE', 'ADDRESS': 'LEQ0539396:0', 'INDEX': 0, 'PARENT': 'LEQ0539396'}
16-05-08 19:29:58 pyhomematic._devices: HMDevice.__init__: device_description: LEQ0539396:1 : {'PARAMSETS': ['MASTER', 'VALUES', 'LINK'], 'FLAGS': 1, 'FAMILY': 0, 'LINK_TARGET_ROLES': 'SWITCH WCS_TIPTRONIC_SENSOR WEATHER_CS', 'LINK_SOURCE_ROLES': '', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 1, 'DIRECTION': 2, 'ID': 1, 'TYPE': 'SWITCH', 'ADDRESS': 'LEQ0539396:1', 'INDEX': 1, 'PARENT': 'LEQ0539396'}
16-05-08 19:29:58 pyhomematic._devices: HMDevice.updateParamset: Exception: <Fault -3: 'Not paired to this peer.'>, LEQ0539396:1, LINK
16-05-08 19:29:58 pyhomematic._devices: HMDevice.__init__: device_description: LEQ0539396:2 : {'PARAMSETS': ['MASTER', 'VALUES'], 'FLAGS': 1, 'FAMILY': 0, 'LINK_TARGET_ROLES': '', 'LINK_SOURCE_ROLES': '', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 2, 'DIRECTION': 0, 'ID': 1, 'TYPE': 'POWERMETER', 'ADDRESS': 'LEQ0539396:2', 'INDEX': 2, 'PARENT': 'LEQ0539396'}
16-05-08 19:29:58 pyhomematic._devices: HMDevice.__init__: device_description: LEQ0539396:3 : {'PARAMSETS': ['MASTER', 'VALUES', 'LINK'], 'FLAGS': 1, 'FAMILY': 0, 'LINK_TARGET_ROLES': '', 'LINK_SOURCE_ROLES': 'KEYMATIC SWITCH WINMATIC', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 3, 'DIRECTION': 1, 'ID': 1, 'TYPE': 'CONDITION_POWER', 'ADDRESS': 'LEQ0539396:3', 'INDEX': 3, 'PARENT': 'LEQ0539396'}
16-05-08 19:29:58 pyhomematic._devices: HMDevice.updateParamset: Exception: <Fault -3: 'Not paired to this peer.'>, LEQ0539396:3, LINK
16-05-08 19:29:58 pyhomematic._devices: HMDevice.__init__: device_description: LEQ0539396:4 : {'PARAMSETS': ['MASTER', 'VALUES', 'LINK'], 'FLAGS': 1, 'FAMILY': 0, 'LINK_TARGET_ROLES': '', 'LINK_SOURCE_ROLES': 'KEYMATIC SWITCH WINMATIC', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 4, 'DIRECTION': 1, 'ID': 1, 'TYPE': 'CONDITION_CURRENT', 'ADDRESS': 'LEQ0539396:4', 'INDEX': 4, 'PARENT': 'LEQ0539396'}
16-05-08 19:29:58 pyhomematic._devices: HMDevice.updateParamset: Exception: <Fault -3: 'Not paired to this peer.'>, LEQ0539396:4, LINK
16-05-08 19:29:58 pyhomematic._devices: HMDevice.__init__: device_description: LEQ0539396:5 : {'PARAMSETS': ['MASTER', 'VALUES', 'LINK'], 'FLAGS': 1, 'FAMILY': 0, 'LINK_TARGET_ROLES': '', 'LINK_SOURCE_ROLES': 'KEYMATIC SWITCH WINMATIC', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 5, 'DIRECTION': 1, 'ID': 1, 'TYPE': 'CONDITION_VOLTAGE', 'ADDRESS': 'LEQ0539396:5', 'INDEX': 5, 'PARENT': 'LEQ0539396'}
16-05-08 19:29:58 pyhomematic._devices: HMDevice.updateParamset: Exception: <Fault -3: 'Not paired to this peer.'>, LEQ0539396:5, LINK
16-05-08 19:29:58 pyhomematic._devices: HMDevice.__init__: device_description: LEQ0539396:6 : {'PARAMSETS': ['MASTER', 'VALUES', 'LINK'], 'FLAGS': 1, 'FAMILY': 0, 'LINK_TARGET_ROLES': '', 'LINK_SOURCE_ROLES': 'KEYMATIC SWITCH WINMATIC', 'PARENT_TYPE': 'HM-ES-PMSw1-Pl', 'AES_ACTIVE': 0, 'VERSION': 16, 'CHANNEL': 6, 'DIRECTION': 1, 'ID': 1, 'TYPE': 'CONDITION_FREQUENCY', 'ADDRESS': 'LEQ0539396:6', 'INDEX': 6, 'PARENT': 'LEQ0539396'}
16-05-08 19:29:58 pyhomematic._devices: HMDevice.updateParamset: Exception: <Fault -3: 'Not paired to this peer.'>, LEQ0539396:6, LINK
16-05-08 19:30:02 homeassistant.components.http: Starting web interface at http://0.0.0.0:8123
16-05-08 19:30:02 homeassistant.components.recorder: Running query UPDATE recorder_runs SET end=?, closed_incorrect=1
WHERE end IS NULL
16-05-08 19:30:02 homeassistant.components.http: "GET /api/stream?api_password=no_password_set&restrict=state_changed,component_loaded,service_registered HTTP/1.1" 200 -
16-05-08 19:30:02 homeassistant.components.recorder: Running query INSERT INTO recorder_runs (start, created, utc_offset)
VALUES (?, ?, ?)
16-05-08 19:30:02 homeassistant.components.http: "GET /api/stream?api_password=no_password_set&restrict=state_changed,component_loaded,service_registered HTTP/1.1" 200 -
16-05-08 19:30:02 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:30:02 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:30:02 homeassistant.components.http: "GET /api/bootstrap HTTP/1.1" 200 -
16-05-08 19:30:02 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:30:02 homeassistant.components.http: "GET /api/bootstrap HTTP/1.1" 200 -
16-05-08 19:30:02 homeassistant.components.recorder: Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
16-05-08 19:30:02 homeassistant.components.http: "GET /api/error_log HTTP/1.1" 200 -
The HM-ES-PMSw1-Pl is my switch in homegear so I think the connection between pyhomematic and homegear should work.
iptables-save is even not installed on my RPi so there is no specific firewall. Trying next to control something with pyhomematic. Sadly my Switch is not supported yet so I have to pair my HM rollershutters first.
The second logoutput is how it should be. So to me it seems as if homegear wasn't started when HA tried to establish the connection.
Unfortunately, the HM-ES-PMSw1-Pl is currently not supported.
Devices supported if you update pyhomematic manually (copy _devices.py into the pyhomematic folder) are:
DEVICETYPES = {
"HM-LC-Bl1-SM" : HMRollerShutter,
"HM-LC-Bl1-FM" : HMRollerShutter,
"HM-LC-Bl1PBU-FM" : HMRollerShutter,
"HM-LC-Bl1-PB-FM" : HMRollerShutter,
"ZEL STG RM FEP 230V" : HMRollerShutter,
"263 146" : HMRollerShutter,
"HM-LC-BlX" : HMRollerShutter,
"HM-LC-Dim1L-Pl" : HMDimmer,
"HM-LC-Dim1L-Pl-3" : HMDimmer,
"HM-LC-Dim1L-CV" : HMDimmer,
"HM-LC-Dim1L-CV-2" : HMDimmer,
"HM-LC-Sw1-Pl" : HMSwitch,
"HM-LC-Sw1-Pl-2" : HMSwitch,
"HM-LC-Sw1-SM" : HMSwitch,
"HM-LC-Sw2-SM" : HMSwitch,
"HM-LC-Sw4-SM" : HMSwitch,
"HM-LC-Sw4-PCB" : HMSwitch,
"HM-LC-Sw4-WM" : HMSwitch,
"HM-LC-Sw1-FM" : HMSwitch,
"263 130" : HMSwitch,
"HM-LC-Sw2-FM" : HMSwitch,
"HM-LC-Sw1-PB-FM" : HMSwitch,
"HM-LC-Sw2-PB-FM" : HMSwitch,
"HM-LC-Sw4-DR" : HMSwitch,
"HM-LC-Sw2-DR" : HMSwitch,
"ZEL STG RM FZS" : HMSwitch,
"ZEL STG RM FZS-2" : HMSwitch,
"HM-LC-SwX" : HMSwitch,
"HM-Sec-SC" : HMDoorContact,
"HM-Sec-SC-2" : HMDoorContact,
"ZEL STG RM FFK" : HMDoorContact,
"HM-CC-RT-DN" : HMThermostat,
"HM-CC-RT-DN-BoM" : HMThermostat,
"BC-RT-TRX-CyG" : HMMAXThermostat,
"BC-RT-TRX-CyG-2" : HMMAXThermostat,
"BC-RT-TRX-CyG-3" : HMMAXThermostat,
"BC-RT-TRX-CyG-4" : HMMAXThermostat,
}
Thats also my opinion but why then no switch appears on the states site of HA?
That is because each device has to be configured manually currently. So in your configuration.yaml you have to do something like:
switch:
platform: homematic
key: 'JEQxxxxxxx'
name: 'Whatever'
But as mentioned in my updated reply above, the switch you are using currently is not supported.
Sorry didn´t know that I have to configure each device manually. I read earlier that my switch is not supported yet but luckly I have also two HM-LC-Bl1PBU-FM Rollershutters to try.
For the rollershutters to work you probably have to update the _devices.py as well. But once that is done they should work (except that open is reported as closed and vice versa, which I've fixed and already opend up a pullrequest).
Regarding the Switch: Do I understand correctly, that the switch is capable of reading the current power-consumption of attached devices? If so, I am not sure how that part can be integrated into HA. Using it as a switch to just turn on and off won't be a problem. But more than that probably won't be possible soon.
I will update the _devices.py file after I got hmland (software to connect homegear with a HM-CFG-USB2) working again.
Yes the Switch is cappable of reading the power consumption but that is not really important for me now. On and Off support would be enough.
Ok, then I'll implement your switch next.
Thanks a lot for your efforts and help.
Just FYI: Meanwhile is the rollershutter fix merged...
Now it works. Thanks againg everyone for your help. Will update the component now.
Only a short question. Can i use this homematic bridge in my own home assistant instance? I really want to try this platfrom out.
Thanks a lot for helping.