Home Assistant custom components MPK-Lodz

Overview

MPK Łódź sensor

buymeacoffee_badge paypalme_badge

This sensor uses unofficial API provided by MPK Łódź.

Configuration options

Key Type Required Default Description
name string False MPK Łódź Name of sensor
stops list True - List of stop configurations

Stop configuration

Key Type Required Default Description
id positive integer True - ID of a stop
name string False id Name of a stop
lines list False all available List of monitored lines.
directions list False all available List of monitored directions.

Example usage

sensor:
  - platform: mpk_lodz
      stops:
        - id: 2427
          lines:
            - "o97A"          
        - id: 2873
          directions:
            - "DW. ŁÓDŹ KALISKA"

Installation

Download sensor.py and manifest.json to config/custom_components/mpk_lodz directory:

mkdir -p custom_components/mpk_lodz
cd custom_components/mpk_lodz
wget https://github.com/PiotrMachowski/Home-Assistant-custom-components-MPK-Lodz/raw/master/custom_components/mpk_lodz/sensor.py
wget https://github.com/PiotrMachowski/Home-Assistant-custom-components-MPK-Lodz/raw/master/custom_components/mpk_lodz/manifest.json

Hints

  • Value for stop_id can be retrieved from ITS Łódź. After choosing a desired stop open its electronical table. stop_id is a number visibile in URL.

  • These sensors provides attributes which can be used in HTML card or HTML Template card: html_timetable, html_departures

    • HTML card:
      - type: custom:html-card
        title: 'MPK'
        content: |
          <big><center>Timetable</center></big>
          [[ sensor.mpk_lodz_2427.attributes.html_timetable ]]
          <big><center>Departures</center></big>
          [[ sensor.mpk_lodz_2873.attributes.html_departures ]]
    • HTML Template card:
      - type: custom:html-template-card
        title: 'MPK'
        ignore_line_breaks: true
        content: |
          <big><center>Timetable</center></big></br>
          {{ state_attr('sensor.mpk_lodz_2427','html_timetable') }}
          </br><big><center>Departures</center></big></br>
          {{ state_attr('sensor.mpk_lodz_2873','html_departures') }}

Buy Me A Coffee

You might also like...
Historic weather - Home Assistant custom component for accessing historic weather data

Historic Weather for Home Assistant (CC) 2022 by Andreas Frisch github@fraxinas.

Home Assistant custom component to help ev-chargers stay below peak hourly energy levels.
Home Assistant custom component to help ev-chargers stay below peak hourly energy levels.

Peaqev ev-charging Peaqev ev-charging is an attempt of charging an ev without breaching a preset monthly max-peak energy level. In order for this inte

Universal Xiaomi MIoT integration for Home Assistant
Universal Xiaomi MIoT integration for Home Assistant

Xiaomi MIoT Raw 简体中文 | English MIoT 协议是小米智能家居从 2018 年起推行的智能设备通信协议规范,此后凡是可接入米家的设备均通过此协议进行通信。此插件按照 MIoT 协议规范与设备通信,实现对设备的状态读取及控制。

Volkswagen ID component for Home Assistant

Volkswagen ID component for Home Assistant This folder contains both a generic Python 3 library for the Volkswagen ID API and a component for Home Ass

Sensor of Temperature Feels Like for Home Assistant.

Please ⭐ this repo if you find it useful Sensor of Temperature Feels Like for Home Assistant Installation Install from HACS (recommended) Have HACS in

Интеграция Home Assistant с ЛК
Интеграция Home Assistant с ЛК "Интер РАО"

ЕЛК ЖКХ «Интер РАО» для Home Assistant Предоставление информации о текущем состоянии ваших аккаунтов в ЕЛК ЖКХ. Введение @ TODO @ Установка Посредство

Provide Unifi device info via api to Home Assistant that will give ap sensors
Provide Unifi device info via api to Home Assistant that will give ap sensors

Unifi AP Device info Provide Unifi device info via api to Home Assistant that will give ap sensors

Switch predictor for Home Assistant with AppDeamon

Home Assistant AppDeamon - Event predictor WORK IN PROGRESS - CURRENTLY NOT COMPLETE AND NOT WORK This is an idea under development (when I have free

Uses the Duke Energy Gateway to import near real time energy usage into Home Assistant
Uses the Duke Energy Gateway to import near real time energy usage into Home Assistant

Duke Energy Gateway This is a custom integration for Home Assistant. It pulls near-real-time energy usage from Duke Energy via the Duke Energy Gateway

Comments
  • Zmiana linku przy wyświetlaniu tablicy - nie można zobaczyć ID przystanku

    Zmiana linku przy wyświetlaniu tablicy - nie można zobaczyć ID przystanku

    Zmienił się link przy wyświetlaniu tablic z rozkładem, zamiast http://rozklady.lodz.pl/Home/TimeTableReal?busStopId=1234 wygląda to tak http://rozklady.lodz.pl/Home/TimeTableReal?busStopNum=1234, linki z id nadal działają, więc integracja działa dla kogoś, kto skonfigurował wszystko przed tą zmianą, ale nie można nigdzie znaleźć id przystanków jeśli nie znaliśmy ich wcześniej. Dane pomiędzy tymi dwoma stronami wyglądają identycznie, więc wydaje mi się, że można rozwiązać to, zmieniając link w kodzie integracji, jednak nie udało mi się sprawić, żeby wszystko działało z nowym linkiem.

    bug 
    opened by TheLegend2137 3
  • Oznaczenie niskopodłogowych i klimatyzowanych pojazdów

    Oznaczenie niskopodłogowych i klimatyzowanych pojazdów

    Dziękuję za super integrację MPK Łódź! Działa idealnie, mała prośba, czy da radę wyciągnąć informację o typie pojazdu (tj. czy jest niskopodłogowy i czy ma klimatyzację - informacja o biletomacie zbędna, wszystkie pojazdy MPK je mają) oraz umieszczenie tej informacji w HA? Do tego przydałaby się możliwość wyświetlania komunikatów wyświetlanych na części przystanków dotyczących objazdów czy awarii.

    enhancement 
    opened by DominikWrobel 1
Releases(v1.0.2)
Owner
Piotr Machowski
Home Assistant enthusiast
Piotr Machowski
Home Assistant custom integration for e-distribución

e-Distribución is an energy distribution company that covers most of South Spain area. If you live in this area, you probably are able to register into their website to get some information about your power demand, energy consumption, or even cycle billing (in terms of consumptions).

VMG 17 Sep 7, 2022
Home Assistant custom integration for Yi cameras: yi-hack-MStar, yi-hack-Allwinner and yi-hack-Allwinner-v2

yi-hack Home Assistant integration Overview yi-hack Home Assistant is a custom integration for Yi cameras (or Sonoff camera) with one of the following

roleo 131 Jan 3, 2023
Custom component for Home Assistant that integrates Candy/Haier Wi-Fi washing machines (also known as Simply-Fi).

Candy Home Assistant component Custom component for Home Assistant that integrates Candy/Haier Wi-Fi washing machines (also known as Simply-Fi). This

Olivér Falvai 61 Dec 29, 2022
SALUS THERMOSTAT Custom component for Home-Assistant

Home-Assistant Custom Components Custom Components for Home-Assistant (http://www.home-assistant.io) Salus Thermostat Climate Component My device is R

null 21 Dec 18, 2022
Nordpool_diff custom integration for Home Assistant

nordpool_diff custom integration for Home Assistant Requires https://github.com/custom-components/nordpool Applies non-causal FIR differentiator1 to N

Joonas Pulakka 45 Dec 23, 2022
Smart EQ connect - Custom Integration for Home Assistant

Smart EQ Connect platform as a Custom Component for Home Assistant.

Rene Nulsch 2 Jan 4, 2022
Windhager myComfort custom component for Home Assistant

Windhager myComfort custom component for Home Assistant

null 5 Apr 27, 2022
Custom component for MPC-HC for home-assistant

mpc_hc The current mpchc integration in homeassistant violates ADR0004, so it will be deleted from core. This is just the existing integration copied

null 3 Dec 15, 2022
This Home Assistant custom component adds support for controlling Midea dehumidiferes on local network.

This is a custom component for Home assistant that adds support for Midea dehumidifier appliances via the local area network. midea-dehumidifier-lan H

Nenad Bogojevic 97 Jan 8, 2023
Resmed_myair_sensors - This is a Home Assistant custom component to pull daily CPAP data from ResMed's myAir service using an undocumented API

resmed_myair This component will set up the following platforms. Platform Description sensor Show info from the myAir API. Installation Using the tool

Preston Tamkin 17 Dec 29, 2022