Code Monkey home page Code Monkey logo

asx_sensor's Introduction

Australian Securities Exchange Sensor

hacs_badge hacs_badge

Creates sensors for Home Assistant for each ASX Symbol you provide

Lovelace Examples

Example of the entities in Lovelace

An Entity has 10 days information

Installation

This app is best installed using HACS, so that you can easily track and download updates.

Alternatively, you can download the asx_sensor directory from inside the apps directory here to your local apps directory, then add the configuration to enable the asx_sensor module.

How it works

The yfinance module sources the information from Yahoo Finance and makes the information available as sensors in HA.

This information is only daily information, showing the latest close data, and other relevant information about a stock, it does not provide actual trading information.

As this is non time critical sensor, it only gets the information on a set time schedule, once per day at 5.17am before the opening of the market.

To Run Manually

You will need to create an input_boolean entity to watch for when to update the sensor. When this input_boolean is turned on, whether manually or by another automation you create, the scraping process will be run to create/update the sensor.

AppDaemon Libraries

Please add the following packages to your appdaemon 4 configuration on the supervisor page of the add-on.

system_packages: []
python_packages: ["yfinance"]
init_commands: []

No specific packages are required for this app.

App configuration

In the apps.yaml file in the appdaemon/apps directory -

asx_sensor:
  module: asx_sensor
  class: Get_ASX_info
  TICKER: "CBA,TLS,BHP"
  TICK_FLAG: "input_boolean.check_asx_info"
key optional type default description
module False string asx_sensor
class False string Get_ASX_info
TICKER False string The comma separated symbols for each of the stocks you are interested in
TICK_FLAG False string The name of the flag in HA for triggering this sensor update - e.g. input_boolean.check_asx_info

Sensors Created

This version will create a sensor for each stock you provide

  • sensor.asx_sensor_XXX

Issues/Feature Requests

Please log any issues or feature requests in this GitHub repository for me to review.

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.