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
- Get a Google Maps API key https://developers.google.com/places/web-service/get-api-key
- Install via HACS
- Download files as zip and put the contents of the populartimes folder in your home assistant custom_components folder.
sensor: platform: populartimes api_key: 'your-api-key-here' id: 'your_google_places_id_here' name: 'your_sensor_name_here'