Comments (5)
You can now reproduce like this:
- check out the current
master
of https://github.com/zwave-js/node-zwave-js - run
yarn && yarn build
to get everything up to date - save the following file in the repository as
server_config_thermostat_sp.js
- run
yarn mock-server -c server_config_thermostat_sp.js
- execute
zwave-js-server
withtcp://localhost:5555
as the path - hook up Home Assistant to the external
zwave-js-server
// @ts-check
const {
CommandClasses,
} = require("@zwave-js/core");
const {
ccCaps,
} = require("@zwave-js/testing");
const {
ThermostatMode,
ThermostatSetpointType,
} = require("zwave-js");
/** @type {import("zwave-js/Testing").MockServerOptions["config"]} */
module.exports.default = {
nodes: [
{
id: 2,
capabilities: {
basicDeviceClass: 4, // Routing Slave
genericDeviceClass: 8, // Thermostat
specificDeviceClass: 6, // General Thermostat V2
commandClasses: [
{
ccId: CommandClasses.Version,
version: 3,
},
{
ccId: CommandClasses["Manufacturer Specific"],
version: 1,
},
ccCaps({
ccId: CommandClasses["Thermostat Mode"],
isSupported: true,
isControlled: false,
secure: true,
version: 3,
supportedModes: [
ThermostatMode.Off,
ThermostatMode.Heat,
ThermostatMode["Auto"],
ThermostatMode["Resume (on)"],
ThermostatMode["Auto changeover"],
],
}),
ccCaps({
ccId: CommandClasses["Thermostat Setpoint"],
isSupported: true,
isControlled: false,
secure: true,
version: 3,
setpoints: {
[ThermostatSetpointType.Cooling]: {
minValue: 10,
maxValue: 36,
scale: "°C",
},
[ThermostatSetpointType["Dry Air"]]: {
minValue: -9.87,
maxValue: 56.78,
scale: "°C",
},
[ThermostatSetpointType["Full Power"]]: {
minValue: 20,
maxValue: 32.767,
scale: "°C",
},
},
}),
CommandClasses["Z-Wave Plus Info"],
],
},
},
],
};
from certification-backlog.
Reproduce as soon as we have the mock controller, it seems that we can't map a few properties for this test device.
from certification-backlog.
If the device has heating mode but not heating setpoint, it means the device setpoint for heating can not be controlled.
We should just hide the temperature control in that case.
from certification-backlog.
We can end up in the situation where a device has some setpoint that needs to be set but not (Z-Wave) mode exists for that. Worst case scenario we just make up a new mode to satisfy HA user interface but we don't set it in Z-Wave.
from certification-backlog.
Update: The test no longer throws errors in the UI. I still can't change setpoints though.
from certification-backlog.
Related Issues (20)
- PIN dialog can be closed accidentally, preventing inclusion
- Add/Edit SmartStart provisioning list HOT 2
- Fix service call for setting a config value HOT 9
- Z-Wave JS: Controller hard reset needs to be exposed HOT 1
- No support for Entry Control CC (such as an alarm keypad) HOT 1
- Add support for Thermostat Setback CC
- Z-Wave JS: Certification requirements for Sound Switch CC not fulfilled HOT 1
- Z-Wave JS: Certification requirements for Meter CC not fulfilled HOT 9
- Functionality to stop a color/dim transition HOT 1
- Add support for a non-dimmable color light HOT 2
- Visualize Central Scenes HOT 2
- Implement missing functionality for Door Locks HOT 7
- Color Switch CC: Improve inspecting the current state
- Improve handling of Door/Window state HOT 3
- Z-Wave JS: Notification variables are disabled by default, certification expects received notifications to be shown HOT 5
- User Code CC support HOT 3
- Multilevel Sensor CC: Wrong unit shown when a report with an unknown scale is used HOT 7
- Add button entity to reset Meter CC
- Treat Basic CC `currentValue` without `targetValue` as a numeric (?) sensor instead of a light HOT 6
- Fibaro FGFS101 Creates Basic Switch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from certification-backlog.