Hi @itayd100 which version of the firmware are you using. If it was 0.4.3rc2 it could have been a problem as LTO was enabled due to which sleep was not working as expected.
If you have the option of testing locally, please try the firmware’s develop branch: https://github.com/spark/firmware/tree/develop
A new release for use with Web IDE should happen in the next week.