Skip to content

This custom integration provides a way to present a live view of Russian army slaughter in a war.

Notifications You must be signed in to change notification settings

ALX-TH/ha_russiancrimesinua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

[Home Assistant integration] Losses of the Russian army in a war with Ukraine

UI Lovelace

This custom home assistant integration provides a way to present a live view of Russian army slaughter in a war with Ukraine.

Installation

To install this integration manually you have to download russiancrimesinua and put its content to config/custom_components/russiancrimesinua directory.

Configuration

After installation of the custom component, it needs to be configured in configuration.yaml file.

Examples

sensor:
    - platform: russiancrimesinua
      name: russiancrimes

Customisation

    sensor.russiancrimesinua_aircraft:
      friendly_name: Літаки
      icon: mdi:airplane
    sensor.russiancrimesinua_artillery:
      friendly_name: Артилерія
      icon: mdi:train-car-flatbed-tank
    sensor.russiancrimesinua_helicopters:
      friendly_name: Гелікоптери
      icon: mdi:helicopter
    sensor.russiancrimesinua_killed:
      friendly_name: Особовий склад
      icon: mdi:face-man
    sensor.russiancrimesinua_ships:
      friendly_name: Кораблі та катери
      icon: mdi:ferry
    sensor.russiancrimesinua_tanks:
      friendly_name: Танки
      icon: mdi:tank
    sensor.russiancrimesinua_vehicles:
      friendly_name: Бойові броньовані машини
      icon: mdi:car-estate
    sensor.russiancrimesinua_updater:
      friendly_name: Оновлення
      icon: mdi:clock-check-outline

UI Lovelace

title: War
icon: mdi:alert-decagram
path: war
id: war
cards:

- type: vertical-stack
  cards:
      - type: vertical-stack
        cards:
         - type: markdown
           content: |
              # Шо там по русні

      - type: vertical-stack
        cards:
        - type: entities
          entities:
            - entity: sensor.russiancrimesinua_aircraft
            - entity: sensor.russiancrimesinua_artillery
            - entity: sensor.russiancrimesinua_helicopters
            - entity: sensor.russiancrimesinua_killed
            - entity: sensor.russiancrimesinua_ships
            - entity: sensor.russiancrimesinua_tanks
            - entity: sensor.russiancrimesinua_vehicles
            - entity: sensor.russiancrimesinua_updater

Automatization

- id: telegram_command_russia_slaughter
  alias: Telegram - Get Russian slaughter in a war with Ukraine
  trigger:
    platform: event
    event_type: telegram_command
    event_data:
      command: '/russiaslaughter'
  action:
    service: notify.telegram_bot
    data_template:
      message: |
       🙎‍♂️ Особовий склад: {{ states('sensor.russiancrimesinua_killed') | int(default = 0) }}.
       🚀 Артилерія: {{ states('sensor.russiancrimesinua_artillery') | int(default = 0) }}.
       🛩️ Літаки: {{ states('sensor.russiancrimesinua_aircraft') | int(default = 0) }}.
       🚁 Гелікоптери: {{ states('sensor.russiancrimesinua_helicopters') | int(default = 0) }}.
       🛞 Танки: {{ states('sensor.russiancrimesinua_tanks') | int(default = 0) }}.
       🛳️ Кораблі та катери: {{ states('sensor.russiancrimesinua_ships') | int(default = 0) }}.
       🚘 Бойові броньовані машини: {{ states('sensor.russiancrimesinua_vehicles') | int(default = 0) }}.
      title: "Орієнтовні втрати росії у війні з Україною"

About

This custom integration provides a way to present a live view of Russian army slaughter in a war.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages