{"id":15659473,"url":"https://github.com/alexxit/yandexcovid","last_synced_at":"2025-05-05T19:29:02.834Z","repository":{"id":104871837,"uuid":"248473892","full_name":"AlexxIT/YandexCOVID","owner":"AlexxIT","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-13T16:55:32.000Z","size":31,"stargazers_count":22,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-30T23:04:15.878Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://yandex.ru/web-maps/covid19","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexxIT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-03-19T10:28:40.000Z","updated_at":"2023-12-02T14:01:38.000Z","dependencies_parsed_at":"2023-10-20T16:36:14.983Z","dependency_job_id":null,"html_url":"https://github.com/AlexxIT/YandexCOVID","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexxIT%2FYandexCOVID","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexxIT%2FYandexCOVID/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexxIT%2FYandexCOVID/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexxIT%2FYandexCOVID/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexxIT","download_url":"https://codeload.github.com/AlexxIT/YandexCOVID/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252562466,"owners_count":21768297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T13:17:05.394Z","updated_at":"2025-05-05T19:29:02.815Z","avatar_url":"https://github.com/AlexxIT.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yandex COVID-19\n\n[![hacs_badge](https://img.shields.io/badge/HACS-Custom-orange.svg)](https://github.com/custom-components/hacs)\n\nСенсор по данным Яндекса: https://yandex.ru/web-maps/covid19\n\nОсновные моменты:\n- есть **региональная статистика**, есть ли ваш регион - смотрите на карте Яндекса\n- статистика не по городам, а по регионам! Москва и Санкт-Петербург исключения\n- есть количество **проведённых тестов** по стране\n\n## Установка и настройка\n\nУстанавливается через HACS.\n\nНастраивается в `configuration.yaml`:\n\n`include` - опциональный параметр, без него сенсор будет хранить данные по всему миру, что приводит к ошибкам переполнения БД у некоторых пользователей\n\nЗабавный факт - Россия не участвует в суммарных данных по Миру по мнению Яндекса.\n\n```yaml\nsensor:\n- platform: yandex_covid\n  include:\n    - Мир\n    - Россия\n    - Москва\n    - Самарская область\n    - Самара\n    - Тольятти\n\n- platform: template\n  sensors:\n    covid_world_cases:\n      friendly_name: Заражений в Мире\n      icon_template: mdi:emoticon-neutral-outline\n      unit_of_measurement: people\n      value_template: \"{{ state_attr('sensor.yandex_covid', 'Мир')['cases'] }}\"\n    covid_world_cured:\n      friendly_name: Выздоровлений в Мире\n      icon_template: mdi:emoticon-happy-outline\n      unit_of_measurement: people\n      value_template: \"{{ state_attr('sensor.yandex_covid', 'Мир')['cured'] }}\"\n    covid_world_deaths:\n      friendly_name: Смертей в Мире\n      icon_template: mdi:emoticon-dead-outline\n      unit_of_measurement: people\n      value_template: \"{{ state_attr('sensor.yandex_covid', 'Мир')['deaths'] }}\"\n\n    covid_russia_cases:\n      friendly_name: Заражений в России\n      icon_template: mdi:emoticon-neutral-outline\n      unit_of_measurement: people\n      value_template: \"{{ state_attr('sensor.yandex_covid', 'Россия')['cases'] }}\"\n    covid_russia_cured:\n      friendly_name: Выздоровлений в России\n      icon_template: mdi:emoticon-happy-outline\n      unit_of_measurement: people\n      value_template: \"{{ state_attr('sensor.yandex_covid', 'Россия')['cured'] }}\"\n    covid_russia_deaths:\n      friendly_name: Смертей в России\n      icon_template: mdi:emoticon-dead-outline\n      unit_of_measurement: people\n      value_template: \"{{ state_attr('sensor.yandex_covid', 'Россия')['deaths'] }}\"\n    covid_russia_new_cases:\n      friendly_name: Новых случаев в России\n      icon_template: mdi:emoticon-cry-outline\n      unit_of_measurement: people\n      value_template: \"{{ state_attr('sensor.yandex_covid', 'Россия')['new_cases'] }}\"\n    covid_russia_tests:\n      friendly_name: Проведено тестов в России\n      icon_template: mdi:test-tube\n      unit_of_measurement: people\n      value_template: \"{{ state_attr('sensor.yandex_covid', 'Россия')['tests'] }}\"\n\n    covid_moscow_cases:\n      friendly_name: Заражений в Москве\n      icon_template: mdi:emoticon-neutral-outline\n      unit_of_measurement: people\n      value_template: \"{{ state_attr('sensor.yandex_covid', 'Москва')['cases'] }}\"\n    covid_moscow_cured:\n      friendly_name: Выздоровлений в Москве\n      icon_template: mdi:emoticon-happy-outline\n      unit_of_measurement: people\n      value_template: \"{{ state_attr('sensor.yandex_covid', 'Москва')['cured'] }}\"\n    covid_moscow_deaths:\n      friendly_name: Смертей в Москве\n      icon_template: mdi:emoticon-dead-outline\n      unit_of_measurement: people\n      value_template: \"{{ state_attr('sensor.yandex_covid', 'Москва')['deaths'] }}\"\n    covid_moscow_isolation:\n      friendly_name: Индекс самоизоляции Москвы\n      icon_template: mdi:home-lock\n      unit_of_measurement: \" \"\n      value_template: \"{{ state_attr('sensor.yandex_covid', 'Москва')['isolation'] }}\"\n\n    covid_samara_cases:\n      friendly_name: Заражений в Самарской области\n      icon_template: mdi:emoticon-neutral-outline\n      unit_of_measurement: people\n      value_template: \"{{ state_attr('sensor.yandex_covid', 'Самарская область')['cases'] }}\"\n    covid_samara_cured:\n      friendly_name: Выздоровлений в Самарской области\n      icon_template: mdi:emoticon-happy-outline\n      unit_of_measurement: people\n      value_template: \"{{ state_attr('sensor.yandex_covid', 'Самарская область')['cured'] }}\"\n    covid_samara_deaths:\n      friendly_name: Смертей в Самарской области\n      icon_template: mdi:emoticon-dead-outline\n      unit_of_measurement: people\n      value_template: \"{{ state_attr('sensor.yandex_covid', 'Самарская область')['deaths'] }}\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexxit%2Fyandexcovid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexxit%2Fyandexcovid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexxit%2Fyandexcovid/lists"}