home-assistant.io/source/_components/sensor.geizhals.markdown
Alok Saboo 1aca7b08cf Misc fixes: e.g. -> e.g., and proper case for Home Assistant (#4942)
* e.g. to e.g., and proper case for Home Assistant

* Instructions how to -> Instructions on how to
2018-03-17 20:20:37 +01:00

1.7 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_iot_class, ha_release
layout title description date sidebar comments sharing footer logo ha_category ha_iot_class ha_release
page Geizhals Instructions on how to integrate a Geizhals sensor into Home Assistant. 2017-07-15 14:15 true false true true geizhals.png Sensor Cloud Polling 0.51

The geizhals sensor will give you the best price of a product from Geizhals or related site. With this information can be used in e.g., automations to notify you when a price drops.

To enable this sensor, add the following lines to your configuration.yaml file:

# Example configuration.yaml entry
sensor:
  - platform: geizhals
    name: qc35
    product_id: 1453021

Configuration variables:

  • name (Required): The internal name of the product in Home Assistant.
  • product_id (Required): ID of the product. Get the ID from the geizhals website of your chosen product by clicking on the Price History tab, e.g., here. The URL of this site reveals the ID, e.g., https://geizhals.de/?phist=1453021 with product_id: 1453021.
  • description (Optional): The name of the product in the front end.
  • domain (Optional): Domain which should be used for the request. Set this to geizhals.at, geizhals.eu, geizhals.de, skinflint.co.uk or cenowarka.pl. Defaults to geizhals.de.
  • regex (Optional): Regular expression to parse the price. Default: \D\s(\d*)[\,|\.](\d*).

{% linkable_title Extended example %}

# Example configuration.yaml entry
sensor:
  - platform: geizhals
    name: qc35
    product_id: 1453021
    description: "Bose QC35"
    domain: 'geizhals.de'
    regex: '\D\s(\d*)[\,|\.](\d*)'