Skip to content

Commit

Permalink
Merge pull request #25 from waynieack/AlexaBridge
Browse files Browse the repository at this point in the history
Added alexaForceLongFormat ini option to force the long format discov…
  • Loading branch information
Wayne Gatlin authored Apr 21, 2021
2 parents 65a8195 + 3e6c813 commit d096140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/AlexaBridge.pm
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ sub process_http {
next unless $name;
my $state = &get_set_state( $self, $AlexaObjects, $uuid, 'get' );
$statep1 = qq[{"];
if ( $Http{'Accept-Encoding'} =~ m/gzip/ ) {
if ( ( $Http{'Accept-Encoding'} =~ m/gzip/ ) or ( $::config_parms{'alexaForceLongFormat'} ) ) {
&main::print_log("[Alexa] Debug: Returning long format. Accept-Encoding=" . $Http{'Accept-Encoding'}) if $main::Debug{'alexa'};
$statep2=qq[":{"state":{$state,"alert": "select","mode": "homeautomation","reachable": true},"swupdate": {"state": "readytoinstall","lastinstall": null},"type": "Dimmable light","name": "];
$statep3=qq[","modelid": "LWB014","manufacturername": "Philips","productname": "Hue white lamp","capabilities": {"certified": true,"control": {"mindimlevel": 5000,"maxlumen": 840},"streaming": {"renderer": false,"proxy": false}},"config": {"archetype": "classicbulb","function": "functional","direction": "omnidirectional"},"uniqueid": "00:17:88:01:04:00:3d:96-0b","swversion": "1.23.0_r20156","swconfigid": "321D79EA","productid": "Philips-LWB014-1-A19DLv4"}];
Expand Down

0 comments on commit d096140

Please sign in to comment.