FHEM-Verbindung

FHEM

Aktueller Release
3.0.0
Entwickler
bluefox
Lizenz
MIT

Dieser Adapter ermöglicht die Verbindung von FHEM mit ioBroker.

Dieser Adapter nutzt die Sentry-Bibliotheken, um Ausnahmen und Codefehler automatisch an die Entwickler zu melden. Weitere Details und Informationen zum Deaktivieren der Fehlerberichterstattung finden Sie in der Sentry-Plugin-Dokumentation ! Die Sentry-Berichterstattung wird ab js-controller 3.0 verwendet.

Um die Verbindung herzustellen, muss Telnet in FHEM aktiviert sein. Um es zu aktivieren (standardmäßig aktiviert), überprüfen Sie die folgenden Einstellungen infhem.cfg :

define telnetPort telnet 7072 global

Für die Einstellungen des Adapters müssen exakt derselbe Port und dieselbe IP-Adresse wie auf dem FHEM-Host (oder localhost, falls FHEM und ioBroker auf demselben PC laufen) verwendet werden.

ioBroker sendet zu Beginnjsonlist2 Befehl zum Abrufen allerReadings aus der Liste.

Unterstützte Geräte

Normalerweise werden alle Geräte unterstützt. Einige sind jedoch besser integriert.

Die Probleme treten insbesondere bei der Zustandssteuerung auf. Da keine klare Attributstruktur existiert, versucht ioBroker zu erraten, welche Attributstruktur definiert ist.PossibleSets Es können Felder verwendet werden. Tatsächlich werden nur die folgenden Attribute unterstützt:

  • RGB: Wenn RGB existiert inPossibleSets und inReadings Es wird zu einem einzigen Zustand zusammengefasst, der gelesen und geschrieben werden kann. Werte wie#234567 wird automatisch umgewandelt in234567 Die
  • Ein-/Aus-Zustand: Wennon Undoff existieren inPossibleSets Undstate InReadings Es wird in einem Bundesstaat unter dem Namen zusammengeführt.state Es kann mit „true“ und „false“ gesteuert werden, und die Befehle werden entsprechend geändert.set DEVICE on Undset DEVICE off Die

Funktionen und Nutzung

  • Wenn der Raum "ioBroker" in FHEM existiert, werden nur diese Objekte synchronisiert.
  • Nach der Synchronisierung werden nicht verwendete FHEM-Objekte automatisch gelöscht.
  • Interna wieTYPE ,NAME ,PORT ,manufacturername ,modelid ,swversion wird synchronisiert (role=value.xxx )
  • Attribute wieroom ,alias ,disable ,comment wird synchronisiert, und es ist möglich, Attribute in ioBroker zu bearbeiten.role=state.xxx )
  • Rolle und andere Einstellungen während der Synchronisierung festlegen.
    • Readings xxx mit jedemPossibleSets wird festgelegtrole=state.xxx
    • Readings xxx ohne PossibleSets wird gesetztrole=value.xxx
    • Readings xxx mit PossibleSets wird "noArg" gesetztrole=button.xxx
    • Readings xxx Mit PossibleSets wird der "Slider" eingestelltrole=level.xxx, min=slider(min), max=slider(max)
    • Readings "desired-temp" wird festgelegtrole=level.temperature, min=5, max=35, unit=°C Die
    • Readings "pct, brightness,dim" wird festgelegtrole=level.dimmer, min=0, max=100, unit=%
    • Readings "Volume, volume, GroupVolume" wird festgelegtrole=level.volume, min=0, max=100, unit=%
    • Readings "GroupVolume" wird festgelegtrole=level.volume.group ,min=0 ,max=100 ,unit=%
  • SmartName Der Cloud-Adapter wird automatisch mit einem Alias oder Namen (nurfhem.0 und Objekte mitrole = level.temperature, level.dim, level.volume )

Changelog

WORK IN PROGRESS

  • (copilot) Adapter requires node.js >= 22 now
  • (iobroker-bot) Adapter requires node.js >= 20 now.
  • (copilot) Adapter requires admin >= 7.7.22 now
  • (@copilot) Adapter requires js-controller 6.0.11 now
  • (mcm1957) Dependencies have been updated

3.0.0 (2024-07-22)

NodeJS >= 18.x and js-controller >= 5 is required

  • (@LausiD) Removed warning from log
  • (@klein0r) Updated tests and dependencies

2.0.5 (2023-08-13)

  • (mcm1957) Dependencies have been updated
  • (mcm1957) Adapter now requires node 16

2.0.4 (2023-08-13)

  • (LausiD) Several problems have been fixed (#213, #214)

2.0.3 (2023-01-03)

  • (Apollon77/LausiD) Made sure that all objects are initialized correctly

2.0.2 (2022-12-23)

  • (bluefox) Corrected error with members

2.0.0 (2022-12-22)

  • (bluefox) Refactoring
  • (bluefox) Corrected some GitHub issues
  • (bluefox) Added JSON config

1.6.3 (2021-07-26)

  • (Apollon77) fix crash case

1.6.2 (2021-07-16)

  • (LausiD) fix crash case

1.6.1 (2021-06-30)

  • (LausiD) fix use Controller 3.3.x
  • (Apollon77) js-controller 3.3 optimizations
  • (Apollon77) Add Sentry crash reporting

1.6.0 (2021-04-09)

  • (LausiD) Several fixes and changes

1.5.3 (2020-06-30)

  • (LausiD) Several fixes

1.5.2 (2020-05-15)

  • (Apollon77) Fix wrong method calls

1.5.0 (2020-05-08)

  • (LausiD) Several fixes and changes

1.4.3 (2020-03-21)

  • (LausiD) fix compact mode

1.4.2 (2020-01-10)

  • (bluefox) Running timers will be stopped by unload

1.4.1 (2019-12-12)

  • (LausiD) Several fixes and changes

1.4.0 (2019-10-22)

  • (LausiD) Optimized adapter

1.3.0 (2019-07-14)

  • (bluefox) Compact mode was added

1.2.2 (2019-06-12)

  • (LausiD) Several fixes and changes

1.2.1 (2019-03-28)

  • (LausiD) Several fixes and changes

1.2.0 (2019-02-16)

  • (LausiD) Sync readingsGroup, set states ioBroker from FHEM, add different sensors

1.1.1 (2018-11-08)

  • (LausiD) add debug mode

1.1.0 (2018-10-22)

  • (LausiD) Sync objects from ioBroker to FHEM is possible

1.0.0 (2018-10-15)

  • (LausiD) Min/max were defined as number

0.5.6 (2018-09-09)

  • (LausiD) Some roles were updated

0.5.5 (2018-08-22)

  • (LausiD) Several fixes and changes
  • (bluefox) Admin3

0.5.0 (2018-04-29)

  • (LausiD) Several fixes and changes

0.4.2 (2018-04-15)

  • (TonyBostonTB) Fix wordings

0.4.1 (2017-04-14)

  • (bluefox) add link to FHEM im admin

0.4.0 (2017-03-12)

  • (LausiD) fix some types
  • (bluefox) define custom prompt

0.3.0 (2017-02-25)

  • (LausiD) fix some types
  • (bluefox) add password for telnet

0.2.2 (2016-06-17)

  • (bluefox) implement On/Off state and fix RGB
  • (bluefox) add debug output by control

0.2.1 (2016-06-12)

  • (bluefox) support of RGB values for control

0.2.0

  • (bluefox) implemented write
  • (bluefox) try to read meta information if unknown event received

0.1.0

  • (bluefox) initial release

License

The MIT License (MIT)

Copyright (c) 2026 iobroker-community-adapters iobroker-community-adapters@gmx.de
Copyright (c) 2016-2025 bluefox dogafox@gmail.com

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.