Philips light night mode

Hello everyone.
Plz help me understand how to control night mode on Philips Smart LED Ceiling Lamp?
I read about it in article, but can’t figure out how to control night mode

Wanna have automation code =)

The service to turn on the night light is this:
xiaomi_miio.light_night_light_mode_on

If you want to have it in an automation, the action part would look like this:

action:
      service: xiaomi_miio.light_night_light_mode_on
      entity_id: light.xxxx #entity_id of your light

I use Philips Xiaomi light, which shows like philips.light.ceiling and this code doesn’t work(

Can you show the full automation?

Your light doesn’t have this name, it needs to be something like light.xxx. The first part of the entity_id is the domain like light, switch, etc. and philips. is not a valid domain. Go to Developer Tools → States to see the entity_id.

This is my automation.

- alias: Hall light turn on if movement
  initial_state: true
  trigger:
    - platform: state
      entity_id: binary_sensor.hall_movement
      to: 'on'
  condition:
    condition: and
    conditions:
    - condition: state
      entity_id: light.hall_light
      state: 'off'
    - condition: template
      value_template: '{{ state_attr("sun.sun", "elevation") < 5 }}'
#  action:
#    service: homeassistant.turn_on
#    entity_id: light.hall_light
#    data:
#      entity_id: light.hall_light
#      brightness: 10
#      color_temp: 350
  action:
      service: xiaomi_miio.light_night_light_mode_on
      entity_id: light.hall_light

Does your light support the light night mode? Your light should have an attribute “night_mode” if you check Developer Tools -> States.
Did you try whether the night light service works with this bulb under Developer Tools-> Services?

Lamp shoud have moonlight mode, (see this https://youtu.be/OJIvSRhrqbQ?t=767).
Is it night mode in HA?

Info from HA below.

min_mireds: 175
max_mireds: 370
model: philips.light.ceiling
scene: 0
delayed_turn_off: null
night_light_mode: false
automatic_color_temperature: false
friendly_name: Hall light
supported_features: 3

It supports night light mode. When you do the service call under Developer Tools -> Services does it work or do you get an error?

No reactions, no error (empty in logs)

Can you take a dcreenshot of Developer Tools -> States of rhis entity?

Please

Try xiaomi_miio.light_set_scene service and choose night scene.

set_scene is working for me. thanks for sharing.

night_light:
  sequence:
  - service: xiaomi_miio.light_set_scene
    data:
      entity_id: light.bedroom_light
      scene: 4