Giter Site home page Giter Site logo

iobroker.senec's Introduction

Logo

ioBroker.senec

NPM version Downloads Number of Installations (latest) Number of Installations (stable) Known Vulnerabilities

NPM

Tests: Test and Release

senec adapter for ioBroker

Dokumentation DE
Documentation EN

Targeted at the Senec Home V2.1 System. Other systems should work, as long as they use lala.cgi. Although datapoints may differ (missing, additional, changed).

Systems that might work:

  • Senec Home 4.0 / Blei
  • Senec Home 6.0 Pb
  • Senec Home 8.0 / Blei
  • Senec Home 10.0 Pb
  • Senec Home 5.0/7.5/10.0 / Lithium
  • Senec Home 15.0 / Lithium
  • Senec Home V2 5.0/7.5/10.0
  • Senec Home V2 10.0 / Blei
  • Senec Home V2.1 1ph / Lithium
  • Senec.Home V3 Hybrid
  • Senec.Home V3 Hybrid duo
  • Senec Business 30.0 / Blei
  • Senec Business V2 30.0 / Blei
  • Senec Business 25.0 / Lithium
  • Senec Business V2_2ph / Lithium
  • Senec Business V2 3ph / Lithium
  • ADS Tec
  • OEM LG
  • Solarinvert Storage 10.0 / Blei

Disclaimer

All product and company names or logos are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them or any associated subsidiaries! This personal project is maintained in spare time and has no business goal.

Installation

You can install the adapter via the ioBroker web interface.

  1. Open your ioBroker web interface in a browser (eg: 192.168.178.42:8081)
  2. Click on Tab "Adapters"
  3. Type "senec" in the filter
  4. Click on the "+" symbol of the senec adapter

Setup

In addition to the adapter installation you have to add an instance of the adapter.

ioBroker

  1. Open your ioBroker interface in a browser (eg: 192.168.178.42:8081) (if configuration dialogue was opened automatically after installation, skip to 4.).
  2. Navigate to Tab "Instances"
  3. Click on the wrench symbol of the senec adapter
  4. Now you can see the main settings of the adapter configuration page.
    Main Settings 4.1 Type in the IP-address of your SENEC system (FQDN is also possible if you have a working local DNS).
    4.2 You can change the polling interval, too. (Default: 10 seconds for high priority data, 60 minutes for low priority data)
    Warning! If you are polling too often, your SENEC system will not be able to connect to the SENEC servers anymore! So please be aware of this!
    4.3 If your network requires a higher timeout for requests sent to SENEC, please change the Request-Timeout in miliseconds accordingly. (Default: 5000 miliseconds)
    4.4 In case there is an issue communicating with SENEC the adapter will retry several times. You can adjust how often it will try to read from SENEC. (Default: 10)
    4.5 To space retries apart a bit more you can adjust the Polling Retry Factor. (Default: 2)
    Example: Using default settings the 1st retry will happen 20 seconds after the initial try, the 2nd will happen 40 seconds after the 2nd try.
    After each successful connect to SENEC, the number of retries is reset.
  5. Click on Save & Close

Usage

Here you can find a description of the states (list is incomplete) and how to use them. All states of this adapter are read-only states.

Example States (States differ per System and Version)

Channel: info

  • info.connection

    Data type Permission
    boolean R

    Read-only boolean which is true if the adapter is connected to the senec system.

Channel: _calc

This channel contains calculated values. Currently these are day/week/month/year values at specific data points.

  • xxx.refDay/Week/Month/Year

    Data type Permission
    number W

    *Modifiable number indicating for which day/week/month/year the data is valid.

  • xxx.refValue/Week/Mont/Year

    Data type Permission
    number W

    *Modifiable number indicating what the reference value is for calculating the current value.

  • xxx.today/week/month/year

    Data type Permission
    number W

    *Modifiable number representing the current value for day/week/month/year of the corresponding data point.

  • xxx.yesterday/lastWeek/lastMonth/lastYear

    Data type Permission
    number W

    *Modifiable number representing the previous value for day/week/month/year of the corresponding data point.

Channel: BMS

  • MODULES_CONFIGURED

    Data type Permission
    number R

    Read-only number, which represents the number of modules currently configured in the system.

  • MODULE_COUNT

    Data type Permission
    number R

    Read-only number, which represents the number of modules currently known the system (incl. non-configured).

Channel: ENERGY

  • GUI_BAT_DATA_CURRENT

    Data type Permission
    number R

    Read-only number, which represents the battery's current in Amps.

  • GUI_BAT_DATA_FUEL_CHARGE

    Data type Permission
    number R

    Read-only number, which represents the current level of your battery system in %.

  • GUI_BAT_DATA_VOLTAGE

    Data type Permission
    number R

    Read-only number, which represents the battery's current voltage in volt.

  • GUI_BAT_DATA_POWER

    Data type Permission
    number R

    Read-only number, which represents how much power is coming from / going into the battery in Watts. Negative values are discharging.

  • GUI_BOOSTING_INFO

    Data type Permission
    boolean R

    Read-only boolean, which we don't know the exact meaning of yet.

  • GUI_CHARGING_INFO

    Data type Permission
    boolean R

    Read-only boolean, which represents if the battery is currently charging.

  • GUI_GRID_POW

    Data type Permission
    number R

    Read-only number, which represents the power currenty coming from / going into the grid in Watts. Negative values are sending into the grid.

  • GUI_HOUSE_POW

    Data type Permission
    number R

    Read-only number, which represents the power in Watts currently consumed by the house.

  • GUI_INVERTER_POWER

    Data type Permission
    number R

    Read-only number, which represents the current power supplied by your PV system.

  • STAT_HOURS_OF_OPERATION

    Data type Permission
    number R

    Read-only number, detailing the system's uptime in hours.

  • STAT_MAINT_REQUIRED

    Data type Permission
    boolean R

    Read-only boolean, which represents if your senec system requires maintenance.

  • STAT_STATE

    Data type Permission
    number R

    Read-only number, which represents the system's state.

  • STAT_STATE_Text

    Data type Permission
    string R

    Read-only string, which represents the system's state in human readable format (sorry - we only have the german states from senec).

Channel: STATISTIC

  • STAT_DAY_BAT_CHARGE

    Data type Permission
    number R

    Read-only number, which represents the amount of power charged into the battery in kWh today.

  • STAT_DAY_BAT_DISCHARGE

    Data type Permission
    number R

    Read-only number, which represents the amount of power drawn from the battery in kWh today.

  • STAT_DAY_E_GRID_EXPORT

    Data type Permission
    number R

    Read-only number, which represents the amount of power in kWh delivered into the net today.

  • STAT_DAY_E_GRID_IMPORT

    Data type Permission
    number R

    Read-only number, which represents the amount of power in kWh drawn from the net today.

  • STAT_DAY_E_HOUSE

    Data type Permission
    number R

    Read-only number, which represents the amount of power in kWh consumed by the house today.

  • STAT_DAY_E_PV

    Data type Permission
    number R

    Read-only number, which represents the amount of power in kWh generated by your PV today.

Channel: SYS_UPDATE

  • NPU_IMAGE_VERSION

    Data type Permission
    number R

    Read-only number, representing the Revision NPU-IMAGE

  • NPU_VER

    Data type Permission
    number R

    Read-only number, representing the Revision NPU-REGS

  • UPDATE_AVAILABLE

    Data type Permission
    boolean R

    boolean-value which is true if there is an update available (Updates happen automatically and are scheduled by SENEC).

Channel: WIZARD

  • APPLICATION_VERSION

    Data type Permission
    string R

    Read-only text, representing the Revision MCU

  • CONFIG_LOADED

    Data type Permission
    boolean R

    boolean-value which is true if configuration is loaded. This being false is very unlikely and it shouldn't persist as false.

  • INTERFACE_VERSION

    Data type Permission
    string R

    Read-only text, representing the Revision GUI

  • SETUP_NUMBER_WALLBOXES

    Data type Permission
    number R

    Read-only number, which designates how many wallboxes are configured in the system.

  • SETUP_WALLBOX_SERIAL[0..3]

    Data type Permission
    number R

    Read-only number, which designates the number of wallbox [0..3]. This is only available on systems with configured wallboxes.

Changelog

1.3.9 (Nobl)

  • Added (some) Wallbox Datapoints to high-prio polling
  • Added more state definitions

1.3.8 (NoBl)

  • Removed (unnecessary) admin tab

1.3.7 (NoBl, noffycws, git-ZeR0)

  • Updates to state translations (new values when SENEC turned off appliances)
  • Added state definitions
  • Added high priority datapoints: temperatures, voltages, ... to better monitor safety relevant data

1.3.6 (NoBl)

  • Fixed log.warning error

1.3.5 (NoBl)

  • Added more state attributes (if you have updated descriptions or anything, please open an issue!)
  • Workaround in case SENEC reports bogus request data

1.3.4 (NoBl)

  • Moved from request to axios
  • Added more state attributes (if you have updated descriptions or anything, please open an issue!)

1.3.3 (NoBl)

  • Updated to current template.

1.3.2 (NoBl)

  • Autarky without decimal places (again). They are causing more updates than we really need.
  • Autarky values won't reset to 0 at change of timeframe (day, week, ...) anymore. They are calculated based on reference values anyways.
  • Ensuring that only values meant to be changeable by user are defined so (attribute changes upon the next update of value)

1.3.1 (NoBl) 20210513

  • Added calculation of autarky for day/week/month/year

1.3.0 (NoBl) 20210509

  • Rewrote translations handling
  • Added translations for wallbox status.
  • Translated status get an extra datapoint with _Text as postfix. Former translations that didn't add an extra dp will now revert to their numeric representation and add the _Text DP.
  • Translations are now handled via lib/state_trans.js for all 3 languages available in the senec system (german, english, italian).
  • Language used is decided by the language of the SENEC appliance.

License

MIT License

Copyright (c) 2022 Norbert Bluemle [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

iobroker.senec's People

Contributors

nobl avatar dependabot[bot] avatar noffycws avatar git-zer0 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.