homebridge-cmd4: [Bug] linkedTypes not cached
I use the linkedTypes to combine two lights together into one device.
This works very good.
But when I restart homebridge the Light2/seconde device/linkedType device is no longer responding.
I need to clear the cache for the Device via homebridge settings first.
After that the Light2/seconde device/linkedType device works again.
You helped me a lot of times at this point and I really feel greatfull for that! I have no idea how big this issue is and I can easaly clear the cache after reboots. anyway Thank you verymuch for your work and this amzing plugin!
Config:
"platform": "Cmd4",
"name": "Cmd4",
"debug": false,
"accessories": [{
"type": "Lightbulb",
"displayName": "Light1",
"on": 0,
"stateChangeResponseTime": 1,
"brightness": 100,
"hue": 200,
"saturation": 100,
"state_cmd": "...",
"polling": [... ],
"linkedTypes": [{
"type": "Lightbulb",
"displayName": "Light2",
"on": 0,
"brightness": 0,
"stateChangeResponseTime": 1,
"state_cmd": "...",
"polling": [... ]
}]
}]
Environment:
- Node.js Version: v16.14.0
- NPM Version: v8.3.1
- Homebridge Version: v1.4.0
- homebridge-cmd4 Version: v6.1.2
- Operating System: macOS
- Process Supervisor: hb-service
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (10 by maintainers)
Commits related to this issue
- fix: Bug #130, linked accessories not accesible after restart — committed to ztalbot2000/homebridge-cmd4 by ztalbot2000 2 years ago
can you please try 6.3.0-beta.1
Hi Mitch,
I just merged the Unit tests that broke because of the messages changed from WoRm to WoRm2. I also added one more test that I noticed could be done.
Beta branch is now up to date with all my changes.
Ttyl, John
On Fri, Apr 15, 2022 at 8:22 PM John Talbot @.***> wrote:
Hi Mitch,
It’s okay on my Beta.
I just merged my branch to your beta branch. I had to use no-verify because when you made changes to server.js for worm2, you broke the unit tests. I’m assuming you did it from GitHub and not from within SourceTree or another git tool on Linux. Otherwise everything else passes.
I’ll fix what you broke tomorrow.
Ttyl, John
On Fri, Apr 15, 2022 at 3:18 PM Mitch Williams @.***> wrote: