Git Product home page Git Product logo

redfin's Introduction

Redfin

GitHub Release GitHub Activity

hacs maintainer BuyMeCoffee

This component requires HA Core version 2021.6.0 or greater!

This is a Custom Integration for Home Assistant. It uses the unofficial Redfin API to get property value estimates.

There currently is support for the Sensor device type within Home Assistant.

Installation

HACS installation

This Integration is part of the default HACS store, so go to the HACS page and search for Redfin.

Manual Installation

To manually add Redfin to your installation, create this folder structure in your /config directory:

custom_components/redfin.

Then drop the following files into that folder:

translations/en.json
__init__.py
config_flow.py
const.py
hacs.json
sensor.py
manifest.json

Configuration

You will need the Redfin property ID for each property you’d like to track. This information is available from the URL of a property you are interested in. If you’re the owner of this property, it’s recommended to claim the listing and update the property information to help the information be as accurate as possible.

For example, given this Redfin URL: https://www.redfin.com/DC/Washington/1745-Q-St-NW-20009/unit-3/home/9860590 the property ID is 9860590.

To enable this sensor, add new Redfin integration component in the Home Assistant UI and follow the prompts to add your properties.

The sensor provides the following attributes:

  • amount
  • amount_currency
  • amount_formatted
  • address
  • full_address
  • redfin_url
  • street_view

redfin's People

Contributors

dreed47 avatar jeroenterheerdt avatar madj42 avatar prestomation avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

redfin's Issues

Integration broken with 2023.5.0b1

I'm getting this error:

Logger: homeassistant.config_entries
Source: config_entries.py:367
First occurred: 5:11:51 PM (1 occurrences)
Last logged: 5:11:51 PM

Error importing platform config_flow from integration redfin to set up redfin configuration entry: cannot import name 'async_get_registry' from 'homeassistant.helpers.entity_registry' (/Users/homeassistant/homeassistant/lib/python3.11/site-packages/homeassistant/helpers/entity_registry.py)

Worked fine with 2023.5.0b0

How to enable?

I've been hunting around all over the place and cannot see how to configure my home. The instructions say to install (I did this via HACS) and then use the Integration Component to add and configure a home. When I try to add an integration, Redfin is not on the list and there is nothing in the instructions that says I need to add a custom sensor manually and, if so, what the parameters should be.

So, I have it installed, now what?

Per the instructions: "To enable this sensor, add new Redfin integration component in the Home Assistant UI and follow the prompts to add your properties."

Redfin is not on the list of installed integrations nor does it come up when trying to install a new one.

Config flow could not be loaded

Howdy! Got the following error when using the addon's configure:

Logger: aiohttp.server
Source: custom_components/redfin/config_flow.py:114
Integration: Redfin (documentation, issues)
First occurred: 11:41:54 PM (1 occurrences)
Last logged: 11:41:54

Error handling request

Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 227, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 235, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 146, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 218, in post return await super().post(request) File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper result = await method(view, request, data, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 71, in post result = await self._flow_mgr.async_init( File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 243, in async_init result = await self._async_handle_step(flow, flow.init_step, data) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step result: FlowResult = await getattr(flow, method)(user_input) File "/config/custom_components/redfin/config_flow.py", line 114, in async_step_init entity_registry = sync_get(self.hass) NameError: name 'sync_get' is not defined

Recommended Lovelace card?

Do you have a recommended Lovelace card to display the data?

I've started looking at something like this

type: grid
cards:
  - type: picture-glance
    entities: []
    camera_image: camera.redfin
  - type: entities
    entities:
      - entity: sensor.redfin_house
        name: House
        secondary_info: last-updated
columns: 1
square: false

Tangentially, it would be real cool if the integration created a generic camera entity automatically for the street view URL image so I wouldn't need to manage it myself.

State as value instead of string

It would be more beneficial if the state was saved as the amount instead of the formatted amount as then it could be trended over time. As a string you can't make a graph out of it. I realize I can just make a template sensor myself, but I would think as part of the package if it just supplied this it would be helpful.

Unable to configure via config flow

This error originated from a custom integration.

Logger: aiohttp.server
Source: custom_components/redfin/config_flow.py:88
Integration: Redfin (documentation, issues)
First occurred: 10:33:22 AM (2 occurrences)
Last logged: 10:34:03 AM

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 56, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 74, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 135, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 131, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 155, in post
    return await super().post(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 63, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 109, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 199, in async_configure
    result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 257, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/config/custom_components/redfin/config_flow.py", line 88, in async_step_property
    return self.async_create_entry(title=self.options["name"], data=self.data, options=self.options)
TypeError: async_create_entry() got an unexpected keyword argument 'options'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.