Onion Information
Update to E-Book: Home Assistant & MQTT Mosquitto Setup adding Kodi Remote control and Zigbee2mqtt with Aqara and Ikea devices
Update to E-Book: Home Assistant & MQTT Mosquitto Setup adding Kodi Remote control and Zigbee2mqtt with Aqara and Ikea devices Hinweis: Da beide Bücher, auf die sich diese Beiträge beziehen, in englischer Sprache sind, sind diese Blog E...
Onion Details
Page Clicks: 0
First Seen: 03/11/2024
Last Indexed: 10/22/2024
Onion Content
Kontakt Update to E-Book: Home Assistant & MQTT Mosquitto Setup adding Kodi Remote control and Zigbee2mqtt with Aqara and Ikea devices Hinweis: Da beide Bücher, auf die sich diese Beiträge beziehen, in englischer Sprache sind, sind diese Blog Einträge nur in Englisch verfügbar. Im unten angeführten Matrix Raum ist Deutsch und Englisch erlaubt. In 2017 I wrote “Home Assistant - Open Source Home Automation Platform for IoT (Internet of Things) & more” and “Mosquitto - MQTT BROKER FOR IoT (Internet of Things)” which both sold really well and people especially liked the secure MQTT setup. The eBooks are available at DigitalBooks24 Update 2021: Since 2017 a lot of Thing happened and I though it is time to get some update out.The servers already was updated to FreeBSD 12.2 and all the installed software was upgraded to the last version. Home Assistant is version 2021.1.5 running on Python 3.7. See the 2021 Update. Not included here! Update 2023: Status and Wishlist I run a fully Home Assistant OS now and moved back to Owntracks which now has a Version running without Google Play Services and things are working perfekt. There is a German and English Blog entry how to setup things including LIneageOS, Easer, OpenVPN, Linphone and Owntracks on your mobile: Setup in German | Setup in English The breaking change was the storm destroying my satellite system on the roof of the house. This brought a lot of things on a new way. First I invested a lot of time in a cool Kodi ( https://kodi.tv/ ) setup to have a TV replacement using streaming channels. It was pretty hard to have Kodi setup in a way that also older people are able to handle the system and to have a great user experience. The Kodi setup and how it looks like now will be described in a upcoming blog entry here. Meanwhile it is really cool including EPG, TV, Radio, Music from storage, and more. Running one setup virtual on Proxmox, able to connect via spice from a workstation and view on PC and one setup on a Mini-PC connected to my 55" TV. The setup is in a way the TV set has no Internet access and the Kodi setups run in a DMZ Network, allowed to receive the streams only. Not access to internal network or other dangerous stuff. Furthermore reduces mass surveillance as mus as possible also by mixing streams from different sources, so nobody has a full view on what we do. And for sure no microphone or video in the Mini-PC! Also all Home Assistant hardware is without any mic or cam. This setup would pretty much fit all enterprise setups where it is required that there is no mic od cam available during meetings! I will never understand people placing a surveillance device (mic an/or cam) within their living room or office. Do people really accept that everybody on the other end of the line to the device is able to listen or watch? If yes, there is need for better IT education for the masses. The final wishlist looked like this: Remote Control for the Kodi Systems in Home Assistant, so we are able to control Kodi from every mobile, tablet or PC There was need for temperature and other sensors to see the actual values in different rooms, outdoor and in the server room A few devices and lights should be handles by Home Assistant to be able to automate power on and power off. Also the Switches should be controlled with buttons on the dashboard. The setup should be based on non proprietary solutions, preferred MQTT There should be a motion detector so the cat has kinda door bell when she comes back from her adventures Video how it looks like now I prepared a video (without sound till now) to show how things looks like now. It is really nice and things works as expected. Both Kodi systems can be controlled via Home Assistant , also using the Home assistant App from https://FDroid.org Store. Adding the Kodi Remote Control The first step was adding the Kodi remote control to Home Assistant. The Kodi Setup has 2 Kodi Instances, both running in a separated Kodi-DMZ VLAN Network, so there is no access to LAN or anything else. Kodi has remote control enabled and there is no access to Kodi from the Internet. Access to Home Assistant is working through VPN only while being not here. This means there is no 3rd party involved in any part of this setup, except loading the TV streams inside the Kodi instances or downloading the updates and we still have fully access to Home Assistant. Also the VoIP SIP clients are working through VPN, so I have my Asterisk VoIP extension always with me using Linphone on LineageOS (see other blog entries here). Also here, no 3rd party involved except the SIP provider for the +43 phone number. Asterisk is fully restricted in the firewalls too, so no access from the Internet. What I wanted was an easy to handle remote control with all the features needed, including power on and power off. The final result looks like this for the Kodi Mini-PC Setup: On top of the remote temperature, humidity and pressure of the room are shown. Furthermore there is a button to switch on the light via the IKEA power outlet and the cat alarm is shown there too. Even the Alarm is sent as Message into the Element Matrix Messenger, the cat icon becomes red on alarm on. : ) The remote has some special keys to directly jump into the EPG List, or to TV, Radio and Favorites. All other keys are self explaining for a TV remote control. Finally I am really happy with these remote controls and they are usable also by non-techies without problems. The full code for the remote is: type: grid square: true columns: 1 style: | ha-card { height: 100% } cards: type: vertical-stack cards: type: custom:mini-media-player entity: media_player.YOURID name: Kodi Box power_color: true show_state: true state_color: true hide: power: true commands: turn_off: service: automation.kodi_wz_turn_off - type: horizontal-stack cards: type: button name: TV-Info size: 30% show_icon: false show_name: true tap_action: service: kodi.call_method action: call-service service_data: method: GUI.ActivateWindow window: tvguide entity_id: media_player.YOURID template: remote_button_round icon: mdi:menu - type: button name: TV size: 30% show_icon: false show_name: true tap_action: service: kodi.call_method action: call-service service_data: method: GUI.ActivateWindow window: tvchannels entity_id: media_player.YOURID template: remote_button_round icon: mdi:menu - type: button name: R- Info size: 30% show_icon: false show_name: true tap_action: service: kodi.call_method action: call-service service_data: method: GUI.ActivateWindow window: radioguide entity_id: media_player.YOURID template: remote_button_round icon: mdi:menu - type: button name: Radio size: 30% show_icon: false show_name: true tap_action: service: kodi.call_method action: call-service service_data: method: GUI.ActivateWindow window: radiochannels entity_id: media_player.YOURID template: remote_button_round icon: mdi:menu - type: button name: Fav size: 30% show_icon: false show_name: true tap_action: service: kodi.call_method action: call-service service_data: method: GUI.ActivateWindow window: favourites entity_id: media_player.YOURID template: remote_button_round icon: mdi:menu - type: horizontal-stack cards: type: button name: Menu size: 30% show_name: true tap_action: service: kodi.call_method action: call-service service_data: method: Input.ContextMenu entity_id: media_player.YOURID template: remote_button_round icon: mdi:menu - type: button template: remote_button_round hold_action: service: kodi.call_method action: call-service service_data: method: Input.Up entity_id: media_player.YOURID repeat: 100 icon: mdi:arrow-up-bold-circle tap_action: service: kodi.call_method action: call-service service_data: method: Input.Up entity_id: media_player.YOURID - icon: mdi:chevron-double-up type: button template: remote_button_round hold_action: service: kodi.call_method action: call-service service_data: method: Input.ExecuteAction entity_id: media_player.YOURID action: pageup repeat: 100 tap_action: service: kodi.call_method action: call-service service_data: method: Input.ExecuteAction entity_id: media_player.YOURID action: pageup - type: horizontal-stack cards: icon: mdi:arrow-left-bold-circle type: button template: remote_button_round tap_action: service: kodi.call_method action: call-service service_data: method: Input.Left entity_id: media_player.YOURID - icon: mdi:check-circle-outline type: button template: remote_button_round tap_action: service: kodi.call_method action: call-service service_data: method: Input.Select entity_id: media_player.YOURID - icon: mdi:arrow-right-bold-circle type: button template: remote_button_round tap_action: service: kodi.call_method action: call-service service_data: method: Input.Right entity_id: media_player.YOURID - type: horizontal-stack cards: icon: mdi:backburger type: button template: remote_button_round show_name: true name: Return size: 30% tap_action: service: kodi.call_method action: call-service service_data: method: Input.Back entity_id: media_player.YOURID - icon: mdi:arrow-down-bold-circle type: button template: remote_button_round hold_action: service: kodi.call_method action: call-service service_data: method: Input.Down entity_id: media_player.YOURID repeat: 100 tap_action: service: kodi.call_method action: call-service service_data: method: Input.Down entity_id: media_player.YOURID - icon: mdi:chevron-double-down type: button template: remote_button_round hold_action: service: kodi.call_method action: call-service service_data: method: Input.ExecuteAction entity_id: media_player.YOURID action: pagedown repeat: 100 tap_action: service: kodi.call_method action: call-service service_data: method: Input.ExecuteAction entity_id: media_player.YOURID action: pagedown - type: horizontal-stack cards: icon: mdi:chevron-double-left type: button template: remote_button_round tap_action: service: kodi.call_method action: call-service service_data: method: Input.ExecuteAction entity_id: media_player.YOURID action: stepback - icon: mdi:pause type: button template: remote_button_round tap_action: service: kodi.call_method action: call-service service_data: method: Input.ExecuteAction action: playpause entity_id: media_player.YOURID - icon: mdi:chevron-double-right type: button template: remote_button_round tap_action: service: kodi.call_method action: call-service service_data: method: Input.ExecuteAction action: stepforward entity_id: media_player.YOURID - type: horizontal-stack cards: icon: mdi:home type: button template: remote_button_round name: Home size: 30% show_name: true tap_action: service: kodi.call_method action: call-service service_data: method: Input.Home entity_id: media_player.YOURID - icon: mdi:stop type: button template: remote_button_round tap_action: service: kodi.call_method action: call-service service_data: method: Input.ExecuteAction entity_id: med