- id: ring_doorbell
alias: there's someone at the door
trigger:
platform: state
entity_id: sensor.doorbell_button_action
to: "single"
action:
service: notify.doorbell
data:
message: bell.mp3
Gah, just installed it to read “This add-on is not compatible with the processor of your device or the operating system you have installed on your device.”
ok, updated config.json to match my Pi (armv7), getting closer…
It’s not bad actually, approx 700ms or so? For what I want it for (triggering from door sensors, motion sensors etc) it’s OK.
More baffling at this stage is why it won’t play any of the other WAV or MP3 files that I have put into the media folder. Have set permissions to 777 and they are small/basic files (the original MacOS sounds, i.e. quack, ding, etc, 4kb files or so) but for whatever reason however many times I restart/reboot/fiddle w my automations.yaml file I get this with any other file:
FileNotFoundError: [Errno 2] No such file or directory: ‘./media/quack.wav’
[2021-03-16 21:10:58,327] ERROR in app: Exception on /play [GET]
Is the “bell.mp3” filename baked into things with this add-on?
EDIT - I’m realising now (and still only half understand) that the files I am seeing via SAMBA are not the actual files that are being used in situ by Home Assistant (I’m running Home Assistant OS). Have tested this by substituting a quack sound as ‘bell.mp3’ and doing a full restart, and yet still I get your original bell, and not my quack. Will need to get head around how Home Assistant OS is containerising things so I can get the files where they need to go. Still, making progress! I can make a specific sound, which is miles of progress from where I was!
EDIT2 - had a look in the Dockerfile, figured out what’s going on in that the media folder is being imported at the time of initial installation rather than on the fly. Door is now quacking. Wife will be home soon and unlikely to be impressed with a quacking door, but I am pumped for what I have accomplished.
Hi, first tanks a lot for sharing this piece of work, really usefull.
Already installed, update config, and build automation, but I’m not getting it to work.
I tried nofify.doorbell with doorbell.mp3 on services in developer tools to further test but I get nothing.
Any idea? on how to debug it?
thanks
[edit] speakers cable malfunctioning. It’s working. great job thank very much
bests