Giter VIP home page Giter VIP logo

ha-s7's Introduction

Siemens Simatic S7 Component for Home Assistant

This is a work in progress Home Assistant integration for light and roller shutter. The S7 is programmed to reflect the state for each light in a bool in DB10. Then there is a separate bool at address to turn it on and another one to turn it off.

The roller shutter have no state bit, but two command bits to open and close it.

This addon uses python-snap7 to communicate with the S7 PLC

Example Config

light:
  - platform: simatic
    host: 192.168.50.9
    lib: /config/custom_components/simatic/libsnap7.so
    devices:
      - name: "Lampen Buero OG 1"
        state_address:
          byte: 4
          bit: 6
      - name: "Lampen Buero OG 2"
        state_address:
          byte: 4
          bit: 7

Disclaimer

This home assistant is integration is unofficial and has to warranty to work properly or at all. It may cause damages of the PLC, Home Assistant and attached devices at your own risk. It is not an official or supported product by Home Assistant or Siemens

Simatic and S7 are brands owned by Siemens.

ha-s7's People

Contributors

dereisele avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

ha-s7's Issues

Installation of components

Hello

Can you explain how to install your component on a fresh installed homeassistant system.
I copied your component to the [custom_components]. After restart, homeassistant found the simatic component but could not find the python snap7 lib.
I installed this also manually but after a restart i get the same error.

Do you already work on your component?

Mfg

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.