Update: Home Assistant - Zoneminder - Build a 10€ RTSP surveillance cam and add Shelly, Smarti and Innr energy measuring


Update: Home Assistant - Zoneminder - Build a 10€ RTSP surveillance cam and add Shelly, Smarti and Innr energy measuring Hinweis: Da beide Bücher, auf die sich diese Beiträge beziehen, in englischer Sprache sind, sind diese Blog Einträge nu...



Onion Details



Page Clicks: 0

First Seen: 03/11/2024

Last Indexed: 10/22/2024

Domain Index Total: 337



Onion Content



Kontakt Update: Home Assistant - Zoneminder - Build a 10€ RTSP surveillance cam and add Shelly, Smarti and Innr energy measuring 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. History Update 2017 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 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 perfect. 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. Find the Kodi Home Assistant Setup here. Ftind the Update to E-Book: Home Assistant & MQTT Mosquitto Setup adding Kodi Remote control and Zigbee2mqtt with Aqara and Ikea devices Setup here. Update 2024 / 1 The Setup of the Sonoff NSPanel with custom firmware in I was looking for the missing part in my setup. A simple display to show weather, temperature, allowing to switch lights and power and more. Finally I found the Sonoff NSPanel, a ESP32 based Display and Switch. The NSPanel is designed to replace wall mounted light switches and also able to switch two old non smart lights up to 4A. 2024 / 2 Build a 10€ RTSP surveillance cam and add Shelly, SMARTI and Innr energy measuring Metering Honeywell DM-515 with SMARTI This year a lot of things happened and the heating system was changed too. Because the new system will consume a lot of energy I wanted to know the energy consumed by different systems in the building here. First I wanted to see the data of the installed Honeywell DM-515 metering system. Our Grid operator uses these ones and so we had to connect the SMARTI interface converter to the DM-515. SMARTI is available here: http://www.cbyte.at/ Setup is pretty easy with three exceptions. Every one running a secure non-public WLAN will not have only a passwort, there will also be MAC restrictions to connect. I know, more work, but pretty cool if somebody has your password will fail to connect because of the wrong MAC address. Yes, somebody can spoof a MAC but then you for sure have other security stuff running. Anyway, non-public WLAN without MAC restriction is generally a bad idea. The MAC address should be printed on the box of every product, otherwise you will have to make a workaround. I run very secure MQTT Servers using SSL/TLS and Certs. SMARTI currently supports non-encrypted setups only, but the developer told me that SSL will be added with the next firmware update. Configuration needs the APP and SMARTI has no Webserver handling the Setup, even it runs a WLAN AP to connect to it. But also this should change soon. The SMARTI provides its own AP for the first 10 minutes after plugging. Then please carry out the following steps: connect SMARTI to the DM-515 connect the Smartphone to the SMARTI AP WLAN SSID: Cbyte_xxxxxx PW: SMARTIsmart start SMARTI Config app select individual configuration enter IP Address 192.168.4.1 and connect If the connection is successful, all other button are activated and your WLAN parameters can be setup under WiFi -> “existing device” WiFi settings. Then either use the direct WLAN connection to the device via IP 192.168.4.1 or if the device is in your WLAN the DHCP assigned IP address. Set the further settings such as Smart Meter Key and activate MQTT. SMARTI is powered via the MBUS Interface. This is a full MQTT config for your configuration.yaml. Change YOURMETER to the ID of your Smartmeter: ####################################### ### SMARTI Basiszaehler SBG ### ####################################### - name: "Smart Meter Waerme TimeStamp" unique_id: smartmeter_w870_timestamp device_class: "TIMESTAMP" state_class: "measurement" state_topic: "CBYTE/1ELS0208055870/sensor" value_template: '{{(value_json["0.0.1.0.0.255"])}}' - name: "Smart Meter Waerme Nummer" unique_id: smartmeter_w870_nummer state_topic: "CBYTE/1ELS0208055870/sensor" value_template: '{{(value_json["0.0.96.1.0.255"])}}' - name: "Smart Meter Waerme U-L1" unique_id: smartmeter_w870_u_l1 device_class: "VOLTAGE" state_class: "measurement" state_topic: "CBYTE/YOURMETER/sensor" value_template: '{{(value_json["1.0.32.7.0.255"]| round(2))}}' unit_of_measurement: "V" - name: "Smart Meter Waerme U-L2" unique_id: smartmeter_w870_u_l2 device_class: "VOLTAGE" state_class: "measurement" state_topic: "CBYTE/YOURMETER/sensor" value_template: '{{(value_json["1.0.52.7.0.255"]| round(2))}}' unit_of_measurement: "V" - name: "Smart Meter Waerme U-L3" unique_id: smartmeter_w870_u_l3 device_class: "VOLTAGE" state_class: "measurement" state_topic: "CBYTE/YOURMETER/sensor" value_template: '{{(value_json["1.0.72.7.0.255"]| round(2))}}' unit_of_measurement: "V" - name: "Smart Meter Waerme I-L1" unique_id: smartmeter_w870_i_l1 device_class: "CURRENT" state_class: "measurement" state_topic: "CBYTE/YOURMETER/sensor" value_template: '{{(value_json["1.0.31.7.0.255"]| round(2))}}' unit_of_measurement: "A" - name: "Smart Meter Waerme I-L2" unique_id: smartmeter_w870_i_l2 device_class: "CURRENT" state_class: "measurement" state_topic: "CBYTE/YOURMETER/sensor" value_template: '{{(value_json["1.0.51.7.0.255"]| round(2))}}' unit_of_measurement: "A" - name: "Smart Meter Waerme I-L3" unique_id: smartmeter_w870_i_l3 device_class: "CURRENT" state_class: "measurement" state_topic: "CBYTE/YOURMETER/sensor" value_template: '{{(value_json["1.0.71.7.0.255"]| round(2))}}' unit_of_measurement: "A" - name: "Smart Meter Waerme Wirkleistung Bezug +P" unique_id: smartmeter_w870_p_bezug device_class: "POWER" state_class: "measurement" state_topic: "CBYTE/YOURMETER/sensor" value_template: '{{(value_json["1.0.1.7.0.255"]| float*1000) | round(2)}}' unit_of_measurement: "W" - name: "Smart Meter Waerme Wirkleistung Lieferung-P" unique_id: smartmeter_w870_p_lieferung device_class: "POWER" state_class: "measurement" state_topic: "CBYTE/YOURMETER/sensor" value_template: '{{(value_json["1.0.2.7.0.255"]|float*1000 | round(2))}}' unit_of_measurement: "W" - name: "Smart Meter Waerme Wirkenergie Bezug +A" unique_id: smartmeter_w870_a_bezug device_class: "POWER" state_class: total_increasing state_topic: "CBYTE/YOURMETER/sensor" value_template: '{{(value_json["1.0.1.8.0.255"]| round(2))}}' unit_of_measurement: "kWh" - name: "Smart Meter Waerme Wirkenergie Lieferung -A" unique_id: smartmeter_w870_a_lieferung device_class: "POWER" state_class: total_increasing state_topic: "CBYTE/YOURMETER/sensor" value_template: '{{(value_json["1.0.2.8.0.255"]| round(2))}}' unit_of_measurement: "kWh" - name: "Smart Meter Waerme Blindleistung Bezug +R" unique_id: smartmeter_w870_r_bezug device_class: "POWER" #state_class: "measurement" state_class: total_increasing state_topic: "CBYTE/YOURMETER/sensor" value_template: '{{(value_json["1.0.3.8.0.255"]| round(2))}}' unit_of_measurement: "kvarh" - name: "Smart Meter Waerme Blindleistung Lieferung -R" unique_id: smartmeter_w870_r_lieferung device_class: "POWER" state_topic: "CBYTE/YOURMETER/sensor" value_template: '{{(value_json["1.0.4.8.0.255"]| round(2))}}' unit_of_measurement: "kvarh" - name: "Smart Meter Leistungsfaktor" unique_id: smartmeter_leistungsfaktor device_class: "ENUM" state_topic: "CBYTE/YOURMETER/sensor" value_template: '{{(value_json["1.0.13.7.0.255"]| round(2))}}' unit_of_measurement: "" and you are done. Add “Smart Meter Waerme Wirkenergie Bezug +A” to your energy dashboard configuration located at https://yourhomeassistant/config/energy?historyBack=1 This will give you cool information based on the smartmeter by day, week, month and more. Metering different energy consumers Shelly 3EM Now there was need to see what the heating system consumes. Because this is direct wired I decided to use a Shelly 3EM to measure what is running over the wires. Shelly 3EM is available here https://www.shelly.com/de-at/products/product-overview/shelly-3em-1 . Shelly probably is best mounted by a electrician allowed to mount it. Wrong done, pretty dangerous for amateurs, really easy mounted for a specialist. Shelly setup is easy too. No APP needed. Shelly opens a WLAN AP, connect to it, got to 192.168.33.1 and configure the Shelly. No cloud is needed too. Connect Shelly to your WLAN. Home Assistant has a direct integration for Shelly and as soon as it is connected to your WLAN, Home Assistant asks to configure the device. After configuration is done you should have 26 entities in the Shelly integration for your Shelly 3EM.. I created a helper to sum the 3 values to a summe_shelly_hwp_kwh_total . This value is added in the energy dashboard as additional device. template: sensor: name: summe_shelly_hwp_power_total state: "{{ (states('sensor.shellyem3_YOURMACADDY_channel_a_power') | float(0.0) + states('sensor.shellyem3_YOURMACADDY_channel_b_power') | float(0.0) + states('sensor.shellyem3_YOURMACADDY_channel_c_power') | float(0.0)) | float * -1 | round(2) }}" unit_of_measurement: "W" device_class: energy state_class: total_increasing unique_id: summe_shelly_hwp_power_total - name: summe_shel