How To Reload with Automation Netatmo Service for Accurate Roller Shutter Adjustment in Home Assistant

Hello,

I am trying to set up an automation in Home Assistant to adjust my roller shutters to a specific level every night after sunset.

However, I face an issue where there is sometimes a discrepancy between the actual shutter position and the position recorded in Home Assistant When I lower or raise Roller Shutter manually

To solve this, I need to manually reload the Netatmo service to sync the actual shutter position with Home Assistant. Settings/Device and services/Netatmo/Three Dots in Upper Right/Reload

Current Workflow:

  • Every evening after sunset, I want my roller shutters to adjust to a specific level only IF the actual position is lower than the desired level.
  • However, sometimes the real shutter position doesn’t match what’s recorded in Home Assistant.
  • To correct this, I manually reload netatmo service, which updates the actual shutter positions.
  • Once the service reloads successfully, I can then make sure my shutters adjust correctly to the desired level.

Problem:

  • When i User REST, The Bearer token used for the netatmo reload service expires after some time.
  • After the token expires, I am unable to automatically call the reload service if i use with REST service like:
  • POST : https://[home-assitant-link]/api/config/config_entries/entry/01JGF7xx7MJV5WxxVA2A3xxWSF/reload
  • I need a way to automatically use this service on the automation i created, so I don’t have to do this manually each time.

What I Need:

  • I would like to include the following steps in my automation:
  • Automatically reload the Netatmo service before adjusting the shutters to ensure that Home Assistant has the correct shutter position.
  • If the actual shutter position is lower than what I have requested, I want to lower the shutters.
  • If the actual shutter position is already at or above the requested level, I don’t want to change anything.

Question :
Is there a way to automatically refresh in Home Assistant the Netatmo service instead to do it manually Settings/Device and services/Netatmo/Three Dots in Upper Right/Reload ?