Stream record fail

Hi all

I’ve tried to record a stream following wiki with current config:

- id: '1556740994130'
  alias: Record
  trigger:
  - entity_id: input_boolean.fuera_casa
    from: 'off'
    platform: state
    to: 'on'
  condition: []
  action:
  - data:
      duration: 30
      filename: /tmp/test.mp4
    service: camera.record
    entity_id: camera.dafangnew

Service launches fine, with no errors (from automations or even from nodered); but I cannot find any file on /tmp; I made sure is on the white list in configuration and service does not exit with error but at the end, no file is generated.

Camera entity is an rstp not HLA from a Xiaomi Dafang hacked; working fine in lovelace.

Thx