Re: ioBroker / MQTT
Verfasst: Di Feb 01, 2022 3:22 pm
Vielen lieben Dank
Java Script Adapter, da dann ein Skript (Blockly).
Code: Alles auswählen
<xml xmlns="https://developers.google.com/blockly/xml">
<block type="on" id="HaZFk#ElADLOX|8_O3A~" x="13" y="13">
<field name="OID">modbus.0.holdingRegisters.14_p_gcp</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="vEU%IbwaZPZLDyBwfu;Z">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mqtt-client.0.openWB.set.evu.W</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="on_source" id="H[P~6pN7ax+yA3d:DzfY">
<field name="ATTR">state.val</field>
</block>
</value>
</block>
</statement>
<next>
<block type="on" id="pP1$78F+T3}x~)`u.$O@">
<field name="OID">modbus.0.holdingRegisters.6_p</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="CvTTGh/,^_T2r+=XyTcZ">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mqtt-client.0.openWB.set.houseBattery.W</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="on_source" id="ptO#3?taA6BYySLc7$yI">
<field name="ATTR">state.val</field>
</block>
</value>
</block>
</statement>
<next>
<block type="on" id="~XO^jm2j7e.k{hMV:_]2">
<field name="OID">modbus.0.holdingRegisters.8_soc</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="control" id="1r#Lh%Dw~XXr;tW`hqsr">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">mqtt-client.0.openWB.set.houseBattery.%Soc</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="on_source" id="YHSlr.;5Jlnwtio)bRKF">
<field name="ATTR">state.val</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</xml>
nutzt du das Loxberry MQTT Plugin? davon habe ich hier noch nichts gelesen sonst bekommst du ja m.e. keine Werte aus Loxone zu MQTT
Ist eigentlich schon zu umständlich. Wenn er den Iobroker hat kann er alle Werte so abrufen und einfach mit dem Blockly oben" weiterschieben ". Einfacher geht es echt nicht mehrevchab hat geschrieben: ↑Mi Feb 02, 2022 8:48 pmnutzt du das Loxberry MQTT Plugin? davon habe ich hier noch nichts gelesen sonst bekommst du ja m.e. keine Werte aus Loxone zu MQTT
ich kenne mich leider nicht so gut mit MQTT aus
habe ein paar Werte hin und her "geschrieben"
aber w.g. verwende ich Loxberry und das MQTT Plugin als Schnittstelle und zusätzlich läuft ein Mosquitto MQTT "Brücke bei mir auf einem QNAP NAS
dazu gab es im Loxone Forum einen Beitrag zur Anbindung der openWB
thesorrow101 hat geschrieben: ↑Mi Feb 02, 2022 5:52 pmJava Script Adapter, da dann ein Skript (Blockly).
Blöcke importieren, den Text hier einfügen:
Sind jetzt einfach mal drei Trigger. Beim Trigger nimmst du den Datenpunkt, der die Werte anliefert, bei Steuere nimmst du das entsprechende Set Topic der OpenWB.Code: Alles auswählen
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="on" id="HaZFk#ElADLOX|8_O3A~" x="13" y="13"> <field name="OID">modbus.0.holdingRegisters.14_p_gcp</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="control" id="vEU%IbwaZPZLDyBwfu;Z"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mqtt-client.0.openWB.set.evu.W</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="H[P~6pN7ax+yA3d:DzfY"> <field name="ATTR">state.val</field> </block> </value> </block> </statement> <next> <block type="on" id="pP1$78F+T3}x~)`u.$O@"> <field name="OID">modbus.0.holdingRegisters.6_p</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="control" id="CvTTGh/,^_T2r+=XyTcZ"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mqtt-client.0.openWB.set.houseBattery.W</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="ptO#3?taA6BYySLc7$yI"> <field name="ATTR">state.val</field> </block> </value> </block> </statement> <next> <block type="on" id="~XO^jm2j7e.k{hMV:_]2"> <field name="OID">modbus.0.holdingRegisters.8_soc</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="control" id="1r#Lh%Dw~XXr;tW`hqsr"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mqtt-client.0.openWB.set.houseBattery.%Soc</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="YHSlr.;5Jlnwtio)bRKF"> <field name="ATTR">state.val</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </xml>
Kannst die beliebig kopieren oder wenn nicht nötig löschen. Wenn dein Ursprungsdatenpunkt neue Werte liefert werden diese automatisch auf den Punkt der openWB übertragen.
Schau es dir mal an, Kern des iobroker ist ja, dass du alle Daten eben zusammen führen kannst und so beliebig Geräte verknüpfen kannst die nichts miteinander zu tun haben (io = input/output). Aber schön, dass es jetzt klappt, wenn mich was ist, melde dich einfach!Blotto112 hat geschrieben: ↑Do Feb 03, 2022 9:08 amthesorrow101 hat geschrieben: ↑Mi Feb 02, 2022 5:52 pmJava Script Adapter, da dann ein Skript (Blockly).
Blöcke importieren, den Text hier einfügen:
Sind jetzt einfach mal drei Trigger. Beim Trigger nimmst du den Datenpunkt, der die Werte anliefert, bei Steuere nimmst du das entsprechende Set Topic der OpenWB.Code: Alles auswählen
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="on" id="HaZFk#ElADLOX|8_O3A~" x="13" y="13"> <field name="OID">modbus.0.holdingRegisters.14_p_gcp</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="control" id="vEU%IbwaZPZLDyBwfu;Z"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mqtt-client.0.openWB.set.evu.W</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="H[P~6pN7ax+yA3d:DzfY"> <field name="ATTR">state.val</field> </block> </value> </block> </statement> <next> <block type="on" id="pP1$78F+T3}x~)`u.$O@"> <field name="OID">modbus.0.holdingRegisters.6_p</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="control" id="CvTTGh/,^_T2r+=XyTcZ"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mqtt-client.0.openWB.set.houseBattery.W</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="ptO#3?taA6BYySLc7$yI"> <field name="ATTR">state.val</field> </block> </value> </block> </statement> <next> <block type="on" id="~XO^jm2j7e.k{hMV:_]2"> <field name="OID">modbus.0.holdingRegisters.8_soc</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="control" id="1r#Lh%Dw~XXr;tW`hqsr"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mqtt-client.0.openWB.set.houseBattery.%Soc</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="on_source" id="YHSlr.;5Jlnwtio)bRKF"> <field name="ATTR">state.val</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </xml>
Kannst die beliebig kopieren oder wenn nicht nötig löschen. Wenn dein Ursprungsdatenpunkt neue Werte liefert werden diese automatisch auf den Punkt der openWB übertragen.
Vielen lieben Dank. Habe es nun hinbekommen das meine Wallbox nicht komplett dumm bleibt.
Danke Danke. Ich hatte vorher nie was mit Blocky zu tun.