HomeAssistant – Dashboard iOS vs. Android

Problem: Es kam zu Problemen bei der Darstellung auf einem Android Handy, wo die gleiche Ansicht auf dem iPhone korrekt dargestellt wurde.

Ursache: dieses Android konnte nicht mit externen Bildquellen umgehen:

state_image:
'on': local/image.png. #android + iOS darstellbar
'off': http://         #android nicht + iOS darstellbar

Lösung/Vorgehen:

  • samba Add-on installieren
  • Dateien unter config/www/… ablegen
  • im code per ‚local/dateiname.dateiendung‘ einfügen

Homematic Variablen in HA „schalten“

Voraussetzung:

  • ccu3 Integration in HA wurde erfolgreich eingerichtet
  • in der CCU muss in der Beschreibung der Variable „hahm“ stehen

Die Variablen welche in der CCU zu sehen sind, werden automatisch alle in Homeassistant deaktiviert und versteckt.

Um diese dann in HA nutzen zu können:

  • man geht auf Einstellungen –> Geräte & Dienste –> Entitäten
  • man klicke rechts oben und auf die 3 Striche und aktiviert die Haken bei “ Anzeige deaktivierter Entitäten“ und „versteckte Entitäten anzeigen“
  • man sucht nach der Variable, hier „A-test“

Nun kann man die Variable aktivieren. Danach steht die Variable, hier als „switch/Schalter“ zur Verfügung und man kann diese schalten.

Quelle: https://github.com/danielperna84/custom_homematic

Wasserzähler auslesen und in HomeAssistant integrieren

Gegebenheiten bei mir:

  • Ich habe einen Hydrus 171A Wasserzähler , wo mir leider der Funkschlüssel nicht verraten wird. Daher kam das AI-on-the-edge Projekt wieder zum tragen.

Folgendes Druckteil hab ich mir erstellt:

Dazu wird das Gehäuse von der Ai-on-the-edge Seite genommen und oben drauf geklebt:

Danach nur noch die Config anpassen, im Expert-Mode:

  • Digit-Modell: dig_class11_1600_s2.tflite (weil das eine reine digitale Anzeige ist)
  • den Rest natürlich auch 🙂

Tasmota in Homeassistant einbinden

Requirements

  • MQTT broker and the MQTT integration set up in Home Assistant.
  • Tasmota devices’ MQTT setting configured to communicate with the MQTT broker.
  • Tasmota devices flashed with version 9.2, or later (tasmota-lite.bin does not support this integration).
  • Tasmota devices configured for native discovery (SetOption19 0)

In meinem Fall:

  • Geräte – MQTT Broker, Tasmota
  • AdOn: Mosqito-Broker

Quellen:

https://www.home-assistant.io/integrations/tasmota

https://stevessmarthomeguide.com/using-tasmota-devices-with-home-assistant-and-mqtt/

Ai-on-the-edge-device / ESP32-Cam Flashen

Es geht um diesen tolle Projekt hier: HIER

Auf YouTube gibt es ein schönes deutschsprachiges Tutorial Video dazu: HIER

Da ich sowohl unter Windows wie auch MacOS meine Probleme beim Flashen hatte, hier meine Vorgehensweise auf dem Mac:

  • Terminal öffnen
  • Homebrew installieren
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  • Python installieren
$ brew install python
  • pyserial installieren
$ python3 -m pip install pyserial
  • Dateien runterladen:
    • https://github.com/jomjol/AI-on-the-edge-device
    • https://github.com/espressif/esptool
  • Dateien entpacken
  • in das Verzeichnis wechseln, wo die oben genannten Dateien parallel liegen

  • kontrollieren ob der ESP32+FTDI erkannt wird
$ ls -la /dev/cu.*
  • ESP32-Cam flashen (Port und Verzeichnisnamen anpassen!)
python3 ./esptool-3.2/esptool.py \
	--port /dev/cu.usbserial-2240 write_flash \
	0x01000 ./AI-on-the-edge-device-9.2.0/firmware/bootloader.bin \
	0x08000 ./AI-on-the-edge-device-9.2.0/firmware/partitions.bin \
	0x10000 ./AI-on-the-edge-device-9.2.0/firmware/firmware.bin 

weitere Quellen:

https://docs.python-guide.org/starting/install3/osx/

https://pyserial.readthedocs.io/en/latest/pyserial.html

Blue Iris -profile change http-request

Ich wollte, das wenn ich das Haus verlasse, die Kameras erst „scharf“ gestellt werden bzw. mir erst dann push-Mittteilungen gesendet werden.

Dazu ist einfach nur ein Web.request nötig:

command_on: ‘curl -k “http://ip:port/admin?profile=1& user=username&pw=password”’
command_off: ‘curl -k “http://ip:port/admin?profile=2& user=username&pw=password”’

Im ioBroker noch ein kleines Blockly Skript verfasst:

Das Profil wird nach wenigen Sekunden gewechselt, aber nur in den „TEMP“ Modus. Laut Einstellungen wechselt das Profil wieder zum „Profil 1“ und stellt dies auf „Play“.

Laut Forum gibt es noch kein Patch um den „Lock“ Status auf „Play“ zu setzen –> HIER

Quelle 2

BlueIris – Motion Detection optimieren

.. You set zone crossing with 2 zones.  
For example…
1. Set zone A with the side of the house and top stoop.
2. Set zone B to the brick area, and out a bit in the yard and side of the driveway.
3. Connect zones A and B together or they cannot cross – so, add an addition zone (I always use G) that covers zone A, the gap, and Zone B. Basically just cover the dimmer yellow areas.
4. Set your ‚Zone Crosses‘ to A-B.
5. Set the ‚Min. Duration‘ to a lower number, like .2 or .4. You can estimate this by how long it takes a person to move about 1/4 to 1/3 the way thru from the edge of either side of the zones.
6. Set the ‚Object travel‘ to a number, like 50 – 100.

Quelle: Forum