HB-OU-MP3-LED (AskSin++) in FHEM integrieren

Begonnen von thgorjup, 16 April 2019, 19:31:36

Vorheriges Thema - Nächstes Thema

papa

Auf jeden Fall ist es immer eine gute Idee, FHEM neu zu starten, wenn Änderungen im Addin vorgenommen wurden.
BananaPi + CUL868 + CUL433 + HM-UART + 1Wire

Sir.Frenz

#16
Hier das Ergebnis, das readxml.pl für JP-HB-Devices-addon-master\src\addon\firmware\rftypes\hb-ou-mp3-led.xml ausspuckt.

Die Kommentare sind von mir aus der hb-ou-mp3-led.xml von Hand hinzugefügt, um die Struktur besser zu verstehen und die Register leichter zuordnen zu können.


# channel index="0" type="MAINTENANCE" ui_flags="internal" class="maintenance" count="1"
# paramset type="MASTER" id="maint_ch_master"
$HMConfig::culHmRegDefine{"deviceLedMode"} = {a=>5.6,s=>0.2,l=>0,min=>0,max=>0,c=>'',p=>'n',f=>'',u=>'',d=>1,t=>"deviceLedMode"}
# paramset type="VALUES" id="maint_ch_values"
# <channel index="1" type="SIGNAL_LED" count="1">
#      <link_roles>
#        <target name="SWITCH"/>
#        <target name="WEATHER_CS"/>
#        <target name="WCS_TIPTRONIC_SENSOR"/>
#      </link_roles>
#      <paramset type="MASTER" id="signal_led_ch_master">
#        <subset ref="signal_led_paramset"/>
#      </paramset>
#      <paramset type="VALUES" id="signal_led_ch_values">
#        <subset ref="signal_led_valueset"/>
#      </paramset>
#      <paramset type="LINK" id="signal_hbled_ch_link">
#        <subset ref="signal_led_linkset"/>
#      </paramset>
#      <enforce_link>
#        <value id="LCD_SYMBOL" value="2"/>
#        <value id="LCD_LEVEL_INTERP" value="1"/>
#      </enforce_link>
#    </channel>
#    <channel index="2" type="SIGNAL_CHIME" count="1">
#      <link_roles>
#        <target name="SWITCH"/>
#        <target name="WEATHER_CS"/>
#        <target name="WCS_TIPTRONIC_SENSOR"/>
#      </link_roles>
#      <paramset type="MASTER" id="signal_chime_ch_master">
#        <subset ref="signal_mp3_paramset"/>
#      </paramset>
#      <paramset type="VALUES" id="signal_chime_ch_values">
#        <subset ref="signal_chime_valueset"/>
#      </paramset>
#      <paramset type="LINK" id="signal_hbchime_ch_link">
#        <subset ref="signal_chime_linkset"/>
#      </paramset>
#      <enforce_link>
#        <value id="LCD_SYMBOL" value="2"/>
#        <value id="LCD_LEVEL_INTERP" value="1"/>
#        <value id="PEER_NEEDS_BURST" value="true"/>
#      </enforce_link>
#    </channel>
#  </channels>
# paramset id="signal_led_valueset"
# paramset id="signal_led_paramset"
$HMConfig::culHmRegDefine{"hbInterruptRunning"} = {a=>126,s=>0.1,l=>1,min=>0,max=>1,c=>'',p=>'n',f=>'',u=>'',d=>1,t=>"hbInterruptRunning"}
$HMConfig::culHmRegDefine{"hbLedCount"} = {a=>127,s=>1,l=>1,min=>1,max=>32,c=>'',p=>'n',f=>'',u=>'',d=>1,t=>"hbLedCount"}
# paramset id="signal_mp3_paramset"
$HMConfig::culHmRegDefine{"hbInterruptRunning"} = {a=>126,s=>0.1,l=>1,min=>0,max=>1,c=>'',p=>'n',f=>'',u=>'',d=>1,t=>"hbInterruptRunning"}
# paramset id="signal_led_linkset"
$HMConfig::culHmRegDefine{"shortCtOffdelay"} = {a=>0x2.4,s=>0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortCtOffdelay"}
$HMConfig::culHmRegDefine{"shortCtOndelay"} = {a=>0x2.0,s=>0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortCtOndelay"}
$HMConfig::culHmRegDefine{"shortCtOff"} = {a=>0x3.4,s=>0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortCtOff"}
$HMConfig::culHmRegDefine{"shortCtOn"} = {a=>0x3.0,s=>0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortCtOn"}
$HMConfig::culHmRegDefine{"shortCondValueLo"} = {a=>4,s=>1,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortCondValueLo"}
$HMConfig::culHmRegDefine{"shortCondValueHi"} = {a=>5,s=>1,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortCondValueHi"}
$HMConfig::culHmRegDefine{"shortOndelayTime"} = {a=>6,s=>1,l=>3,min=>0.0,max=>111600.0,c=>'',p=>'y',f=>'',u=>'s',d=>1,t=>"shortOndelayTime"}
$HMConfig::culHmRegDefine{"shortOnTime"} = {a=>7,s=>1,l=>3,min=>0.0,max=>108000.0,c=>'',p=>'y',f=>'',u=>'s',d=>1,t=>"shortOnTime",lit=>{notUsed=>111600.0,}}
$HMConfig::culHmRegDefine{"shortOffdelayTime"} = {a=>8,s=>1,l=>3,min=>0.0,max=>111600.0,c=>'',p=>'y',f=>'',u=>'s',d=>1,t=>"shortOffdelayTime"}
$HMConfig::culHmRegDefine{"shortOffTime"} = {a=>9,s=>1,l=>3,min=>0.0,max=>108000.0,c=>'',p=>'y',f=>'',u=>'s',d=>1,t=>"shortOffTime",lit=>{notUsed=>111600.0,}}
$HMConfig::culHmRegDefine{"shortOnTimeMode"} = {a=>0xA.7,s=>0.1,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortOnTimeMode"}
$HMConfig::culHmRegDefine{"shortOffTimeMode"} = {a=>0xA.6,s=>0.1,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortOffTimeMode"}
$HMConfig::culHmRegDefine{"shortActionType"} = {a=>0xA.0,s=>0.2,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortActionType"}
$HMConfig::culHmRegDefine{"shortJtOff"} = {a=>0xB.4,s=>0x0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortJtOff"}
$HMConfig::culHmRegDefine{"shortJtOn"} = {a=>0xB.0,s=>0x0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortJtOn"}
$HMConfig::culHmRegDefine{"shortJtOffdelay"} = {a=>0xC.4,s=>0x0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortJtOffdelay"}
$HMConfig::culHmRegDefine{"shortJtOndelay"} = {a=>0xC.0,s=>0x0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortJtOndelay"}
$HMConfig::culHmRegDefine{"shortActType"} = {a=>0x24,s=>1.0,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortActType"}
$HMConfig::culHmRegDefine{"shortActNum"} = {a=>0x25,s=>1.0,l=>3,min=>1,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortActNum"}
$HMConfig::culHmRegDefine{"shortActIntens"} = {a=>0x2B,s=>1.0,l=>3,min=>1,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortActIntens"}
$HMConfig::culHmRegDefine{"longCtOffdelay"} = {a=>0x82.4,s=>0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longCtOffdelay"}
$HMConfig::culHmRegDefine{"longCtOndelay"} = {a=>0x82.0,s=>0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longCtOndelay"}
$HMConfig::culHmRegDefine{"longCtOff"} = {a=>0x83.4,s=>0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longCtOff"}
$HMConfig::culHmRegDefine{"longCtOn"} = {a=>0x83.0,s=>0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longCtOn"}
$HMConfig::culHmRegDefine{"longCondValueLo"} = {a=>0x84,s=>1,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longCondValueLo"}
$HMConfig::culHmRegDefine{"longCondValueHi"} = {a=>0x85,s=>1,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longCondValueHi"}
$HMConfig::culHmRegDefine{"longOndelayTime"} = {a=>0x86,s=>1,l=>3,min=>0.0,max=>111600.0,c=>'',p=>'y',f=>'',u=>'s',d=>1,t=>"longOndelayTime"}
$HMConfig::culHmRegDefine{"longOnTime"} = {a=>0x87,s=>1,l=>3,min=>0.0,max=>108000.0,c=>'',p=>'y',f=>'',u=>'s',d=>1,t=>"longOnTime",lit=>{notUsed=>111600.0,}}
$HMConfig::culHmRegDefine{"longOffdelayTime"} = {a=>0x88,s=>1,l=>3,min=>0.0,max=>111600.0,c=>'',p=>'y',f=>'',u=>'s',d=>1,t=>"longOffdelayTime"}
$HMConfig::culHmRegDefine{"longOffTime"} = {a=>0x89,s=>1,l=>3,min=>0.0,max=>108000.0,c=>'',p=>'y',f=>'',u=>'s',d=>1,t=>"longOffTime",lit=>{notUsed=>111600.0,}}
$HMConfig::culHmRegDefine{"longOnTimeMode"} = {a=>0x8A.7,s=>0.1,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longOnTimeMode"}
$HMConfig::culHmRegDefine{"longOffTimeMode"} = {a=>0x8A.6,s=>0.1,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longOffTimeMode"}
$HMConfig::culHmRegDefine{"longMultiexecute"} = {a=>0x8A.5,s=>0.1,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longMultiexecute"}
$HMConfig::culHmRegDefine{"longActionType"} = {a=>0x8A.0,s=>0.2,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longActionType"}
$HMConfig::culHmRegDefine{"longJtOff"} = {a=>0x8B.4,s=>0x0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longJtOff"}
$HMConfig::culHmRegDefine{"longJtOn"} = {a=>0x8B.0,s=>0x0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longJtOn"}
$HMConfig::culHmRegDefine{"longJtOffdelay"} = {a=>0x8C.4,s=>0x0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longJtOffdelay"}
$HMConfig::culHmRegDefine{"longJtOndelay"} = {a=>0x8C.0,s=>0x0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longJtOndelay"}
$HMConfig::culHmRegDefine{"longActType"} = {a=>0xA4,s=>1.0,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longActType"}
$HMConfig::culHmRegDefine{"longActNum"} = {a=>0xA5,s=>1.0,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longActNum"}
$HMConfig::culHmRegDefine{"longActIntens"} = {a=>0xAB,s=>1.0,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longActIntens"}
# paramset id="signal_chime_valueset"
# paramset id="signal_chime_paramset"
# paramset id="signal_chime_linkset"
$HMConfig::culHmRegDefine{"shortCtOffdelay"} = {a=>0x2.4,s=>0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortCtOffdelay"}
$HMConfig::culHmRegDefine{"shortCtOndelay"} = {a=>0x2.0,s=>0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortCtOndelay"}
$HMConfig::culHmRegDefine{"shortCtOff"} = {a=>0x3.4,s=>0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortCtOff"}
$HMConfig::culHmRegDefine{"shortCtOn"} = {a=>0x3.0,s=>0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortCtOn"}
$HMConfig::culHmRegDefine{"shortCondValueLo"} = {a=>4,s=>1,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortCondValueLo"}
$HMConfig::culHmRegDefine{"shortCondValueHi"} = {a=>5,s=>1,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortCondValueHi"}
$HMConfig::culHmRegDefine{"shortOndelayTime"} = {a=>6,s=>1,l=>3,min=>0.0,max=>111600.0,c=>'',p=>'y',f=>'',u=>'s',d=>1,t=>"shortOndelayTime"}
$HMConfig::culHmRegDefine{"shortOnTime"} = {a=>7,s=>1,l=>3,min=>0.0,max=>108000.0,c=>'',p=>'y',f=>'',u=>'s',d=>1,t=>"shortOnTime",lit=>{notUsed=>111600.0,}}
$HMConfig::culHmRegDefine{"shortOffdelayTime"} = {a=>8,s=>1,l=>3,min=>0.0,max=>111600.0,c=>'',p=>'y',f=>'',u=>'s',d=>1,t=>"shortOffdelayTime"}
$HMConfig::culHmRegDefine{"shortOffTime"} = {a=>9,s=>1,l=>3,min=>0.0,max=>108000.0,c=>'',p=>'y',f=>'',u=>'s',d=>1,t=>"shortOffTime",lit=>{notUsed=>111600.0,}}
$HMConfig::culHmRegDefine{"shortOnTimeMode"} = {a=>0xA.7,s=>0.1,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortOnTimeMode"}
$HMConfig::culHmRegDefine{"shortOffTimeMode"} = {a=>0xA.6,s=>0.1,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortOffTimeMode"}
$HMConfig::culHmRegDefine{"shortActionType"} = {a=>0xA.0,s=>0.2,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortActionType"}
$HMConfig::culHmRegDefine{"shortJtOff"} = {a=>0xB.4,s=>0x0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortJtOff"}
$HMConfig::culHmRegDefine{"shortJtOn"} = {a=>0xB.0,s=>0x0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortJtOn"}
$HMConfig::culHmRegDefine{"shortJtOffdelay"} = {a=>0xC.4,s=>0x0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortJtOffdelay"}
$HMConfig::culHmRegDefine{"shortJtOndelay"} = {a=>0xC.0,s=>0x0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortJtOndelay"}
$HMConfig::culHmRegDefine{"shortActType"} = {a=>0x24,s=>1.0,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortActType"}
$HMConfig::culHmRegDefine{"shortActNum"} = {a=>0x25,s=>1.0,l=>3,min=>1,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortActNum"}
$HMConfig::culHmRegDefine{"shortActIntens"} = {a=>0x2B,s=>1.0,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"shortActIntens"}
$HMConfig::culHmRegDefine{"longCtOffdelay"} = {a=>0x82.4,s=>0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longCtOffdelay"}
$HMConfig::culHmRegDefine{"longCtOndelay"} = {a=>0x82.0,s=>0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longCtOndelay"}
$HMConfig::culHmRegDefine{"longCtOff"} = {a=>0x83.4,s=>0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longCtOff"}
$HMConfig::culHmRegDefine{"longCtOn"} = {a=>0x83.0,s=>0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longCtOn"}
$HMConfig::culHmRegDefine{"longCondValueLo"} = {a=>0x84,s=>1,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longCondValueLo"}
$HMConfig::culHmRegDefine{"longCondValueHi"} = {a=>0x85,s=>1,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longCondValueHi"}
$HMConfig::culHmRegDefine{"longOndelayTime"} = {a=>0x86,s=>1,l=>3,min=>0.0,max=>111600.0,c=>'',p=>'y',f=>'',u=>'s',d=>1,t=>"longOndelayTime"}
$HMConfig::culHmRegDefine{"longOnTime"} = {a=>0x87,s=>1,l=>3,min=>0.0,max=>108000.0,c=>'',p=>'y',f=>'',u=>'s',d=>1,t=>"longOnTime",lit=>{notUsed=>111600.0,}}
$HMConfig::culHmRegDefine{"longOffdelayTime"} = {a=>0x88,s=>1,l=>3,min=>0.0,max=>111600.0,c=>'',p=>'y',f=>'',u=>'s',d=>1,t=>"longOffdelayTime"}
$HMConfig::culHmRegDefine{"longOffTime"} = {a=>0x89,s=>1,l=>3,min=>0.0,max=>108000.0,c=>'',p=>'y',f=>'',u=>'s',d=>1,t=>"longOffTime",lit=>{notUsed=>111600.0,}}
$HMConfig::culHmRegDefine{"longOnTimeMode"} = {a=>0x8A.7,s=>0.1,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longOnTimeMode"}
$HMConfig::culHmRegDefine{"longOffTimeMode"} = {a=>0x8A.6,s=>0.1,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longOffTimeMode"}
$HMConfig::culHmRegDefine{"longMultiexecute"} = {a=>0x8A.5,s=>0.1,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longMultiexecute"}
$HMConfig::culHmRegDefine{"longActionType"} = {a=>0x8A.0,s=>0.2,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longActionType"}
$HMConfig::culHmRegDefine{"longJtOff"} = {a=>0x8B.4,s=>0x0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longJtOff"}
$HMConfig::culHmRegDefine{"longJtOn"} = {a=>0x8B.0,s=>0x0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longJtOn"}
$HMConfig::culHmRegDefine{"longJtOffdelay"} = {a=>0x8C.4,s=>0x0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longJtOffdelay"}
$HMConfig::culHmRegDefine{"longJtOndelay"} = {a=>0x8C.0,s=>0x0.4,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longJtOndelay"}
$HMConfig::culHmRegDefine{"longActType"} = {a=>0xA4,s=>1.0,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longActType"}
$HMConfig::culHmRegDefine{"longActNum"} = {a=>0xA5,s=>1.0,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longActNum"}
$HMConfig::culHmRegDefine{"longActIntens"} = {a=>0xAB,s=>1.0,l=>3,min=>0,max=>0,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"longActIntens"}



Schlau werde ich daraus ehrlich gesagt noch nicht so ganz.
Gibt es dazu irgendwo eine Dokumentation?

Ich habe folgende Zuordnungen erschlossen:
a="index", s="size", l="list", min="min", max="max", t="id"

Was bedeuten c, p, f, u und d?

Müssen die ganzen option-en und value-s auch irgendwie definiert werden?


papa

BananaPi + CUL868 + CUL433 + HM-UART + 1Wire

Sir.Frenz

Im Prinzip müsste sich das doch alles sehr nahe am HM-OU-CFM-PL orientieren, oder?

sentinel1

Ich habe den Funk gong gestern zum laufen gebracht.Er spielt die mp3 ab und die Led`s blinken.
Was ich noch nicht rausgefunden habe, ist wie die Leds wieder von alleine ausgehen, da muss ich noch mit den Register Einstellungen probieren.

papa

Wenn es läuft, würde ich es gern in das Addin integrieren.
BananaPi + CUL868 + CUL433 + HM-UART + 1Wire

sentinel1

kein Problem,soll ich hier die änderungen in HMConfig_AskSinPPCustom.pm posten?

papa

BananaPi + CUL868 + CUL433 + HM-UART + 1Wire

sentinel1

Zitat von: papa am 27 Januar 2021, 13:06:47
Geht auch

Mit der HMConfig_AskSinPPCustom.pm läuft der Funkgong bei mir


# HB-OU-MP3-LED
$HMConfig::culHmRegDefine{"deviceLedMode"}                = {a=>5.6,s=>0.2,l=>0,min=>0,max=>0,c=>'',p=>'n',f=>'',u=>'',d=>1,t=>"deviceLedMode"};
$HMConfig::culHmRegDefine{"hbInterruptRunning"}           = {a=>126,s=>0.1,l=>1,min=>0,max=>1,c=>'',p=>'n',f=>'',u=>'',d=>1,t=>"hbInterruptRunning"};
$HMConfig::culHmRegDefine{"hbLedCount"}                   = {a=>127,s=>1,l=>1,min=>1,max=>32,c=>'',p=>'n',f=>'',u=>'',d=>1,t=>"hbLedCount"};
$HMConfig::culHmRegDefine{"shortActType"}                 = {a=>0x24,s=>1.0,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"Led color or Mp3 Nummer"};
$HMConfig::culHmRegDefine{"shortActNum"}                  = {a=>0x25,s=>1.0,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"BPM or Repeat"};
$HMConfig::culHmRegDefine{"shortActIntens"}               = {a=>0x2B,s=>1.0,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"Volume or Led Brightness"};
$HMConfig::culHmRegDefine{"longActType"}                 = {a=>0xA4,s=>1.0,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"Led color or Mp3 Nummer"};
# Red=11, Green=21, Yellow=31, Blue=41, Violet=51, Cyan=61, White=71, Orange=81
$HMConfig::culHmRegDefine{"longActNum"}                   = {a=>0xA5,s=>1.0,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"BPM or Repeat"};
$HMConfig::culHmRegDefine{"longActIntens"}                = {a=>0xAB,s=>1.0,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"Volume or Led Brightness"};
# Volume0=0, Volume10=20, Volume20=40, Volume40=60, .... Volume100=200

################################################################################################################################
# HB-OU-MP3-LED
$HMConfig::culHmModel{"F344"} = {name=>"HB-OU-MP3-LED",st=>'custom',cyc=>'',rxt=>'',lst=>'1,3:1p.2p',chn=>"LED:1:1,MP3:2:2"};
$HMConfig::culHmChanSets{"HB-OU-MP3-LED"}{fwUpdate} = "<filename>";
$HMConfig::culHmChanSets{"HB-OU-MP3-LED01"} = $HMConfig::culHmSubTypeSets{"switch"};
$HMConfig::culHmChanSets{"HB-OU-MP3-LED02"} = $HMConfig::culHmSubTypeSets{"switch"};
$HMConfig::culHmRegModel{"HB-OU-MP3-LED"}   = { deviceLedMode  =>1};
$HMConfig::culHmRegChan {"HB-OU-MP3-LED01"} = $HMConfig::culHmRegType{switch};
# add extra register
$HMConfig::culHmRegChan {"HB-OU-MP3-LED01"}{"hbLedCount"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED01"}{"hbInterruptRunning"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED01"}{"shortActType"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED01"}{"shortActNum"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED01"}{"shortActIntens"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED01"}{"longActType"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED01"}{"longActNum"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED01"}{"longActIntens"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED02"} = $HMConfig::culHmRegType{switch};
# add extra register
$HMConfig::culHmRegChan {"HB-OU-MP3-LED02"}{"hbInterruptRunning"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED02"}{"shortActType"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED02"}{"shortActNum"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED02"}{"shortActIntens"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED02"}{"longActType"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED02"}{"longActNum"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED02"}{"longActIntens"} = 1;

$customMsg{"HB-OU-MP3-LED"} = sub {
  my ($msg,$target) = @_;
  my $channel = $msg->channel;
  return $msg->processSwitchStatus($target) if $msg->isStatus;
  return ();
};



papa

BananaPi + CUL868 + CUL433 + HM-UART + 1Wire

Horti

Zitat von: thgorjup am 18 Januar 2021, 15:37:51
Da ich auch daran gescheitert bin und der Sketch wohl nur mit einer CCU funktioniert, habe ich mir solch einen Funkgong mit einem D1-Mini nachgebaut.
https://wiki.gorjup.de/doku.php?id=public:mp3_kombisignalgeber

Warum verweist Du nicht gleich auf Deinen E**y-Shop? Mit dem Wiki alleine lässt sich ja das Ding nicht nachbauen!

Aber dafür müsste man ja sich als "Commercial User" registrieren und sich an die Forumsregeln halten, sprich solche Infos nur in einem entsprechenden Unterforum posten, nicht wahr ;)

Beetle2003

Zitat von: sentinel1 am 27 Januar 2021, 23:19:45
Mit der HMConfig_AskSinPPCustom.pm läuft der Funkgong bei mir


# HB-OU-MP3-LED
$HMConfig::culHmRegDefine{"deviceLedMode"}                = {a=>5.6,s=>0.2,l=>0,min=>0,max=>0,c=>'',p=>'n',f=>'',u=>'',d=>1,t=>"deviceLedMode"};
$HMConfig::culHmRegDefine{"hbInterruptRunning"}           = {a=>126,s=>0.1,l=>1,min=>0,max=>1,c=>'',p=>'n',f=>'',u=>'',d=>1,t=>"hbInterruptRunning"};
$HMConfig::culHmRegDefine{"hbLedCount"}                   = {a=>127,s=>1,l=>1,min=>1,max=>32,c=>'',p=>'n',f=>'',u=>'',d=>1,t=>"hbLedCount"};
$HMConfig::culHmRegDefine{"shortActType"}                 = {a=>0x24,s=>1.0,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"Led color or Mp3 Nummer"};
$HMConfig::culHmRegDefine{"shortActNum"}                  = {a=>0x25,s=>1.0,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"BPM or Repeat"};
$HMConfig::culHmRegDefine{"shortActIntens"}               = {a=>0x2B,s=>1.0,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"Volume or Led Brightness"};
$HMConfig::culHmRegDefine{"longActType"}                 = {a=>0xA4,s=>1.0,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"Led color or Mp3 Nummer"};
# Red=11, Green=21, Yellow=31, Blue=41, Violet=51, Cyan=61, White=71, Orange=81
$HMConfig::culHmRegDefine{"longActNum"}                   = {a=>0xA5,s=>1.0,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"BPM or Repeat"};
$HMConfig::culHmRegDefine{"longActIntens"}                = {a=>0xAB,s=>1.0,l=>3,min=>0,max=>255,c=>'',p=>'y',f=>'',u=>'',d=>1,t=>"Volume or Led Brightness"};
# Volume0=0, Volume10=20, Volume20=40, Volume40=60, .... Volume100=200

################################################################################################################################
# HB-OU-MP3-LED
$HMConfig::culHmModel{"F344"} = {name=>"HB-OU-MP3-LED",st=>'custom',cyc=>'',rxt=>'',lst=>'1,3:1p.2p',chn=>"LED:1:1,MP3:2:2"};
$HMConfig::culHmChanSets{"HB-OU-MP3-LED"}{fwUpdate} = "<filename>";
$HMConfig::culHmChanSets{"HB-OU-MP3-LED01"} = $HMConfig::culHmSubTypeSets{"switch"};
$HMConfig::culHmChanSets{"HB-OU-MP3-LED02"} = $HMConfig::culHmSubTypeSets{"switch"};
$HMConfig::culHmRegModel{"HB-OU-MP3-LED"}   = { deviceLedMode  =>1};
$HMConfig::culHmRegChan {"HB-OU-MP3-LED01"} = $HMConfig::culHmRegType{switch};
# add extra register
$HMConfig::culHmRegChan {"HB-OU-MP3-LED01"}{"hbLedCount"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED01"}{"hbInterruptRunning"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED01"}{"shortActType"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED01"}{"shortActNum"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED01"}{"shortActIntens"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED01"}{"longActType"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED01"}{"longActNum"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED01"}{"longActIntens"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED02"} = $HMConfig::culHmRegType{switch};
# add extra register
$HMConfig::culHmRegChan {"HB-OU-MP3-LED02"}{"hbInterruptRunning"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED02"}{"shortActType"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED02"}{"shortActNum"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED02"}{"shortActIntens"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED02"}{"longActType"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED02"}{"longActNum"} = 1;
$HMConfig::culHmRegChan {"HB-OU-MP3-LED02"}{"longActIntens"} = 1;

$customMsg{"HB-OU-MP3-LED"} = sub {
  my ($msg,$target) = @_;
  my $channel = $msg->channel;
  return $msg->processSwitchStatus($target) if $msg->isStatus;
  return ();
};


Hallo,
Kannst mir ein paar Beispiele nennen, wie ich die LEDs und den MP3 Player. Aus dem ansprechen kann.

Danke

sentinel1

Zitat von: Beetle2003 am 04 November 2021, 23:21:26
Hallo,
Kannst mir ein paar Beispiele nennen, wie ich die LEDs und den MP3 Player. Aus dem ansprechen kann.

Danke

Hallo,

in LED Kanal die 3 Register ändern:


R-VCCU_Btn4-shortActIntens 40 (Helligkeit)
R-VCCU_Btn4-shortActNum 40
R-VCCU_Btn4-shortActType 31  (# Red=11, Green=21, Yellow=31, Blue=41, Violet=51, Cyan=61, White=71, Orange=81)


in MP3 Kanal die 3 Register ändern:


R-klingeltaster_claudiu-shortActIntens 180 (# Volume0=0, Volume10=20, Volume20=40, Volume40=60, .... Volume100=200)
R-klingeltaster_claudiu-shortActNum 3  (Widerholungen))
R-klingeltaster_claudiu-shortActType 1 (MP3 Nummer)


Die Klingel muss  mit einen Taster gepeert sein.

Beetle2003

Zitat von: sentinel1 am 05 November 2021, 00:57:44
Hallo,

in LED Kanal die 3 Register ändern:


R-VCCU_Btn4-shortActIntens 40 (Helligkeit)
R-VCCU_Btn4-shortActNum 40
R-VCCU_Btn4-shortActType 31  (# Red=11, Green=21, Yellow=31, Blue=41, Violet=51, Cyan=61, White=71, Orange=81)


in MP3 Kanal die 3 Register ändern:


R-klingeltaster_claudiu-shortActIntens 180 (# Volume0=0, Volume10=20, Volume20=40, Volume40=60, .... Volume100=200)
R-klingeltaster_claudiu-shortActNum 3  (Widerholungen))
R-klingeltaster_claudiu-shortActType 1 (MP3 Nummer)


Die Klingel muss  mit einen Taster gepeert sein.

Vielen Dank für die Info.
Die Readings habe ich gesetzt. Was meinst Du mit dem Satz   "Die Klingel muss  mit einen Taster gepeert sein."

Ich möchte verschiedene MP3 und dazu ggf die LEDs schalten.

Danke für die Hilfestellung

Gruss

sentinel1

Zitat von: Beetle2003 am 06 November 2021, 21:26:17
Vielen Dank für die Info.
Die Readings habe ich gesetzt. Was meinst Du mit dem Satz   "Die Klingel muss  mit einen Taster gepeert sein."

Ich möchte verschiedene MP3 und dazu ggf die LEDs schalten.

Danke für die Hilfestellung

Gruss

Bin mir nicht mehr ganz sicher,aber ich glaube LEDs schalten und MP3 ging bei mir erst als der Gong mit ein Taster gepeert war.Kann auch
eine virtuele Taste der VCCU  sein.