Skip to content

Commit

Permalink
Carrier Sense und Duty Cycle für RPI-RF-MOD,RPI-RF-MOD-PCB & HmIP-RFU…
Browse files Browse the repository at this point in the history
…SB eingepflegt.

Carrier Sense und Duty Cycle für RPI-RF-MOD,RPI-RF-MOD-PCB & HmIP-RFUSB eingepflegt.

mapping auch angepasst. Sind zu finden unter Sender. "?seite=Sender"
  • Loading branch information
christian1180 committed Jan 7, 2025
1 parent 97706fe commit afce0b0
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 0 deletions.
21 changes: 21 additions & 0 deletions components/HmIP-RFUSB.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
function HmIP_RFUSB($component) {
// if ($component['parent_device_interface'] == 'HmIP-RF' ) {
$modalId = mt_rand();
if (!isset($component['color'])) $component['color'] = '#00CC33';


return '<div class="hh" style=\'border-left-color: '.$component['color'].'; border-left-style: solid;\'>'
. '<div data-toggle="collapse" data-target="#' . $modalId . '">'
. '<div class="pull-left"><img src="icon/' . $component["icon"] . '" class="icon">' . $component['name'] . '</div>'
. '<div class="pull-right">'
.'Belegung Funkband<span class="info" data-id="' . $component['CARRIER_SENSE_LEVEL'] . '" data-component="' . $component['component'] . '" data-datapoint="CARRIER_SENSE_LEVEL"></span>&nbsp;|&nbsp;'
. 'Duty Cycle<span class="info" data-id="' . $component['DUTY_CYCLE_LEVEL'] . '" data-component="' . $component['component'] . '" data-datapoint="DUTY_CYCLE_LEVEL"></span>'

. '</div>'
. '<div class="clearfix"></div>'
. '</div>'

. '</div>';
}
//}
21 changes: 21 additions & 0 deletions components/RPI-RF-MOD-PCB.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
function RPI_RF_MOD_PCB($component) {
// if ($component['parent_device_interface'] == 'HmIP-RF' ) {
$modalId = mt_rand();
if (!isset($component['color'])) $component['color'] = '#00CC33';


return '<div class="hh" style=\'border-left-color: '.$component['color'].'; border-left-style: solid;\'>'
. '<div data-toggle="collapse" data-target="#' . $modalId . '">'
. '<div class="pull-left"><img src="icon/' . $component["icon"] . '" class="icon">' . $component['name'] . '</div>'
. '<div class="pull-right">'
.'Belegung Funkband<span class="info" data-id="' . $component['CARRIER_SENSE_LEVEL'] . '" data-component="' . $component['component'] . '" data-datapoint="CARRIER_SENSE_LEVEL"></span>&nbsp;|&nbsp;'
. 'Duty Cycle<span class="info" data-id="' . $component['DUTY_CYCLE_LEVEL'] . '" data-component="' . $component['component'] . '" data-datapoint="DUTY_CYCLE_LEVEL"></span>'

. '</div>'
. '<div class="clearfix"></div>'
. '</div>'

. '</div>';
}
//}
21 changes: 21 additions & 0 deletions components/RPI-RF-MOD.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
function RPI_RF_MOD($component) {
// if ($component['parent_device_interface'] == 'HmIP-RF' ) {
$modalId = mt_rand();
if (!isset($component['color'])) $component['color'] = '#00CC33';


return '<div class="hh" style=\'border-left-color: '.$component['color'].'; border-left-style: solid;\'>'
. '<div data-toggle="collapse" data-target="#' . $modalId . '">'
. '<div class="pull-left"><img src="icon/' . $component["icon"] . '" class="icon">' . $component['name'] . '</div>'
. '<div class="pull-right">'
.'Belegung Funkband<span class="info" data-id="' . $component['CARRIER_SENSE_LEVEL'] . '" data-component="' . $component['component'] . '" data-datapoint="CARRIER_SENSE_LEVEL"></span>&nbsp;|&nbsp;'
. 'Duty Cycle<span class="info" data-id="' . $component['DUTY_CYCLE_LEVEL'] . '" data-component="' . $component['component'] . '" data-datapoint="DUTY_CYCLE_LEVEL"></span>'

. '</div>'
. '<div class="clearfix"></div>'
. '</div>'

. '</div>';
}
//}
12 changes: 12 additions & 0 deletions config/mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,18 @@
"name": "HmIP-CCU3",
"icon": "ccu.png"
},
{
"name": "RPI-RF-MOD",
"icon": "ccu.png"
},
{
"name": "RPI-RF-MOD-PCB",
"icon": "ccu.png"
},
{
"name": "HmIP-RFUSB",
"icon": "ccu.png"
},
{
"name": "HmIP-STV",
"icon": "it_remote.png"
Expand Down

11 comments on commit afce0b0

@63chris
Copy link
Contributor

@63chris 63chris commented on afce0b0 Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

funktioniert für das RPI-RF-MOD soweit. Nachkommastellen sind aber hier anders. Ein %-Zeichen ist auch keines da (aber nicht so wichtig)

das RPI-RF-MOD-PCB teste ich später

@Baxxy13
Copy link

@Baxxy13 Baxxy13 commented on afce0b0 Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Den Test kannst du dir sparen.
Zum Einen heißt das alte Funkmodul HM-MOD-RPI-PCB und zum Anderen wird für diese Funkmodul kein Gerät in der CCU3/RM angelegt. Man kann da also auch nichts auslesen.
Kann wieder raus.

@christian1180
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Baxxy13 Taucht "HM-MOD-RPI-PCB" unter "interface.php?statelist.cgi" nicht auf?
@63chris "js/script.js.php" angepasst für die korrekte Nachkommastellen und %-Zeichen.

@Baxxy13
Copy link

@Baxxy13 Baxxy13 commented on afce0b0 Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Taucht "HM-MOD-RPI-PCB" unter "interface.php?statelist.cgi" nicht auf?

Nein.

@63chris
Copy link
Contributor

@63chris 63chris commented on afce0b0 Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfekt, Danke

Image

@63chris
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hallo,
ja, das mit der Bezeichnung des HM-MOD-RPI-PCB war ein Irrtum meinerseits - mea culpa.

Es muss aber ein Gerät angelegt werden - zumindestens sehe ich ein solches in ioBroker und der DC wird dort auch aktualisiert.
Ob das eine Option sein kann weiß ich nicht, möchte das hier auch nicht unnötig "aufblasen". Wie viele user sowohl dieses Modul als auch HH nutzen weiß ich nicht.
Ich selber kann den DC für mein Testsystem ja aus ioBroker heraus in HH anzeigen.

Image

Image

@christian1180
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HM-MOD-RPI-PCB hatte ich aufgenommen. Nach Möglichkeit könntest du es testen. Danke

@63chris
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

habe ich - wird unter Sender nicht angezeigt. Auch in den anderen Kategorien nicht.

Was mir aufgefallen ist: in ioB wird der HM-MOD-RPI-PCB unter dem HM-Rega-Adapter gelistet.
Ein RPI-RF-MOD jedoch unter dem HM-RPC Adapter (HmIP, XML-RPC)

Image

Image

@christian1180
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kannst du mir deine export.json zukommen lassen. Danke

@63chris
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

per Signal geschickt

@Baxxy13
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Falls einer wissen möchte wieso ihr das HM-MOD-RPI-PCB nicht als Gerät bekommt...

und zum Anderen wird für dieses Funkmodul kein Gerät in der CCU3/RM angelegt

HomeHub läuft mittels RemoteScript.
Also kann grundsätzlich nur auf Objekte zugegriffen werden die der ReGa (Logikengine der CCU) bekannt sind.

Aber der ioBroker...

Ja, der "trickst" hier ein bisschen.
Per RemoteScript führt er system.Exec() aus um die XMLRPC-Schnittstelle abzufragen.
Siehe: dutycycle.fn

Aus der Antwort, die beispielhaft so aussieht...
{ADDRESS OEQ0309711 CONNECTED 1 DEFAULT 1 DESCRIPTION {} DUTY_CYCLE 0 FIRMWARE_VERSION 2.8.6 TYPE CCU2}
...parst er dann u.a. die Seriennummer und den DutyCycle.

Please sign in to comment.