Giter VIP home page Giter VIP logo

Comments (10)

sivar2311 avatar sivar2311 commented on June 9, 2024

Sure it is possible.
Just include the IR-Library you favour and change the onChangeChannel / onChangeChannelNumber callback to send the IR codes your TV needs.

from esp8266-esp32-sdk.

soufianechekroud avatar soufianechekroud commented on June 9, 2024

Thank's for your fast reply, can you give me a simple example

from esp8266-esp32-sdk.

sivar2311 avatar sivar2311 commented on June 9, 2024

Which IR module and IR library do you use?

from esp8266-esp32-sdk.

soufianechekroud avatar soufianechekroud commented on June 9, 2024

I used ESP32/ESP8266 with IR Emmiter with Kakopappa TV example.
Libraires : "IRremoteESP8266" and "IRsend".
now i try yhe "TV code" for SinricPro, it's work in serial monitor fine but i want to send ir codes in each commande.

from esp8266-esp32-sdk.

sivar2311 avatar sivar2311 commented on June 9, 2024

Ok, so show me the code you use to send IR code to switch to a specific channel.
Alexa supports switching channels by using a channel name like "NBC" or by a number.

from esp8266-esp32-sdk.

soufianechekroud avatar soufianechekroud commented on June 9, 2024

In my case i dont need channel names or numbers, i need only to switch channel up or down !
using your code example and IR codes like that " TV_POWER_H = 0xF10EF6; "

Your example

thanks

from esp8266-esp32-sdk.

sivar2311 avatar sivar2311 commented on June 9, 2024

You dont have to send me my own example back here ;)
Okay, so you only want to switch UP and DOWN.
Then you only have to use the onSkipChannels callback.
The parameter channelCount will be -1 when you want to switch "down" and +1 if you want to switch "UP".

Edit1---
If channelCount = -1, send your "down IR command"
If channelCount = +1, send your "up IR command"
---Edit1

Just try to set channelName to "" and channelCount to 0. Alexa awaits a real channel name and the channel number here...

Edit2:
You can also use the onChannelNumber callback. You only have to translate the given channel number into a series of IR commands, corresponding to the number IR codes on your remote control. And i think you have to send an "OK" IR command or something like that that will do the final switch on your TV. This will enable you to say "Alexa, switch TV to channel 21"... then in your sketch the onChangeChannelNumber gets called with parameter channelNumber = 21.
Your Sketch have to send IR commands for "2", "1", "OK" then

from esp8266-esp32-sdk.

sivar2311 avatar sivar2311 commented on June 9, 2024

Can you please provide a "small" codesnippet how you would send an "UP" or "DOWN" or even a number IR-Command?

from esp8266-esp32-sdk.

sivar2311 avatar sivar2311 commented on June 9, 2024

Closed because requested information was not delivered

from esp8266-esp32-sdk.

Joshthynne avatar Joshthynne commented on June 9, 2024

I am currently working on a tutorial to do exactly this, i shall upload it in a couple of weeks. https://www.youtube.com/channel/UCQlMVtTTtNYMCdhDZO5dGuw

from esp8266-esp32-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.