Skip to content
Custom component for Home Assistant which generates a sensor to show popularity for a google maps place.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
custom_components/populartimes Added error handling Nov 19, 2019
LICENSE
README.md
hacs.json Add HACS support Nov 9, 2019

README.md

hass-populartimes

hacs_badge

Description

This is a custom component for Home Assistant. The component generates a sensor which shows the current popularity for a place which can be found in Google Maps using the Places API.

Sensor attributes are also generated which indicate past popularity at each hour of the day.

For this to work you need a Google Places API key. There are limits for how many calls you can do for free per month. More info can be found here. For this reason I have limited the update time for the sensor to once every 10 minutes.

Getting required info

Installation

Either:

  1. Install via HACS
  2. Download files as zip and put the contents of the populartimes folder in your home assistant custom_components folder.

Configuration

sensor:
  platform: populartimes
  api_key: 'your-api-key-here'
  id: 'your_google_places_id_here'
  name: 'your_sensor_name_here'

Links:

Home Assistant Community Topic

Credits

This component uses the populartimes library by m-wrzr.

You can’t perform that action at this time.