Set camera light mode dont work (Netamo)

Does this function not work anymore ?

Hi all,

I´ve the same problems. It had worked fine in the past, but I can´t remember the working version though.
At first I´d think it is a bug, but it doesn´t look like so (see: netatmo.set_camera_light · Issue #80376 · home-assistant/core · GitHub). My test with the developer tool was also unsuccessful.

I´ve reinstalled the netatmo integration, hope to solve the problem. But it doesn´t work again.
When I try to change the light mode (on/off/auto) in the developer tools with service ´netatmo.set_camera_light´ and the netatmo entitiy, there is no action for the camera light, also no entries in the logs.
When I try the service ‘light.turn_on’ and ´light.turn_off´ with the netatmo entity light switch to ´on´ and ´auto´. There are also entries in the logs.

2022-12-29 18:36:18.368 DEBUG (MainThread) [homeassistant.components.netatmo.light] Turn camera 'None' on
2022-12-29 18:36:20.799 DEBUG (MainThread) [homeassistant.components.netatmo.webhook] Got webhook data: {'user_id': 602xxxxxxxxxxxxxxxxxxd24', 'event_type': 'light_mode', 'device_id': '70:xx:xx:xx:xx:76, 'home_id': '602xxxxxxxxxxxxxxxxx9cb', 'camera_id': '70:xx:xx:xx:xx:76', 'home_name': 'ByMirDahoam', 'sub_type': 'on', 'push_type': 'NOC-light_mode'}
2022-12-29 18:36:20.800 DEBUG (MainThread) [homeassistant.components.netatmo.webhook] light_mode: {'user_id': '602xxxxxxxxxxxxxxxxxxd24', 'event_type': 'light_mode', 'device_id': '70:xx:xx:xx:xx:76', 'home_id': '602xxxxxxxxxxxxxxxxx9cb', 'camera_id': '70:xx:xx:xx:xx:76', 'home_name': 'ByMirDahoam', 'sub_type': 'on', 'push_type': 'NOC-light_mode'}
2022-12-29 18:39:05.777 DEBUG (MainThread) [homeassistant.components.netatmo.light] Turn camera 'None' to auto mode
2022-12-29 18:39:09.629 DEBUG (MainThread) [homeassistant.components.netatmo.webhook] Got webhook data: {'user_id': '602xxxxxxxxxxxxxxxxxxd24', 'event_type': 'light_mode', 'device_id': '70:xx:xx:xx:xx:76', 'home_id': '602xxxxxxxxxxxxxxxxx9cb', 'camera_id': '70:xx:xx:xx:xx:76', 'home_name': 'ByMirDahoam', 'sub_type': 'auto', 'push_type': 'NOC-light_mode'}

My Configuration:
Home Assistant 2022.12.8
Supervisor 2022.12.1
Operating System 9.4
Frontend 20221213.1 - latest
Netatmo integration with duckdns, NGINX Home Assistant SSL proxy and Application Credentials

What´s happend with my netatmo integration?

After a while, I dedicated myself to this matter again. I came across the following solution. Instead of the “entity” you have to use the “device”, then the Netatmo light can be switched on and off (or auto).

service: netatmo.set_camera_light
data:
  camera_light_mode: "on"
target:
  device_id: yourNetatmo