kakopappa / sinric

Amazon Alexa Smart home skill / Google Home Action for ESP8266 / ESP32 / Arduino
https://sinric.com
285 stars 166 forks source link

i know this is old and the json is outdated but it worked for me getting it on my alexa! i have a stereo with the codes and the power and the mute work fine but when i tried to add another code to change the input it just keeps sending the power toggle i cant seem to find what im missing #423

Open skdemont opened 4 years ago

skdemont commented 4 years ago

here is what i added right below the MuteAction bool MuteAction=json ["value"]["mute"]; if(MuteAction==true || MuteAction==false){ ToggleMute(deviceId); }

    }

   else if (action == "SetMode") {

     bool ModeAction=json ["value"]["mode"];
      if(ModeAction==true || ModeAction==false){ 
         ToggleMode(deviceId);
       }

    }