tuomas_h, to homeassistant
@tuomas_h@mastodon.social avatar

Been tracking down a mysterious behaviour of a couple of Ikea Trådfri bulbs in our #HomeAssistant setup: at seemingly random times, unprompted by any automation or other obvious trigger, they turn on at very dim brightness. Logbook simply shows “turned on” without any additional context as to what did it.

Now I’m at the point where I’m trying to create an automation that captures this event and turns the light off, which I’m fine with if it works, but would still love to know why it happens.

jonikorpi,
@jonikorpi@mastodon.gamedev.place avatar

@tuomas_h Dunno if this helps, but for us automations set in the Ikea Home Smart (1) app seem to turn them on at min brightness and slowly ramp up. So could be a ghost automation somewhere in there?

thoralf, to homeassistant German
@thoralf@soc.umrath.net avatar

Ich habe ein bisschen Bammel davor, meine (bis auf die aktuellen Probleme mit und ) ganz ok funktionierende @homeassistant -Instanz umzuziehen.

Aber muss ja, wenn ich etwas mehr Kontrolle bekommen möchte und die nervigen Probleme mit @evcc unter Kontrolle bekommen will, da die beiden sich ja offensichtlich nicht ausstehen können und man Null Support erhält, wenn man evcc als Addon unter betreibt.

holgerschurig, (edited )

@thoralf @homeassistant @evcc Naja, ivh würde folgendes machen:

Backup auf alter HA Instant machen

Netzwerkkabel ziehen

Backup in neue Instanz laden

Warteten bis HA das ganze Zeug installiert hat

Testen

Bei Problemen kannst Du so jederzeit auf das alte HA zurück: neues HA aus, Netzwerkkabel in altes wieder rein

Ich habe schon ein paarmal von HA-YouTubern gehört, das das Umziehen von HA z.B. von Raspi auf Proxmoxx problemlos funktionierte. Bei einem sogar mit einigen HACS Komponenten.

vik, to homeassistant
@vik@mastodon.nzoss.nz avatar

is going well, but I need to move all the devices to another network SSID and password. Searching for how to do this is basically full of "why would you do that?" but no solutions that don't involve manually diving in to the config "secrets" - followed by replies saying "don't do that!" Well, security is one reason. I can't be alone here, right?

PossiblyMax,
@PossiblyMax@hachyderm.io avatar

@vik Oh don't get me wrong I'm absolutely agreeing that splitting your iot and normal WiFi is a good idea. When I did it with my network I had far more iot devices than not, and the iot devices were going to be a real hassle to move, so I didn't move them.

Instead I blocked that network off from the Internet and made a new one for my non-iot and moved those instead.

Unless you mean you have reasons to want to keep your ssid as your main network? Fair enough if so! Just trying to help 🙏

vik,
@vik@mastodon.nzoss.nz avatar

@PossiblyMax
Trust me, there are many things a man may do that are foolish, misguided, or seemingly trivial, because of the need to keep the peace...

Zenek73, to homeassistant Polish
@Zenek73@101010.pl avatar

Warto kupić Google Nest Hub 2 jako sterownik do Home Assistant? Jest tanie i nawet jako "tablet" do alarmu Satel wychodzi ze 4 razy taniej niż ichni kontroler na Windows CE który na dodatek jest na kablu (co ma prawie same zalety tyle że trzeba ciągnąć kabel).
HA ładnie mi się integruje też z Fritz! wiec wygląda ciekawie a osprzęt jest dość tani

Zenek73,
@Zenek73@101010.pl avatar

zamówione - zobaczymy. kosztuje mniej niż czujka bezprzewodowa Satel więc luz...

pee, to solar
@pee@mastodon.online avatar

Life's bliss with and . Got my Smart Plugs & Switches today. 0.00

image/png
image/png

danie10,
@danie10@mastodon.social avatar

@pee yes I use the announcements for the geyser, so that if I know power is going off in 30 mins time, I turn the geyser on (but our geyser stays off until we want to heat it up - it is only 100L).

danie10,
@danie10@mastodon.social avatar

@pee not sure if my code at https://github.com/Danie10/gadgeteerza-homeassistant will help give any pointers. Big thing is to test it in parts, first the trigger works, then a notification. Also need to be sure the notification devices are actually logged in and connected - can see that in HA's Developer Tools and STATES.

tomi, to homeassistant

Link to the original blog post with a nice text/pictures layout.

The problem:

  • kids keep forgetting to carry the key to unlock the front door. They never forget to carry their phones though.

The solution:

  • unlocking the front door using a mobile phone

HW parts:

SW:

The process:

  1. I installed a wall box near the front door, under a nearby electrical socket (see below)
  2. When the company installed the front door, I asked them to install a UTP cable from the door lock mechanism to the socket.
  3. Bought the materials above (Aliexpress for the boards, Conrad for the power suppy).
  4. Connected the mains to the breaker (for emergency switch-off)
  5. Connected the cables from the breaker to the 24V power supply
  6. Connected the cables from the power supply to the ESP32 board, door solenoid relay and ESP32’s relay. Luckily, I didn’t need to install 5V power supply for the ESP board, because it also works with 24V.

Here’s the doodle of the connecting scheme:

doodle of the electrical schemeHere’s the original connecting scheme from Innotherm (door manufacturer), in Slovenian: It was useful because it reveals which power supply is appropriate (Meanwell MW HDR 30-24).

the electrical scheme for wiring the door unlocking mechanism7. Fitted everything in the wall box. It was too shallow! I couldn’t hide all the junk with the flat cover that came with a box.

Before fitting:

circuit breaker, power suppy and esp32 board hanging out of the wall boxEverything nicely fit in a box:

circuit breaker, power suppy and esp32 board nicely ft in the the wall box8. I designed and 3D printed a new cover in TinkerCad:

3d model of the wall box cover10. After a 3rd try (of 3D design and printing), all measures were finally correct and I could cover the box (Mastodon post):

wall box cover mounted11. Flashed ESP32 board with ESPHome*, added it to Home Assistant.

(*Actually it wasn’t that simple. The board doesn’t have a data USB connector. I had to buy USB2TTL adapter. I was bitching about it here.)

esp32 board with usb2ttl adapter connectedNevertheless, after the firmware update, I edited .yaml for the board so it exposes:

Main entity:

  • Switch (for controlling relay), connected to GPIO16

Misc. entities:

  • LED light (connected to GPIO 23, to signal when the door is opened)
  • Wifi sensor (for checking the power of Wifi signal, because the esp board is located in a wall box)
  • Uptime (to see the time since the last esp board reset)
  • Restart switch (to remotely restart the board if needed – but until now it wasn’t needed)

.yaml code for ESPHome (gathered from various websites, mainly from ESPHome):

... skipping the first part, wifi connectivity, substitutions etc.light:  - platform: status_led    name: "ESP32-rele01-vrata Led"    restore_mode: ALWAYS_OFF    pin:      number: GPIO23      inverted: Falseswitch:  - platform: gpio    pin: GPIO16    name: "Door lock switch"    inverted: False  # The following can be omitted  - platform: restart    name: ${devicename} restartsensor:  - platform: wifi_signal    name: ${devicename} wifi signal    update_interval: 600s  # human readable uptime sensor output to the text sensor above  - platform: uptime    name: ${devicename} Uptime in Days    id: uptime_sensor_days    update_interval: 60s    on_raw_value:      then:        - text_sensor.template.publish:            id: uptime_human            state: !lambda |-              int seconds = round(id(uptime_sensor_days).raw_state);              int days = seconds / (24 * 3600);              seconds = seconds % (24 * 3600);              int hours = seconds / 3600;              seconds = seconds % 3600;              int minutes = seconds /  60;              seconds = seconds % 60;              return (                (days ? String(days) + "d " : "") +                (hours ? String(hours) + "h " : "") +                (minutes ? String(minutes) + "m " : "") +                (String(seconds) + "s")              ).c_str();time:  - platform: homeassistant    id: homeassistant_time# Text sensors with general information.text_sensor:  # Expose ESPHome version as sensor.  - platform: version    name: $devicename Version  # Expose WiFi information as sensors.  - platform: wifi_info    ip_address:      name: $devicename IP    bssid:      name: $devicename BSSID  # human readable update text sensor from sensor:uptime  - platform: template    name: Uptime Human Readable    id: uptime_human    icon: mdi:clock-start    
  1. I’ve put an NFC sticker on the door.

  2. Wrote 2 simple automations that open a relay when the phone touches the NFC sticker and closes it after 1 second:

screenshot of the door unlock automation2nd automation switches the relay off after 1 second (also blinks the red status led on the ESP board):

screenshot of the door lock automation14. Added Aqara Door sensor to the door and connected it my existing Zigbee network using Zigbee2MQTT. It’s for logging when the door is open and for turning on the red status LED on the ESP32 board when the door is opened.

aqara door sensor mounted at the edge of the door15. Added a new control dashboard in Home Assistant for tracking what’s going on with the door:

dashboard in home assistant with various door statusesConclusion

After 6 months, it works great. Kids are satisfied and me too, because this is one of the first usable HomeAssistant projects that involve some electronics and physical devices. It works in 99% of cases.

There are some issues with it though:

  • The ESP32 board sometimes reboots after unlocking. It seems that the door solenoid relay draws too much current and the voltage from the power supply drops momentarily. Probably I need to add a capacitor to the board power input to smooth the voltage. This is not a big issue, because the board starts working normally after 3 or 4 seconds after the reboot.
  • Once or twice it happened the esp board relay got stuck in an OFF state. I had to hit it gently with a screwdriver to unstuck it. After that, I reduced the time the door solenoid is opened from 2 to 1 sec. Not sure if it will help. Maybe it’s just a bad relay.
  • Several times the wifi was down and the board couldn’t communicate with the Home Assistant. It looks like my telco provider’s router is not the best one and it freezes sometimes. Probably I need to buy a better wifi router.

TODO

I have several ideas on how to upgrade the unlocking mechanism:

  • unlocking with a fingerprint
  • unlocking with facial recognition

Disclaimer

The links to the products are not affiliate links and I don’t receive any compensation for linking.

The code and the ideas are mostly from HomeAssistant and ESPHome community forums.

https://blog.rozman.info/unlocking-the-front-door-using-the-mobile-phone-and-home-assistant/

doodle of the electrical scheme
the electrical scheme for wiring the door unlocking mechanism

po3mah,
@po3mah@mastodon.social avatar

@mihamarkic @jkmcnk @tomi

To je v resnici reverse social inženiring, limance za infosec-e. Če kdo uspe odkleniti, je sprejet in posvojen v našo družino. Pa v kleti bo nekaj časa. 🤪

jkmcnk,
@jkmcnk@mastodon.social avatar

@po3mah ti sofisticirani prijemi se sam v locksports uporabljajo, resničnost je pajser in šraufenciger. @mihamarkic @tomi

yeri, to homeassistant
@yeri@superuser.one avatar

Started playing around with #HomeAssistant and cheap #Zigbee sensors and smart powerplugs (and some #esphome, also got some #BLE #Bluetooth sensors I haven't unpacked yet).

It's been a steep learning curve but it's cool that most of the stuff just works (TP-Link #Kasa and #Tapo, #Ikea Zigbee, #Philips #Hue (using the Hue Bridge, not directly connected to my Zigbee coordinator). Some stuff this uses the cloud (but can be used locally), other stuff takes out the cloud entirely. (1/2)

Temperature per room
Power usage from Zigbee and ESPhome/WiFi smart plugs.
PIR and door sensor tests (Zigbee)

holgerschurig,

@yeri Ouch, read that you are in Singapure.

Forget my Stosslüften idea, that won't work probably there. I once was in Singapore, in April. And it rained several times a day, followed by powerful sun and it was very damp outside. And even in the morning it wasn't really cool.

holgerschurig,

@yeri I have a house with cellar, basement, 1st and 2nd floor. And the floors between those houses are concrete with iron nests in between. A WiFi signal from the basement has a hard time traveling into the 2nd floor, for example.

But somehow Zigbee is super reliable.

The "smart" sockets I have work as repeaters.

On HA's side I have a USB cable, and only then do I have a Zigbee stick. Don't plug the stick in directly, too much computer made RFI. Then one of the older, bulkier smart sockets from IKEA one level above became repeater, automatically. Then another level is the small heating room. And there's another smart plug that controls a "circulation pump". And since 6 months there never was any connection issue, the pump correctly turned on/off by timer. Or via a Zigbee switch on demand. Super reliable for me.

smarthomejunkie, to homeassistant
@smarthomejunkie@mastodon.world avatar

Here's this week's new video!

Get FREE GAMES in Home Assistant!

👉 https://youtu.be/fwpdi-Ua46A

#homeassistant #games #epic

DJGummikuh, to homeassistant German
@DJGummikuh@mastodon.social avatar

It is interesting to see in that the switch from 12V to 24V for my fans is actually increasing the power cost of a print noticeably by more than 10% (Top is the power cost at 24V, bottom at 12V)
But all in all I am still amazed at how little power actually plays into the total cost of a print.

byteborg,
@byteborg@chaos.social avatar

@DJGummikuh
Then it's perfectly understandable that the energy consumption rises. More work is done in the same time. 😊

byteborg,
@byteborg@chaos.social avatar

@DJGummikuh
Ich bin wohl nicht ganz so auf der Höhe heute... 😬

icd, to ai Polish
@icd@mastodon.internet-czas-dzialac.pl avatar

W ostatnim odcinku pierwszego sezonu ICD Weekend Arek i Kuba opowiadają o newsach dotyczacych Facebooka, Apple i AI oraz dzielą się nowymi rekomendacjami aplikacji z F-Droida.

https://www.internet-czas-dzialac.pl/weekend-25/

lukaso666,
@lukaso666@chaos.social avatar

@icd fajny odcinek! Arek, dzięx wielkie za rekomendację Image Toolbox - apka robi robotę! ✊

chakie, to homeassistant
@chakie@toot.community avatar

Contemplating adding a SkyConnect Zigbee dongle to our Home Assistant. Seems to be pretty ok, or at least as reliable as Zigbee in general gets. Initially just a couple of basic Aqara sensors to test with. Anything larger will need routers/repeaters for better reach.

chakie,
@chakie@toot.community avatar

@holgerschurig I’ve seen that people prefer that over ZHA. Not exactly sure how it works though. It gets the Z data and then shoves it into Mosquitto from which another part of HA gets it? Sounds a bit complicated? We do have a Mosquitto running already for some other stuff so setup would be easy.

holgerschurig,

@chakie It might sound complicated, but you as a user won't notice the complication.

The benefit of ZB2MQTT is that it supports way more devices than ZHA. And that they even have a database of supported devices. Together with hints on how to pair them (e.g. what buttons to press how often, or how long, to start the pairing process).

https://www.zigbee2mqtt.io/supported-devices/ (takes a bit longer to load because it's quite a few devices)

For ZHA you cannot really know if a device is supported. Unless you search in forums. A bit tedious, if you ask me

Once the other side: once Thread/Matter materializes, then ZHA will support that, but ZB2MQTT most likely not.

cassidy, to SmartHome
@cassidy@blaede.family avatar

Very work-in-progress, but I have started to document my smart home stuff on my website! This might end up turning into a whole subsection once I figure out how I actually want to organize it, but for now, it’s a dumping ground all on one page. 😅

https://cassidyjames.com/home

cassidy,
@cassidy@blaede.family avatar

@derek huzzah! I will say that the Nest camera integration is not really better with the Starling Home Hub and Home Assistant, though it was easier to set up. The cameras are really low frame rate and delayed, though. 😞

You do get all the recognition stuff exported as sensors though, which is dope; for example, you get a “motion” sensor, “unfamiliar face” sensor, and familiar face sensors for every saved face on each camera which opens up a lot of interesting stuff.

cassidy,
@cassidy@blaede.family avatar

@derek the best part for me was being able to integrate my Nest × Yale Lock, Nest Protects, and Nest Floodlights as regular devices. Well worth it.

bedast, to homeassistant
@bedast@squirrelmob.com avatar

Ugh, having issues with my Zigbee network after some updates. Not sure if issues with Zigbee2mqtt or issues with the coordinator.

Since ZHA has had such big advancements recently, I'm now getting tempted to migrate back, and maybe see if it does a bit better.

bedast,
@bedast@squirrelmob.com avatar

@po3mah I ended up relocating the coordinator. There's a bit of metal around where it was mounted so I figured I'd elevate it over all of that and see what happens.

It seems the mesh is reassembling a bit better with this and things are behaving better.

If this ends up being the solution, it's just weird that it suddenly became an issue after several months.

po3mah,
@po3mah@mastodon.social avatar

@bedast Yeah, it's weird. I had no problems for 2 years, this was the first time.

thoralf, to homeassistant German
@thoralf@soc.umrath.net avatar

Die Stabilität von @homeassistant hat in den letzten Monaten spürbar gelitten.

Aus irgendwelchen Gründen führt die Instanz jetzt wiederholt (random?) selbstständig Neustarts aus. (Homeassistant selbst, nicht das OS)

Ich werde wohl erstmal von Homeassistant Blue auf Proxmox/HAOS umziehen, damit ich die Dienste entzerren kann.
Leider ist auch hier eher wenig nutzerfreundlich und macht es sehr schwer, Fehler zu finden.

holgerschurig,

@thoralf @homeassistant

Oh, das ist tricky. Die ganzen Backtraces zeigen einfach nur den Zustand der vielen Python-Prozesse. Sie selbst sind an sich nicht der Fehler, nur Zusatzinfo.

Der eigentliche Fehler jedoch ist dies:

Fatal Python error: Segmentation fault

Es trat also ein Fehler INNERHALB von Python selbst auf. Oder ... alternativ, in einem Python-Module, das über in C geschriebene Anteile enthält. Es war also ein Fehler auf C bzw. Maschinensprache. Kein Fehler auf Ebene von Python.

Um sowas zu debuggen, braucht man i.d.R. einen coredump.

Wenn Du so ein *core File irgendwo hast (z.B. im config-Directory), dann attache das auch noch bei dem Bugreport.

Da ich aber ein x86-HAOS Einsetze und nicht wie Du ein ARM-Device habe, kann ich Dir nicht weiterhelfen. Man würde so einen Coredump zusammen mit den python-Binary (mit Debug-Symbolen) in den gdb Debugger laden und dann auf Maschinensprache-Ebene gucken, wo er ausstieg. Aber ich habe ja Dein arm-Python nicht hier, und schon gar nicht mit Debug-Infos.

(Gute Idee übrigens, gleich einen Bugreport anzulegen!)

holgerschurig,

@thoralf @homeassistant Da hast Du einerseits recht.

Andererseits läuft so ein Home-Assistant auf den ARM Plattformen i.d.R. auf sehr kleinen Systemen. Denke den Raspi 3 mit SD-Karte.

Und für solche speziellen Embedded Systemen wird dann halt oft ein minimales Userspace installiert. Also z.B. Busybox. Oder sehr rudimentäres Logging.

Auf besseren ARM Prozessoren (so ab i.MX6) kann man aber auch ohne Abstriche ein Standard-Debian nehmen. Gibt's auch für armhf und arm64.

Ich würde das greppen auch eher auf den Desktop machen. So im Sinne von:

#!/bin/sh
ssh ha.local cat /config/home-assistant.log | \
grep dies |\
grep -v das

denn man kann bei SSH ja direkt ein Kommando mit angeben.

cassidy, to SmartHome
@cassidy@blaede.family avatar

I love how you can see when it started raining based on our humidity sensors around the house.

cassidy,
@cassidy@blaede.family avatar

@sumokirby it’s a bit of an ironic name; it’s a small spare bedroom with a TV and couch. 😁

cassidy,
@cassidy@blaede.family avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • osvaldo12
  • ngwrru68w68
  • GTA5RPClips
  • provamag3
  • InstantRegret
  • everett
  • Durango
  • cisconetworking
  • khanakhh
  • ethstaker
  • tester
  • anitta
  • Leos
  • normalnudes
  • modclub
  • megavids
  • lostlight
  • All magazines