Skip to content

Commit

Permalink
rm hass
Browse files Browse the repository at this point in the history
  • Loading branch information
nurikk committed Jan 12, 2021
1 parent 5f46863 commit f196200
Showing 1 changed file with 1 addition and 39 deletions.
40 changes: 1 addition & 39 deletions converters/DIYRuZ_AirSense.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,44 +15,7 @@ const bind = async (endpoint, target, clusters) => {

const ACCESS_STATE = 0b001, ACCESS_WRITE = 0b010, ACCESS_READ = 0b100;

const hass = {
co2: {
type: 'sensor',
object_id: 'co2',
discovery_payload: {
unit_of_measurement: 'ppm',
icon: 'mdi:molecule-co2',
value_template: '{{ value_json.co2 }}',
},
},
temperature: {
type: 'sensor',
object_id: 'temperature',
discovery_payload: {
unit_of_measurement: '°C',
device_class: 'temperature',
value_template: '{{ value_json.temperature }}',
},
},
humidity: {
type: 'sensor',
object_id: 'humidity',
discovery_payload: {
unit_of_measurement: '%',
device_class: 'humidity',
value_template: '{{ value_json.humidity }}',
},
},
presure: {
type: 'sensor',
object_id: 'pressure',
discovery_payload: {
unit_of_measurement: 'hPa',
device_class: 'pressure',
value_template: '{{ value_json.pressure }}',
},
}
};

const deviceOptions = [{
cluster: 'msCO2',
attrId: 0x0203,
Expand Down Expand Up @@ -171,7 +134,6 @@ const device = {
vendor: 'DIYRuZ',
description: '[Air quality sensor, external converter](http://modkam.ru/?p=xxxx)',
supports: '',
homeassistant: [hass.temperature, hass.presure, hass.humidity, hass.co2],
fromZigbee: [
fromZigbeeConverters.temperature,
fromZigbeeConverters.humidity,
Expand Down

0 comments on commit f196200

Please sign in to comment.