Invalid option : camera_light_mode

Hello,

As I am a beginner I struggle with a config/option error in the following automation:

- id: Opritcamera_light_mode_off_23u
  alias: Opritcamera light mode off om 23u
  trigger:
    - at: '23:00'
      platform: time
  action:
    - service: netatmo.set_camera_light
      entity_id: camera.netatmo_netatmo_oprit
      camera_light_mode: 'off'


ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [camera_light_mode] is an invalid option for [automation]. Check: automation->action->0->camera_light_mode. (See /config/configuration.yaml, line 24).

Works fine:

Thx for the help.

Try this:

  action:
    - service: netatmo.set_camera_light
      data:
        entity_id: camera.netatmo_netatmo_oprit
        camera_light_mode: 'off'

Though according to this: https://www.home-assistant.io/integrations/netatmo/#services

It should be:

  action:
    - service: netatmo.set_camera_light_mode
      data:
        entity_id: camera.netatmo_netatmo_oprit
        state: 'off' # not sure about this, the documents are very vague

But if your test in the developer tools services worked than the first example above should too.

The first example works fine. Second doesn’t work.

Thx for the help.