Custom component to get movie information in your city available at ingresso.com for the home assistant
Have HACS installed, this will allow you to update easily.
Adding Ingresso to HACS can be using this button:
If the button above doesn't work, add https://github.com/hudsonbrendon/sensor.ingresso.com
as a custom repository of type Integration in HACS.
- Click Install on the
Ingresso
integration. - Restart the Home Assistant.
- Copy
ingresso
folder from latest release to your<config dir>/custom_components/
directory. - Restart the Home Assistant.
Adding Ingresso to your Home Assistant instance can be done via the UI using this button:
If the button above doesn't work, you can also perform the following steps manually:
- Navigate to your Home Assistant instance.
- In the sidebar, click Settings.
- From the Setup menu, select: Devices & Services.
- In the lower right corner, click the Add integration button.
- In the list, search and select
Ingresso
. - Follow the on-screen instructions to complete the setup.
Access the url below with your UF see your city_id in the list of cities in your state.
https://api-content.ingresso.com/v0/states/YOUR-UF
UFs table:
UF | Estate |
---|---|
AC | Acre |
AL | Alagoas |
AP | Amapá |
AM | Amazonas |
BA | Bahia |
CE | Ceará |
DF | Distrito Federal |
ES | Espírito Santo |
GO | Goiás |
MT | Mato Grosso |
MA | Maranhão |
MS | Mato Grosso do Sul |
MG | Minas Gerais |
PA | Pará |
PB | Paraíba |
PR | Paraná |
PE | Pernambuco |
PI | Piauí |
RJ | Rio de Janeiro |
RN | Rio Grande do Norte |
RS | Rio Grande do Sul |
RO | Rondônia |
RR | Roraima |
SC | Santa Catarina |
SP | São Paulo |
SE | Sergipe |
TO | Tocantins |
Example:
https://api-content.ingresso.com/v0/states/SP
To view the movies from the configured cinema, we use the upcoming-media-card, install via hacs and add the configuration below (Remembering to replace sensor.cinepolis with your configured sensor) in a manual card:
type: custom:upcoming-media-card
entity: sensor.cinepolis
title: Cinépolis
logger:
default: info
logs:
custom_components.ingresso: debug