diff --git a/fhem/FHEM/70_PHTV.pm b/fhem/FHEM/70_PHTV.pm
index bd02ec0ef..98ae0d600 100644
--- a/fhem/FHEM/70_PHTV.pm
+++ b/fhem/FHEM/70_PHTV.pm
@@ -1115,6 +1115,9 @@ sub PHTV_Define($$) {
$hash->{model} = $hash->{READINGS}{model}{VAL}
if ( defined( $hash->{READINGS}{model}{VAL} ) );
+ $hash->{swversion} = $hash->{READINGS}{softwareversion}{VAL}
+ if ( defined( $hash->{READINGS}{softwareversion}{VAL} ) );
+
unless ( defined( AttrVal( $name, "webCmd", undef ) ) ) {
$attr{$name}{webCmd} = 'volume:input:rgb';
}
@@ -1475,25 +1478,24 @@ sub PHTV_ReceiveCommand($$$) {
}
# softwareversion
- if (
- defined( $return->{softwareversion} )
- && ( !defined( $hash->{READINGS}{softwareversion}{VAL} )
+ if ( defined( $return->{softwareversion} ) ) {
+ if ( !defined( $hash->{READINGS}{softwareversion}{VAL} )
|| $hash->{READINGS}{softwareversion}{VAL} ne
$return->{softwareversion} )
- )
- {
- readingsBulkUpdate( $hash, "softwareversion",
- $return->{softwareversion} );
+ {
+ readingsBulkUpdate( $hash, "softwareversion",
+ $return->{softwareversion} );
+ }
+ $hash->{swversion} = $return->{softwareversion};
}
# model
- if (
- defined( $return->{model} )
- && ( !defined( $hash->{READINGS}{model}{VAL} )
+ if ( defined( $return->{model} ) ) {
+ if ( !defined( $hash->{READINGS}{model}{VAL} )
|| $hash->{READINGS}{model}{VAL} ne $return->{model} )
- )
- {
- readingsBulkUpdate( $hash, "model", $return->{model} );
+ {
+ readingsBulkUpdate( $hash, "model", $return->{model} );
+ }
$hash->{model} = $return->{model};
}
}
@@ -2848,6 +2850,8 @@ sub PHTV_min {
ambiHueRight - HUE devices that should get the color from right Ambilight. Add ":0"-":x" if you would like to use a specific LED as color reference
ambiHueBottom - HUE devices that should get the color from bottom Ambilight. Add ":0"-":x" if you would like to use a specific LED as color reference
disable - Disable polling (true/false)
+ http-timeout - Set different polling timeout in seconds (default=7)
+ inputs - Presents the inputs read from device. Inputs can be renamed by adding ,NewName right after the original name.
@@ -2862,17 +2866,25 @@ sub PHTV_min {
ambiLEDRight - Number of LEDs of right Ambilight
ambiLEDTop - Number of LEDs of top Ambilight
ambiMode - current Ambilight color source
- channel - Shows the service name of current channel or media file name; part of FHEM-4-AV-Devices compatibility
- currentMedia - The preset number of this channel; part of FHEM-4-AV-Devices compatibility
+ channel - Shows the service name of current channel; part of FHEM-4-AV-Devices compatibility
country - Set country
+ currentMedia - The preset number of this channel; part of FHEM-4-AV-Devices compatibility
+ frequency - Shows current channels frequency
input - Shows currently used input; part of FHEM-4-AV-Devices compatibility
language - Set menu language
+ model - Device model
mute - Reports the mute status of the device (can be "on" or "off")
onid - The ON ID
power - Reports the power status of the device (can be "on" or "off")
presence - Reports the presence status of the receiver (can be "absent" or "present"). In case of an absent device, control is basically limited to turn it on again. This will only work if the device supports Wake-On-LAN packages, otherwise command "on" will have no effect.
+ receiveMode - Receiving mode (analog or DVB)
+ rgb - Current Ambilight color if ambiMode is not set to internal and all LEDs have the same color
+ rgb_X - Current Ambilight color of a specific LED if ambiMode is not set to internal
+ serialnumber - Device serial number
+ servicename - Name for current channel
sid - The S-ID
state - Reports current power state and an absence of the device (can be "on", "off" or "absent")
+ systemname - Device system name
tsid - The TS ID
volume - Reports current volume level of the receiver in percentage values (between 0 and 100 %)
volumeStraight - Reports current volume level of the receiver in device specific range