#Homebridge-samsung-cast-tv
Samsung TV plugin for Homebridge
This plugin allows you to control your Samsung TV (models until 2014) andd Chromecast with HomeKit and Siri.The Samsung TV will not power on over network, so the Chromecast is used to force the TV on!
npm install -g homebridge
npm install -g homebridge-samsungtv-control
config-sample.json
.Field | Description |
---|---|
accessory | Must always be "SamsungTV". (required) |
name | The name you want to use to control the TV. |
ip_address | The internal ip address of your samsung TV. |
send_delay | When switching to another channel the individual keys will be send with a short delay (in ms) between them. (default 400) |
The first numeric characteristic represents the volume. When changing the volume characteristic the number represents the count of times the volume up or down key will be triggered. In other words to increase the volume by 3 units, the characteristic should be set to 3, to decrease the volume by 2 units e.g. the value would be -2. By setting volume to 0 the mute key will be triggered.
The next characteristic represents the channel. To set a channel just set up a scene with the numeric value of the channel.
The last characteristic allows sending any key from this list without the KEY_
at the beginning. To send the pre-channel key e.g. set up a scene where this characteristic will be set to PRECH
.
The volume, channel and key characteristics send single keys with a short delay between them to accomplish their task. Therefore to set these characteristics values you should set up a scene with the desired value in the corresponding characteristics so that not every single change will be send before you've finished typing.
Since some Samsung TV's will disconnect from the network when turned off it is not possible to turn them back on again over network.Furthermore it is not possible to observe current values such as the volume or the channel. Therefore only channel changes that where made through this plugin will be tracked (channel changes with the regular remote for example can not be tracked).
By now, only Samsung TV's until 2014 are supported by this plugin because Samsung dropped the old remote control protocol from their newer tv series. Samsung unfortunately has no documentation on how to pair with the newer tv's and remote control them afterwards. The current state of reverse engineering the newer api can be seen here (contribution is welcome).
NOTE: This plugin works only with Samsung TV's that have Tizen Operating System. The plugin has a Wiki section! Please read it! Before opening a new Issue please read the Wiki section and search the c
homebridge-samsung-tizen-applications I've found that there is no list of apps for the homebridge samsung-tizen plugin, so I've created a small database of apps that people have been using recently on
除非通过无界通配符对其进行参数化,否则不允许转换为参数化类型。 Box<Integer> integerBox = new Box<Integer>(); Box<Number> numberBox = new Box<Number>(); //Compiler Error: Cannot cast from Box<Number> to Box<Integer> integerBox = (Bo
RxJava的cast()函数是本章中最后一个操作符。它是map()操作符的特殊版本。它将源Observable中的每一项数据都转换为新的类型,把它变成了不同的Class。
基于主题的高性能、可靠无代理 UDP 消息传递(“事件总线”)。可承受每秒高达 700 万个 70 字节的消息。 实现 NAK 协议所需的缓冲区不受影响,因此对 GC 的影响不大。如果配置得当,能保证可靠、有边界的低延迟。 要求 JDK 1.7 或更高版本 示例代码 基于快速序列化的对象组播(=广播)发布者: public static void main(String arg[]) {
Cast是一个库,以一致和简单的方式在不同的Go类型之间转换。 Cast提供了简单的函数,可以轻松地将数字转换为字符串,将接口转换为bool类型等等。当一个明显的转换是可能的时,Cast会智能地执行这一操作。它不会试图猜测你的意思,例如,你只能将一个字符串转换为int的字符串表示形式,例如“8”。Cast是为Hugo开发的,Hugo是一个使用YAML、TOML或JSON作为元数据的网站引擎。 为什