pantherale0 / ha-nintendoparentalcontrols

Home Assistant integration for Nintendo Switch Parental Controls
MIT License
81 stars 7 forks source link

Time Remaining should take Bedtime Alarm into Account #90

Closed JokerGermany closed 6 months ago

JokerGermany commented 6 months ago

Checklist

Describe the solution you'd like

Not a very important Request, but it would nice if the Time Remaining Sensor would take the BedTime Alarm into account

JokerGermany commented 6 months ago

@pantherale0 with 2023.3.3 bed time isn't taken in account anymore.

pantherale0 commented 6 months ago

It should be, if bedtime is less than the time remaining it will show the time until bedtime, otherwise it will just show the amount of time left until the limit is up.

My home assistant instance doesn't exist at the moment due to moving house, but I'll take a look at this again in the next couple of weeks.

JokerGermany commented 6 months ago

It doesn't. It worked with 2023.3.2 , but then play time limit wasn't taken into account. grafik It's 12 minutes after bedtime. It showed me today at 14 that 10 hours remaining, despite bed time alarm was in 8 hours.