Giter VIP home page Giter VIP logo

custom_components's Introduction

custom_components

Custom Components for Home Assistant

LiteTouch

In your config directory, create a folder for 'custom_components' if it is not already there. Place the litetouch folder inside.

On your configuration.yaml, add the component litetouch.

Create the entities under the 'dimmers' section. The addr field is your keypad number and the button number associated with the load. The loadid is the index number on the loadgroup as it is defined in the liteware software.

Sample YAML:

litetouch:
  host: "192.168.1.65"
  port: 10001
  dimmers:
    - addr: "016_2"
      name: "Main Hall"
      loadid: "82"
    - addr: "4_7"
      name: "Front Hall Chandelier"
      loadid: "23"
  switch:
    - addr: "017_2"
      name: "Outside Outlets"
      loadid: "110"
      icon: mdi:power

Opnsense Firewall Rule

  • download the opnsense_ruleswitch folder and place in custom_components folder within the Home Assistant config directory
  • Please NOTE that my rules are 'inverted'. This means that this custom component shows the rule as off when it is enabled and on when it is disabled. I use this to turn off the internet to PC/Xbox devices at night for the kid. It is easier to say 'Internet is On' vs. firewall rule is on to disable internet for others in the house.

Sample YAML:

switch:
  - platform: opnsense_ruleswitch
    host: https://192.168.1.1/api
    api_key: <API KEY HERE OR !SECRET>
    access_token: <API Secret>
    rule_filter: HA
        

Opnsense Setup:

    Install the os-firewall plugin
    Go to Firewall > Automation
    Create Rule
        NOTE: These rules are placed above all other rules (Automation > Floating > VLAN/LAN rules).  
        Be careful you you can lock yourself out.
    If you want to expose these to Home Assistant you can add: HA to the beginning of the rule (if you specify rule_filter in the home assistant config.yaml file).  
    Other rules would not be shown if you use the rule filter.

custom_components's People

Contributors

johnmmason avatar patmann03 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.