Groups.all_lights in automation only turns HUE lights off, but not zwave lights

731 away_turn_off:
732 alias: ‘Away turn off after 10min’
733 sequence:
734 - delay:
735 minutes: 1
736 - service: light.turn_off // I’ve tried homeassistant.turn_off here too
737 entity_id: group.all_lights

It works with group.living_room. All the relevant lights show as included in group.all_lights.

I do see occasional “zwave not ready a
fter 30 seconds, continuing anyway” messages in my logs.

I’m not quite sure, but it might be that the group.all_lights is coming from your hue bridge since there is also an “all lights” button. Have you tried to define your own all lights group in groups.yaml?