Command line sensors not updating

Hi everyone!
I have some command line sensors that are running some python scripts, the py script is accessing an websites of local provider(energy, internet,tv…) and scrap that page and bring me the money balance.
Based on json output of py I have some sensors on lovelace.
The problem is that the sensors are not automatically updating, I have set the scan interval to 600 sec but nothing happened even after one week…
If I reset the HA the the sensors are updating fine but only after I reset the HA… then they are not auto-updating…

Please post your sensor code.

- platform: command_line
  name: Electrica Colacu
  command: !secret electrica_get_info_py
  json_attributes:
  - facturi
  - sold
  scan_interval: 600
  value_template: '{{ value_json.sold }}' 

Did you figure this out?

Yes, seems that if the value of json is not changed during the update the update time in database is not changed. But I the sensor it’s working fine.