That’s interesting. I’m not familiar with zha.permit. Does enabling it have any effects on devices already connected?
I assume something like this is what you mean.
alias: ZHA Permit Nightly
description: 'Enable zha.permit for 15 minutes at 4am'
mode: single
trigger:
- platform: time
at: '04:00:00'
condition: []
action:
- service: zha.permit
data:
duration: 900
I’ll try it out and report back.