!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

514 Members
Declarative Home Automation and other Sidequests | https://wiki.nixos.org/wiki/Home_Assistant130 Servers

Load older messages


SenderMessageTime
24 Aug 2021
@noah:matrix.chatsubo.cafeChurchUgh right, it's deconz. I'll give the unit override a try in a bit.10:28:42
@noah:matrix.chatsubo.cafeChurch

hexa: So made the DeviceAllow tweak:

  systemd = {                                                                   
    services = {                                                                
      home-assistant = {                                                        
        serviceConfig = {                                                       
          DeviceAllow = [ "/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2448684-if00" ];
        };                                                                      
      };                                                                        
    };                                                                          
  };

Still seeing a connection error.

10:39:28
@hexa:lossy.network@hexa:lossy.networkhome-assistant logs?10:40:56
@hexa:lossy.network@hexa:lossy.network try char-ttyACM rw instead of the serial device 10:41:25
@noah:matrix.chatsubo.cafeChurchNothing in logs10:43:06
@noah:matrix.chatsubo.cafeChurch Tried that, see this in the unit: DeviceAllow=char-ttyACM rw
Seeing failed to connect still. Nothing in logs.
10:44:41
@noah:matrix.chatsubo.cafeChurchHmm wonder if there's a debug log flag somewhere....10:45:02
@noah:matrix.chatsubo.cafeChurchHmm not seeing anything with debug logs turned on.10:49:31
@hexa:lossy.network@hexa:lossy.networkcan you try /dev/ttyACM0?10:50:59
@noah:matrix.chatsubo.cafeChurchAh there we go... here's something10:51:28
@noah:matrix.chatsubo.cafeChurchDownload hass.logs10:54:10
@noah:matrix.chatsubo.cafeChurchGetting a permission denied error10:54:23
@noah:matrix.chatsubo.cafeChurch * Getting a permission denied error trying to probe the /dev/ path10:55:32
@hexa:lossy.network@hexa:lossy.networkright, can you test https://github.com/NixOS/nixpkgs/pull/135540?11:05:36
@hexa:lossy.network@hexa:lossy.network
In reply to @hexa:lossy.network
can you try /dev/ttyACM0?
or that :)
11:06:23
@noah:matrix.chatsubo.cafeChurchYeah sure11:12:46
@noah:matrix.chatsubo.cafeChurchSame issue11:13:40
@noah:matrix.chatsubo.cafeChurchLet me try adding rw11:13:53
@noah:matrix.chatsubo.cafeChurch Still seeing serial.serialutil.SerialException: [Errno 13] could not open port /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2448684-if00: [Errno 13] Permission denied: '/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2448684-if00' 11:15:59
@hexa:lossy.network@hexa:lossy.networkwho owns that serial device?11:16:38
@noah:matrix.chatsubo.cafeChurchHmm, possibly root.11:42:29
@noah:matrix.chatsubo.cafeChurchGuess I can chown it11:42:46
@noah:matrix.chatsubo.cafeChurchYeah that did it heh11:44:43
@etu:semi.socialetuNo group like dialout?11:46:38
@etu:semi.socialetuDialout is common for serial devices11:46:45
@noah:matrix.chatsubo.cafeChurchYeah I'd have to see who owns it exactly when I plug back in. I'm assuming root.11:48:55
@hexa:lossy.network@hexa:lossy.networkneeds less assumptions, more facts 😀12:05:50
@andi:kack.it@andi:kack.itjust run everything as root ;)12:07:20
@etu:semi.socialetuI've added my home assistant user to the dialout group at some point: https://github.com/etu/nixconfig/blob/main/hosts/fenchurch/services/hass.nix#L41112:11:07
@hexa:lossy.network@hexa:lossy.networkthe service is automatically part of the dialout group if your config mentions the correct components. https://github.com/NixOS/nixpkgs/blob/df2f45b347d57bdc99aaa96ee227a37f5201c9dc/nixos/modules/services/misc/home-assistant.nix#L370-L37212:20:37

Show newer messages


Back to Room ListRoom Version: 6