angroene / home-automation

5 stars 1 forks source link

Questions #1

Open ekkelenkamp opened 1 year ago

ekkelenkamp commented 1 year ago

Hello Andre,

I followed your presentation at JFall and got inspired. Bought a Conbee II and tried to get everything up-and-running. Most is working out of the box. Only some things proably changed since you made your presentation.

For exampe: The secret is no longer called: http_password but web_http_password in the configuration file. In the secrets.yaml it is called http_password.

Also the includes don't exist by default: automation: !include automations.yaml script: !include scripts.yaml scene: !include scenes.yaml I had to create these yaml files to get it working.

I also bought a ikea power adapter and was expecting it to show up in the zigbee2MQTT application. I did enable autojoin. Maybe you have any hints what I may have overlooked here?

angroene commented 1 year ago

Hello Rudie,

Thanks for your message. I uploaded the project as a last minute before Jfall, so I might have mixed something up, I will check it tonight and again and fix and then let you know.

Regarding the Ikea power adapter, for zigbee2mqtt to pick it up, you need to plug it into the wall unit and wait about 30 seconds, then use a paperclip or something similarly thin, and push it into the little hole at the top to reset the adapter. You can hold it in for more 5 seconds, then you will hear a click sound, and the light will flicker, then zigbee2mqtt will pick it up. This link also explains how to pair it https://www.zigbee2mqtt.io/devices/E1603_E1702_E1708.html, but please let me know if it does not pair, then I can assist more.

ekkelenkamp commented 1 year ago

Thanks a lot for your fast response Andre. Indeed it is picked up now! I assumed autojoin meant I didn't have to pair it myself.

image

Here a log that shows it is working fine:

warn 2022-11-05 12:00:33: permit_join set to true in configuration.yaml. warn 2022-11-05 12:00:33: Allowing new devices to join. warn 2022-11-05 12:00:33: Set permit_join to false once you joined all devices. info 2022-11-05 12:00:33: Zigbee: allowing new devices to join. info 2022-11-05 12:00:34: Connecting to MQTT server at mqtt://mqtt info 2022-11-05 12:00:34: Connected to MQTT server info 2022-11-05 12:00:34: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online' info 2022-11-05 12:00:34: Started frontend on port 0.0.0.0:8080 info 2022-11-05 12:00:34: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"360a777","coordinator":{"meta":{"maintrel":0,"majorrel":38,"minorrel":114,"product":0,"revision":"0x26720700","transportrev":0},"type":"ConBee2/RaspBee2"},"log_level":"info","network":{"channel":11,"extendedPanID":"0xdddddddddddddddd","panID":6754},"permit_join":true,"version":"1.28.2"}' info 2022-11-05 12:00:34: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online' info 2022-11-05 14:23:35: Device '0x70ac08fffef91ae6' joined info 2022-11-05 14:23:35: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x70ac08fffef91ae6","ieee_address":"0x70ac08fffef91ae6"},"type":"device_joined"}' info 2022-11-05 14:23:35: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":{"friendly_name":"0x70ac08fffef91ae6"},"type":"device_connected"}' info 2022-11-05 14:23:35: MQTT publish: topic 'zigbee2mqtt/0x70ac08fffef91ae6/availability', payload 'online' info 2022-11-05 14:23:35: Starting interview of '0x70ac08fffef91ae6' info 2022-11-05 14:23:35: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x70ac08fffef91ae6","ieee_address":"0x70ac08fffef91ae6","status":"started"},"type":"device_interview"}' info 2022-11-05 14:23:35: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x70ac08fffef91ae6"},"type":"pairing"}' info 2022-11-05 14:23:37: Successfully interviewed '0x70ac08fffef91ae6', device has successfully been paired info 2022-11-05 14:23:37: Device '0x70ac08fffef91ae6' is supported, identified as: IKEA TRADFRI control outlet (E1603/E1702/E1708) info 2022-11-05 14:23:37: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"TRADFRI control outlet","exposes":[{"features":[{"access":7,"description":"On/off state of the switch","name":"state","property":"state","type":"binary","value_off":"OFF","value_on":"ON","value_toggle":"TOGGLE"}],"type":"switch"},{"access":7,"description":"Controls the behaviour when the device is powered on","name":"power_on_behavior","property":"power_on_behavior","type":"enum","values":["off","previous","on"]},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"E1603/E1702/E1708","options":[],"supports_ota":true,"vendor":"IKEA"},"friendly_name":"0x70ac08fffef91ae6","ieee_address":"0x70ac08fffef91ae6","status":"successful","supported":true},"type":"device_interview"}' info 2022-11-05 14:23:37: Configuring '0x70ac08fffef91ae6' info 2022-11-05 14:23:37: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"TRADFRI control outlet","friendly_name":"0x70ac08fffef91ae6","model":"E1603/E1702/E1708","supported":true,"vendor":"IKEA"},"type":"pairing"}' info 2022-11-05 14:23:38: MQTT publish: topic 'homeassistant/switch/0x70ac08fffef91ae6/switch/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x70ac08fffef91ae6/availability"}],"availability_mode":"all","command_topic":"zigbee2mqtt/0x70ac08fffef91ae6/set","device":{"identifiers":["zigbee2mqtt_0x70ac08fffef91ae6"],"manufacturer":"IKEA","model":"TRADFRI control outlet (E1603/E1702/E1708)","name":"0x70ac08fffef91ae6","sw_version":"2.0.024"},"json_attributes_topic":"zigbee2mqtt/0x70ac08fffef91ae6","name":"0x70ac08fffef91ae6","payload_off":"OFF","payload_on":"ON","state_topic":"zigbee2mqtt/0x70ac08fffef91ae6","unique_id":"0x70ac08fffef91ae6_switch_zigbee2mqtt","value_template":"{{ value_json.state }}"}' info 2022-11-05 14:23:38: MQTT publish: topic 'homeassistant/sensor/0x70ac08fffef91ae6/power_on_behavior/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x70ac08fffef91ae6/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x70ac08fffef91ae6"],"manufacturer":"IKEA","model":"TRADFRI control outlet (E1603/E1702/E1708)","name":"0x70ac08fffef91ae6","sw_version":"2.0.024"},"enabled_by_default":false,"entity_category":"config","icon":"mdi:power-settings","json_attributes_topic":"zigbee2mqtt/0x70ac08fffef91ae6","name":"0x70ac08fffef91ae6 power on behavior","state_topic":"zigbee2mqtt/0x70ac08fffef91ae6","unique_id":"0x70ac08fffef91ae6_power_on_behavior_zigbee2mqtt","value_template":"{{ value_json.power_on_behavior }}"}' info 2022-11-05 14:23:38: MQTT publish: topic 'homeassistant/select/0x70ac08fffef91ae6/power_on_behavior/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x70ac08fffef91ae6/availability"}],"availability_mode":"all","command_topic":"zigbee2mqtt/0x70ac08fffef91ae6/set/power_on_behavior","device":{"identifiers":["zigbee2mqtt_0x70ac08fffef91ae6"],"manufacturer":"IKEA","model":"TRADFRI control outlet (E1603/E1702/E1708)","name":"0x70ac08fffef91ae6","sw_version":"2.0.024"},"entity_category":"config","icon":"mdi:power-settings","json_attributes_topic":"zigbee2mqtt/0x70ac08fffef91ae6","name":"0x70ac08fffef91ae6 power on behavior","options":["off","previous","on"],"state_topic":"zigbee2mqtt/0x70ac08fffef91ae6","unique_id":"0x70ac08fffef91ae6_power_on_behavior_zigbee2mqtt","value_template":"{{ value_json.power_on_behavior }}"}' info 2022-11-05 14:23:38: MQTT publish: topic 'homeassistant/sensor/0x70ac08fffef91ae6/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x70ac08fffef91ae6/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x70ac08fffef91ae6"],"manufacturer":"IKEA","model":"TRADFRI control outlet (E1603/E1702/E1708)","name":"0x70ac08fffef91ae6","sw_version":"2.0.024"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:signal","json_attributes_topic":"zigbee2mqtt/0x70ac08fffef91ae6","name":"0x70ac08fffef91ae6 linkquality","state_class":"measurement","state_topic":"zigbee2mqtt/0x70ac08fffef91ae6","unique_id":"0x70ac08fffef91ae6_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' info 2022-11-05 14:23:38: MQTT publish: topic 'homeassistant/sensor/0x70ac08fffef91ae6/update_state/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x70ac08fffef91ae6/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x70ac08fffef91ae6"],"manufacturer":"IKEA","model":"TRADFRI control outlet (E1603/E1702/E1708)","name":"0x70ac08fffef91ae6","sw_version":"2.0.024"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:update","json_attributes_topic":"zigbee2mqtt/0x70ac08fffef91ae6","name":"0x70ac08fffef91ae6 update state","state_topic":"zigbee2mqtt/0x70ac08fffef91ae6","unique_id":"0x70ac08fffef91ae6_update_state_zigbee2mqtt","value_template":"{{ value_json['update']['state'] }}"}' info 2022-11-05 14:23:38: MQTT publish: topic 'homeassistant/binary_sensor/0x70ac08fffef91ae6/update_available/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/0x70ac08fffef91ae6/availability"}],"availability_mode":"all","device":{"identifiers":["zigbee2mqtt_0x70ac08fffef91ae6"],"manufacturer":"IKEA","model":"TRADFRI control outlet (E1603/E1702/E1708)","name":"0x70ac08fffef91ae6","sw_version":"2.0.024"},"device_class":"update","enabled_by_default":true,"entity_category":"diagnostic","json_attributes_topic":"zigbee2mqtt/0x70ac08fffef91ae6","name":"0x70ac08fffef91ae6 update available","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x70ac08fffef91ae6","unique_id":"0x70ac08fffef91ae6_update_available_zigbee2mqtt","value_template":"{{ value_json['update']['state'] == \"available\" }}"}' info 2022-11-05 14:23:38: Successfully configured '0x70ac08fffef91ae6' info 2022-11-05 14:24:49: MQTT publish: topic 'zigbee2mqtt/0x70ac08fffef91ae6', payload '{"linkquality":255,"power_on_behavior":null,"state":null,"update":{"state":"available"},"update_available":true}' info 2022-11-05 14:24:49: Update available for '0x70ac08fffef91ae6' info 2022-11-05 14:24:49: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Update available for '0x70ac08fffef91ae6'","meta":{"device":"0x70ac08fffef91ae6","status":"available"},"type":"ota_update"}'

angroene commented 1 year ago

I am glad it is working now. The Ikea adapter is a nice one to start with as well, you can automate lamps nicely with them and you can bind them to any remove control with an on and off button (like the ikea on off switch), or just use from your phone using the home assistant app.

Thank you for mentioning the issues above, I renamed the web_http_password to just http_password (as http implies web, so it felt like repeating the same word in the name), but I forgot to rename it in the config file.

Regarding the automations, scenes and scripts, I have added these as well now,

Please keep me updated on how your home automation goes, and let me know if you have any more questions.

ekkelenkamp commented 1 year ago

Bought some Ikea lTRÅDFRI lamps today and connected them. The pairing is quite interesting. Pressing 6 times on will reset to factory settings and allows registering them. Quite happy with how it all integrates with Home Assistant.

angroene commented 1 year ago

Ah nice. Let me know how they work. Some of my Philips hue bulbs have started giving some problems (they are 4 years old, but they should not give problems yet, so I will find time to email them about it) and when I turn them off they do not turn off completely, so I am now looking at alternatives (or keeping the lamps dumb and making the switch smart). After that my next project is to replace all the roller blinds in my house with the Ikea smart roller blinds.

ekkelenkamp commented 1 year ago

So far the IKEA lamps have been working great. I bought two types:

https://www.zigbee2mqtt.io/devices/LED1923R5.html#ikea-led1923r5 and https://www.zigbee2mqtt.io/devices/LED1924G9.html#ikea-led1924g9 Roller blinds might be interesting indeed.

I'm amazed about the capabilities of home assistant. There are so many integrations possible. My remeha thermostat is working using a github plugin. Samsung TVs integrate nicely Sonos integration is working nice. Netatmo sensors are showing up.