!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

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

Load older messages


SenderMessageTime
24 Aug 2021
@noah:matrix.chatsubo.cafeChurchComponent is a conbee202:52:42
@etu:semi.social@etu:semi.socialOh, I have exact same device, but I tend to pin my home assistant to a nixpkgs revision and only update it now and then08:34:42
@etu:semi.social@etu:semi.socialMy zigbee is working at the moment, but haven't updated hass in a while, haven't had the time.08:35:02
@hexa:lossy.network@hexa:lossy.network right, so we set DeviceAllow to char-tty{ACM,AMA,USB} rw 10:02:31
@hexa:lossy.network@hexa:lossy.network if /dev/ttyACM0 works and /dev/serial/by-id/ we should probably open a systemd issue? 10:03:17
@hexa:lossy.network@hexa:lossy.network * if /dev/ttyACM0 works and the same device linked into /dev/serial/by-id/ does not, we should probably open a systemd issue? 10:03:39
@hexa:lossy.network@hexa:lossy.network what you can always do is systemd.services.home-assistant.serviceConfig.DeviceAllow = [ "/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2448684-if00" ]; 10:04:35
@hexa:lossy.network@hexa:lossy.network Church: conbee2 does not seem to be a home-assistant component 10:05:22
@hexa:lossy.network@hexa:lossy.networkyou probably meant deconz?10:05:46
@hexa:lossy.network@hexa:lossy.network etu: and you? 10:05:50
@etu:semi.social@etu:semi.socialI use the zha thingy I think10:07:08
@etu:semi.social@etu:semi.socialThey deprecated specifying the device in config some time ago: https://github.com/etu/nixconfig/blob/main/hosts/fenchurch/services/hass.nix#L297-L30310:07:44
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/misc/home-assistant.nix#L276-L31710:07:58
@hexa:lossy.network@hexa:lossy.network if Church uses deconz we likely didn't give them permissions for serial access 10:08:37
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/NixOS/nixpkgs/pull/13554010:11:27
@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

There are no newer messages yet.


Back to Room ListRoom Version: 6