Here is this log entry that follows me since don’t know how much time… But seems that this doesn’t affect z-wave communications… seems so, until I’ll add another ip camera (don’t know why, but after adding my second ip camera, the zwave doesn’t work anymore)
16-09-25 09:16:15 homeassistant.components.sensor: Error while setting up platform zwave
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 107, in _setup_platform
discovery_info)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/sensor/zwave.py", line 67, in setup_platform
add_devices([ZWaveMultilevelSensor(value)])
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 198, in add_entities
if self.component.add_entity(entity, self):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 134, in add_entity
entity.update_ha_state()
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity.py", line 159, in update_ha_state
device_attr = self.device_state_attributes
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/zwave.py", line 580, in device_state_attributes
battery_level = self._value.node.get_battery_level()
File "/usr/local/lib/python3.4/dist-packages/openzwave-0.3.1-py3.4.egg/openzwave/command.py", line 284, in get_battery_level
for val in self.get_battery_levels():
File "/usr/local/lib/python3.4/dist-packages/openzwave-0.3.1-py3.4.egg/openzwave/command.py", line 306, in get_battery_levels
type='Byte', readonly=True, writeonly=False)
File "/usr/local/lib/python3.4/dist-packages/openzwave-0.3.1-py3.4.egg/openzwave/node.py", line 438, in get_values
for value in self.values:
RuntimeError: dictionary changed size during iteration
after that, the error is about my first ip camera
16-09-25 09:16:34 requests.packages.urllib3.connectionpool: Failed to parse headers (url=http://192.168.1.10:80/mjpeg.cgi): [StartBoundaryNotFoundDefect(), MultipartInvariantViolationDefect()], unparsed data: '' Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 404, in _make_request assert_header_parsing(httplib_response.msg) File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/util/response.py", line 59, in assert_header_parsing raise HeaderParsingError(defects=defects, unparsed_data=unparsed_data) requests.packages.urllib3.exceptions.HeaderParsingError: [StartBoundaryNotFoundDefect(), MultipartInvariantViolationDefect()], unparsed data: ''
And then
16-09-25 09:16:43 homeassistant.components.zwave: zwave not ready after 30 seconds, continuing anyway
these rows fills my log every day…
My config (the commented camera is the one that if i add, zwave doesn’t work anymore)
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: 45.####
longitude: 11. ###
elevation: 9
# 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/Rome
unit_system: metric
customize:
cover.fibaro_system_fgrm222_roller_shutter_controller_2_level_2:
friendly_name: Tenda Soggiorno
icon: mdi:weather-partlycloudy
cover.fibaro_system_fgrm222_roller_shutter_controller_2_level_4:
friendly_name: Tenda Cameretta
icon: mdi:weather-partlycloudy
sensor.fibaro_system_fgrm222_roller_shutter_controller_2_energy_2:
hidden: true
sensor.fibaro_system_fgrm222_roller_shutter_controller_2_energy_4:
hidden: true
sensor.fibaro_system_fgrm222_roller_shutter_controller_2_power_2:
hidden: true
sensor.fibaro_system_fgrm222_roller_shutter_controller_2_power_4:
hidden: true
sensor.fibaro_system_fgrm222_roller_shutter_controller_2_previous_reading_2:
hidden: true
sensor.fibaro_system_fgrm222_roller_shutter_controller_2_previous_reading_4:
hidden: true
switch.fibaro_system_fgrm222_roller_shutter_controller_2_switch_2:
hidden: true
cover.fibaro_system_fgrm222_roller_shutter_controller_2_switch_2:
hidden: true
cover.fibaro_system_fgrm222_roller_shutter_controller_2_switch_4:
hidden: true
switch.fibaro_system_fgrm222_roller_shutter_controller_2_switch_4:
hidden: true
switch.camera_garage_motion:
icon: mdi:walk
friendly_name: Motion detect
sensor.movimenti_garage:
icon: mdi:walk
friendly_name: Movimenti rilevati
camera:
- platform: mjpeg
mjpeg_url: http://192.######/mjpeg.cgi
name: Garage Video
username: admin
password: #####
authentication: basic
# - platform: mjpeg
# mjpeg_url: http://192#####/cgi/mjpg/mjpeg.cgi
# name: Soggiorno Video
# username: admin
# password: #####
# authentication: basic
switch:
platform: command_line
switches:
camera_garage_motion:
command_on: 'curl -k "http://admin:#####@192.####/setSystemMotion?ReplySuccessPage=motion.htm&ReplyErrorPage=motion.htm&MotionDetectionEnable=1&ConfigSystemMotion=Save"'
command_off: 'curl -k "http://admin:#####@192####/setSystemMotion?ReplySuccessPage=motion.htm&ReplyErrorPage=motion.htm&MotionDetectionEnable=0&ConfigSystemMotion=Save"'
command_state: 'curl -k --silent "http://admin:######@192####/motion.cgi" | grep "MotionDetectionEnable="'
value_template: '{{ value == "MotionDetectionEnable=1" }}'
sensor:
- platform: yr
- platform: command_line
command: "ls -1 /home/pi/camera/garage | wc -l"
name: movimenti_garage
group:
all_covers:
name: Tende da sole
icon: mdi:sunglasses
entities:
- cover.fibaro_system_fgrm222_roller_shutter_controller_2_level_2
- cover.fibaro_system_fgrm222_roller_shutter_controller_2_level_4
camera_garage:
name: Video Garage
icon: mdi:video
entities:
- switch.camera_garage_motion
- camera.garage_video
- sensor.movimenti_garage
# camera_soggiorno:
# name: Video Soggiorno
# icon: mdi:video
# entities:
# - camera.soggiorno_video
group.suirveillance:
name: Videosorveglianza
view: yes
entities:
- sensor.movimenti_garage
- group.camera_garage
# - group.camera_soggiorno
# View all events in a logbook
logbook:
# Allows you to issue voice commands from the frontend
conversation:
# Discover some devices automatically
discovery:
# Enables the frontend
frontend:
# Enables support for tracking state changes over time.
#history:
# Checks for available updates
updater:
# Track the sun
sun:
elevation: 9
# Show links to resources in log and frontend
#introduction:
http:
# server_port: 8888
api_password: nmdcdnv12
# ssl_certificate: /home/pi/ngnix/blackgear.no-ip.org.crt
# ssl_key: /home/pi/ngnix/blackgear.no-ip.org.key
zwave:
usb_path: /dev/ttyUSB0
#device_tracker:
# platform: fritz
# host: 192.168.1.1
# username: blackgear
# password: xhnert60
# track_new_devices: yes