Comments (4)
Hi !
A solution could be to emulate each key to be pressed to do that like if u're using the remote
For a QN90A, i use those ommands
"switches": [
{
"name": "Lowest Brightness",
"command": "KEY_HOME,KEY_LEFT*7,KEY_ENTER,KEY_UP*1s,KEY_ENTER,KEY_DOWN*3,KEY_ENTER*1s,KEY_ENTER*1s,KEY_LEFT*7s,KEY_HOME*2"
},
{
"name": "Low Brightness",
"command": "KEY_HOME,KEY_LEFT*7,KEY_ENTER,KEY_UP*1s,KEY_ENTER,KEY_DOWN*3,KEY_ENTER*1s,KEY_ENTER*1s,KEY_LEFT*7s,KEY_RIGHT*10,KEY_HOME*2"
},
{
"name": "Full Brightness",
"command": "KEY_HOME,KEY_LEFT*7,KEY_ENTER,KEY_UP*1s,KEY_ENTER,KEY_DOWN*3,KEY_ENTER*1s,KEY_ENTER*1s,KEY_RIGHT*7s,KEY_HOME*2"
}
]
But it does not works every time. I think sometime the delay between keys is not enough (because the interface of the TV is slow..)
I'll try a fork to fix that. I'll let u know
EDIT: There is already an option to set a delay between commands
"devices": [
{
"name": "Samsung TV",
"ip": "192.168.0.1",
"delay": 1000, <---------
...
}
]
But it still does not works correctly. Sometimes the TV "menu" is closed (idk why, commands seems to be good) after few seconds
from homebridge-samsung-tizen.
from homebridge-samsung-tizen.
It finally works for me ! Using a 1200ms delay.
The process is long, buts it's automatic :)
Here's my config:
{
"devices": [
{
"api_key": "",
"device_id": "",
"name": "Samsung TV",
"ip": "192.168.0.x",
"mac": "",
"delay": 1200,
"inputs": [],
"switches": [
{
"name": "Brightness 0%",
"command": "KEY_HOME,KEY_LEFT*7,KEY_ENTER,KEY_ENTER,KEY_DOWN*3,KEY_ENTER,KEY_ENTER,KEY_LEFT*7s,KEY_HOME*2"
},
{
"name": "Brightness 20%",
"command": "KEY_HOME,KEY_LEFT*7,KEY_ENTER,KEY_ENTER,KEY_DOWN*3,KEY_ENTER,KEY_ENTER,KEY_LEFT*7s,KEY_RIGHT*10,KEY_HOME*2"
},
{
"name": "Brightness 40%",
"command": "KEY_HOME,KEY_LEFT*7,KEY_ENTER,KEY_ENTER,KEY_DOWN*3,KEY_ENTER,KEY_ENTER,KEY_LEFT*7s,KEY_RIGHT*20,KEY_HOME*2"
},
{
"name": "Brightness 60%",
"command": "KEY_HOME,KEY_LEFT*7,KEY_ENTER,KEY_ENTER,KEY_DOWN*3,KEY_ENTER,KEY_ENTER,KEY_LEFT*7s,KEY_RIGHT*30,KEY_HOME*2"
},
{
"name": "Brightness 80%",
"command": "KEY_HOME,KEY_LEFT*7,KEY_ENTER,KEY_ENTER,KEY_DOWN*3,KEY_ENTER,KEY_ENTER,KEY_RIGHT*7s,KEY_LEFT*10,KEY_HOME*2"
},
{
"name": "Brightness 100%",
"command": "KEY_HOME,KEY_LEFT*7,KEY_ENTER,KEY_ENTER,KEY_DOWN*3,KEY_ENTER,KEY_ENTER,KEY_RIGHT*7s,KEY_HOME*2"
},
{
"name": "Enter",
"command": "KEY_ENTER"
}
]
}
],
"platform": "SamsungTizen"
}
from homebridge-samsung-tizen.
Related Issues (20)
- This plugin slows down Homebridge HOT 2
- Fubo AppID
- Can't obtain App IDs
- iOS 17: Integration of new Buttons of Remote HOT 1
- Labels not showing correctly in iOS HomeKit HOT 4
- New Tizen sources - USB-C & DisplayPort HOT 9
- How to change SmartTv App from a HA Service
- Exposing Motion Sensor in Samsung Frame TV 4K QLED LS03B Series HOT 2
- supportedPictureModes – only EyeComfort and Optimised HOT 2
- Input order since iOS 17 update HOT 5
- On/off state does not update when using TV remote HOT 2
- Apple TV Remote not working HOT 2
- Volume controls stop working on TV Remote HOT 2
- Send curl command for on/off ... possible ?
- Key for Multi View Button on Frame Remotes
- [Question] No sound from receiver if turn on TV from HomeKit HOT 2
- Automation Triggers fire erroneously. HOT 1
- Input selector in Home app always jumps back to the top of the list HOT 1
- New app codes- "App ID - WAS"
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 homebridge-samsung-tizen.