Comments (10)
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.
Thank's for your fast reply, can you give me a simple example
from esp8266-esp32-sdk.
Which IR module and IR library do you use?
from esp8266-esp32-sdk.
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.
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.
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.
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.
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.
Closed because requested information was not delivered
from esp8266-esp32-sdk.
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)
- Alexa doesn't work with Custom Devices HOT 7
- SinricProTemperaturesensor' has no member named 'onPowerState' - Tried the no-code option when adding device in sinric pro HOT 2
- Something went wrong...could not send Event to server! - No code temperature sensor DHT11 esp8266 HOT 6
- Sinric pro blinds HOT 16
- ESP8266 WebSocket disconnects and no data is sent HOT 7
- SinricPro sketch problem with Arduino Uno R4 HOT 2
- Problem with SinricPro on ESP8266 HOT 18
- Device did not handle set power state. HOT 10
- 5050 led Strip Sinric Pro with Google Home onPowerState not responding and onColour strangely white HOT 3
- Dimmer switch not working HOT 18
- Relay status not syncing correctly with Sinric Pro dashboard HOT 5
- for multi switches and dimmer with pwm and zero crossing HOT 2
- esp8266 after upload the code issue 365 HOT 1
- Connection HOT 13
- sha1 conflict with rweather/Crypto@^0.4.0 Library in PIO. HOT 2
- Relay status at startup HOT 7
- Capacitive Soil Moisture Sensor data not Reaching Alexa HOT 7
- device turns off for on and on for off what changes should i make in the onPowerstate HOT 2
- Device shows as unresponsive in App and Dashboard after router IP rotation, but is actually responsive HOT 6
- Sin ric pro How do I "mirror" WS2812b led strips with ESP32 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp8266-esp32-sdk.