API for Vallox ventilation units
# npm
npm install @danielbayerlein/vallox-api --save
# Yarn
yarn add @danielbayerlein/vallox-api
Returns the client instance.
import Vallox from '@danielbayerlein/vallox-api'
const client = new Vallox({ ip: '192.168.178.33', port: 80 })
Returns an object with the profile mapping.
client.PROFILES
Returns the current profile id.
await client.getProfile()
Returns the value of the metric key.
await client.fetchMetric('A_CYC_FAN_SPEED')
Returns an array with the values if the metric keys.
await client.fetchMetrics([
'A_CYC_TEMP_EXHAUST_AIR',
'A_CYC_TEMP_OUTDOOR_AIR'
])
Sets the profile.
// Permanently AWAY profile
await client.setProfile(client.PROFILES.AWAY)
// FIREPLACE mode for configured timeout
await client.setProfile(client.PROFILES.FIREPLACE)
// FIREPLACE mode for 30 min
await client.setProfile(client.PROFILES.FIREPLACE, 30)
Sets the value for the metric key.
await client.setValues({
'A_CYC_HOME_SPEED_SETTING': 60
})
- ValloPlus 350 MV
- Please add your tested unit
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Copyright (c) 2019-present Daniel Bayerlein. See LICENSE for details.