Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doing More than Only Turn on and OFF TV #2

Closed
rajdpandey opened this issue Sep 11, 2019 · 7 comments
Closed

Doing More than Only Turn on and OFF TV #2

rajdpandey opened this issue Sep 11, 2019 · 7 comments

Comments

@rajdpandey
Copy link

Hi,

I want to do more than just turning ON or OFF the TV. After turning ON TV when I say "Alexa Increase the TV volume" or "Alexa, mute the tv" etc it should also work for that.

So how can I implement these?

@nugoo1
Copy link
Owner

nugoo1 commented Sep 11, 2019

You need to record the specific IR code emitted from your remote for volume up or down and then configure that code to fire through your NodeMCU when you ask alexa to do so..

1 similar comment
@nugoo1
Copy link
Owner

nugoo1 commented Sep 11, 2019

You need to record the specific IR code emitted from your remote for volume up or down and then configure that code to fire through your NodeMCU when you ask alexa to do so..

@nugoo1 nugoo1 closed this as completed Sep 11, 2019
@rajdpandey
Copy link
Author

Hi,

Can you please say if this is correct for the Increasing and decreasing volume and for mute?
lightOne = new Switch("TV", 3611, lightOneOn, lightOneOff);
lightTwo = new Switch("HDMI", 3612, lightTwoOn, lightTwoOff);
lightThree = newSwitch("VOLUME",3613,IncreaseVol,DecreaseVol)
lightFour = newSwitch("MUTE",3614,MuteVol,UnmuteVol)

Is this right for Increase Volume of TV, Decreasing Volume and making it Mute?
Please provide your insights...
If above is right then I can do rest of sending code function and all.

@nugoo1
Copy link
Owner

nugoo1 commented Sep 11, 2019

Yes correct, doesnt matter what u call it. Just initialize callbacks etc., same as other switches.

@rajdpandey
Copy link
Author

If possible can you try it so you will also have some insight and you will know better how to tweak if it goes south?

@nugoo1
Copy link
Owner

nugoo1 commented Sep 12, 2019

It's a simple piece of code, just experiment! I might do a youtube video, don't be so scared of failing lol

@rajdpandey
Copy link
Author

OK, I will do it. Thanks for help. when you complete it Please Share your youtube link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants