Why I didn't have the state updated in HA from my sensors?

I have no idea why you are trying to do that but here’s a python_script that allows you to set an entity’s state value:

Just don’t forget that if you use it to change the binary_sensor’s from on to off, no matter how briefly it remains off before it changes back to on, the off state will be recorded in the database and the two state-changes (from on to off and then back to on) will trigger any automations you may have that are listening for state-changes.