Closed luvmex closed 5 years ago
Thanks for support TV accessory.
And I'm testing my the accessory from Switch type to TV type. The switch will have three element:
Here is the config.json
{ "platform": "BroadlinkRM", "name": "Broadlink RM", "hideScanFrequencyButton": true, "hideLearnButton": false, "hideWelcomeMessage": true, "homebridgeDirectory": "/var/homebridge/", "accessories": [ { "name":"TV", "type":"tv", "pingIPAddress":"10.0.1.187", "pingFrequency": 120, "pingIPAdressStateOnly": true, "data": { "off": "0000000000", "on": "000000000", }, { "name": "Sony", "type": "switch", "pingIPAddress":"10.0.1.187", "pingFrequency": 150, "pingIPAdressStateOnly": true, "data": { "on": "1111111111", "off": 00000000" } } ] }
In my log, the switch and tv type are both setups but there is some problem with TV type:
4月 14 03:43:47 Homebridge homebridge[8412]: [2019-4-14 03:43:47] [Broadlink RM] Sony getSwitchState: true 4月 14 03:44:11 Homebridge homebridge[8412]: [2019-4-14 03:44:11] [Broadlink RM] Sony setSwitchState: true 4月 14 03:44:11 Homebridge homebridge[8412]: [2019-4-14 03:44:11] [Broadlink RM] Sony setSwitchState: already true (no data sent - B) 4月 14 03:44:21 Homebridge homebridge[8412]: [2019-4-14 03:44:21] [Broadlink RM] Sony getSwitchState: true 4月 14 03:44:21 Homebridge homebridge[8412]: [2019-4-14 03:44:21] [Broadlink RM] TV getSwitchState: 0 4月 14 03:44:41 Homebridge homebridge[8412]: [2019-4-14 03:44:41] [Broadlink RM] TV setSwitchState: 1 4月 14 03:44:41 Homebridge homebridge[8412]: [2019-4-14 03:44:41] [Broadlink RM] TV sendHex (10.0.1.23; 34:ea:34:e7:f0:59) 12512312e12312412414
The log come up with different State, same TV device and same IP, but when the TV type ping the IP, it will auto resent the data.
I didn't know is the PingIPAdressStateOnly not working or there is another issue.
Thanks
pingIPAdressStateOnly pingIPAddressStateOnly Did you see difference ?
Oh god, how did I get this idiot typo... Thanks!!
Thanks for support TV accessory.
And I'm testing my the accessory from Switch type to TV type. The switch will have three element:
Here is the config.json
In my log, the switch and tv type are both setups but there is some problem with TV type:
The log come up with different State, same TV device and same IP, but when the TV type ping the IP, it will auto resent the data.
I didn't know is the PingIPAdressStateOnly not working or there is another issue.
Thanks