Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support FLP55 thermostats #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ export class SinopePlatform implements DynamicPlatformPlugin {
// filter these out.
// TODO(palourde): There must be a more reliable way of doing this than
// looking at the parentDevice$id field
const thermostats = devices.filter(device => device.sku.substring(0, 2) === 'TH');
const thermostats = devices.filter(device => {
// FLP55 are Flextherm thermostats, which are rebranded TH1300WF
return device.sku.substring(0, 2) === 'TH' || device.sku === 'FLP55';
});
const dimmers = devices.filter(device => device.sku.substring(0, 2) === 'DM');
const outlets = devices.filter(device => device.sku.substring(0, 2) === 'SP');
const switchesregex = new RegExp('^SW|^RM', 'g');
Expand Down