项目作者: jimmy93
项目描述 :
Home Assistant - Covid-19 Malaysia daily sensor
高级语言: Python
项目地址: git://github.com/jimmy93/Malaysia-Daily-Covid-19-Home-Assistant.git
Home Assistant Covid 19 Malaysia
Home Assistant - Covid-19 Malaysia daily sensor based on csv from this great repo
Intro
Default Covid-19 data for Home Assistant can get from this https://www.home-assistant.io/integrations/coronavirus
But i found it only display the cumulative data. Im thinking of how to display the data daily as seen on TV.
Just found this great repo who commit daily data for Malaysia as CSV.
How It Work
- Made the py code to read CSV (read the last row) and convert it to json format
- Extract the output json as sensor on Home Assistant configuration.yaml
How To Setup
- Download covid.py and put in on local folder as configuration.yaml
- copy code from configuration.yaml to our HA.
Sensor create from configuration.yaml
- covid_kes_baharu
- covid_kes_mati
- covid_jumlah_kes
- covid_jumlah_kes_mati
- covid_kes_sembuh
- covid_jumlah_kes_sembuh
- covid_icu
- covid_support
Additional Option
- You may vary your sensor accordingly such as to add
unit_of_measurement
or anything else. - Check out csv data by state from source repo.
Thanks
FB: A Jimm Al