Webcal.fi no longer works - Breaks Flag Sensor
https://github.com/uherting/MyHA-Configuration/issues/1
https://github.com/Backslashh/homeassistant-config/issues/18
Should be able to leverage WolfRAM TO DETERMINE IF IT'S FLAG DAY OR NOT.
wolframalpha_flagday_api: https://api.wolframalpha.com/v2/result?appid=JIUY8U-4V8KY45VT1&i=IS%20TODAY%20FLAG%20DAY
- platform: rest
name: Halloween Countdown
resource: !secret wolframalpha_flagday_api
# value_template: "{{ (value|replace(' days', '')) | int }}"
# unit_of_measurement: Days
scan_interval: 43200
btw: Though it is commented out I just want to point out that the use of some construct like '| int' might cause errors from Home Assistant core 2022.1 on if the sensor provides a 'unavailable'. In this case a '| int(9999)' where 9999 is the default value would help. Came across this a few days ago and would like make people aware of the problem ahead of the time an error will appear.
Should be able to leverage WolfRAM TO DETERMINE IF IT'S FLAG DAY OR NOT.
This is proving more difficult than I thought since WolfRam alpha only tells me if it's ACTUALLY FLAG day (JUNE 14TH) and not A flag worthy day.. https://blog.directauto.com/car-life/days-to-fly-american-flag/
Might need to build a different way to do this .. maybe a combination of an XML file and some wolfram alpha .. or maybe this could be my first HACS integration. hmmm..
Direct ConnectThere are so many great days to fly the American flag! See them all and learn the correct way to display the American flag, from Direct Auto Insurance!
https://github.com/metbril/home-assistant-config/issues/56
You should be able to fix this easily.
https://github.com/metbril/home-assistant-config/issues/56#issuecomment-1264230073
You should be able to fix this easily.
This solution seems to require a subscription too (for the flag calendar specifically).