zubir2k / HomeAssistantAdzan

🕋 Automation for Malaysia Adzan (Muslim call to prayer) based on JAKIM API. Give support by pressing the ⭐ button. Jazakallahu khair
https://sini.la/homeassistantmalaysia
The Unlicense
25 stars 8 forks source link

Sensors state turn unavailable after some time #4

Closed hzq23x closed 2 weeks ago

hzq23x commented 3 weeks ago

Happened multiple times within last year, always after restart or update. refresh doesn't work, reinput state code doesn't work, change sources doesn't work.

zubir2k commented 3 weeks ago

Salam

Thanks for the feedback.

Thats quite odd considering the template fetches the data from Jakim every 30sec.

Perhaps you could provide a little bit more detail such as sensor name, and during what time it turned to 'unavailable'

Also consider using local source as it store the solat data locally into your HA and reduce the reliance on Jakim API. If selecting local did not work, try run the 'Yearly Update' automation.

Hope this helps.

Thanks

hzq23x commented 2 weeks ago

Wslm.

Actually now it resolved randomly without restart/automation

it affects all the waktu solat sensor and hijri date. Usually happens after HA update and would last few days, happening for maybe over a year since first install

Tried switch to local + yearly refresh, still unavailable. Also tried clean reinstall, no change

local source actually hasn't worked since first install. followed all instruction on video and also on the github for install

hzq23x commented 2 weeks ago

Screenshot 2024-09-16 172958

as shown here, turns unavailable at random times, without any change to config or HA and doesn't fix with manual control refresh or yearly update/startup refresh automation

hzq23x commented 2 weeks ago

could be API issue on jakim end? esolat website is currently down

hzq23x commented 2 weeks ago

image

yup, it is probably server side issue. will close issue. do reach out if possible if there is any alternative solution