Closed crbyxwpzfl closed 2 years ago
Hmm, I wonder how it's done. I will have a look.
Ttyl, John
On Mon, Jan 10, 2022 at 12:50 PM f, @.***> wrote:
Assigned #121 https://github.com/ztalbot2000/homebridge-cmd4/issues/121 to @ztalbot2000 https://github.com/ztalbot2000.
— Reply to this email directly, view it on GitHub https://github.com/ztalbot2000/homebridge-cmd4/issues/121#event-5867773424, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSBCXYESPPKW46LVZRWRA3UVML4VANCNFSM5LUILIGQ . You are receiving this because you were assigned.Message ID: @.***>
I thought this can be done already with cmd4 using "linkedTypes". I have done it and the example below is using the type "Switch" as parent but displayed as "Fan" in HomeApp with a type "Fan" as "linkedTypes". The config.json file for that is attached for your reference.
{
"type": "Switch",
"displayName": "Aircon Fan",
"on": "FALSE",
"name": "Aircon Fan",
"manufacturer": "Advantage Air Australia",
"model": "e-zone",
"serialNumber": "Daikin e-zone",
"queue": "A",
"polling": [
{
"characteristic": "on"
}
],
"state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
"state_cmd_suffix": "${IP}",
"linkedTypes": [
{
"type": "Fan",
"displayName": "Fan Speed",
"on": "TRUE",
"rotationSpeed": 100,
"name": "Fan Speed",
"manufacturer": "Advantage Air Australia",
"model": "e-zone",
"serialNumber": "Daikin e-zone",
"queue": "A",
"polling": [
{
"characteristic": "on"
},
{
"characteristic": "rotationSpeed"
}
],
"state_cmd": "'/usr/local/lib/node_modules/homebridge-cmd4-advantageair/AdvAir.sh'",
"state_cmd_suffix": "${IP} fanSpeed"
}
]
},
wow how did you figure this out. Amazing! thank you @uswong!
thank you @ztalbot2000, too!! You are always so quick with your response really appreciate it!
I like this feature of an other homebridge plugin. With IOS 13 it's now possible to have different tiles (accessorise) grouped into one tile. While long pressing on it it will reveal them. For example it's possible to have two switches grouped:
I have no idea how much effort it would be to implement this.
Just thought I post it here.