Skip to content

Commit

Permalink
Update converters.
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Jun 7, 2020
1 parent c14e18d commit 206a45d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
16 changes: 16 additions & 0 deletions lib/extension/homeassistant.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,20 @@ const cfg = {
icon: 'mdi:brightness-5',
},
},
'sensor_radioactive_events_per_minute': {
type: 'sensor',
object_id: 'radioactive_events_per_minute',
discovery_payload: {
value_template: '{{ value_json.radioactive_events_per_minute }}',
},
},
'sensor_radiation_dose_per_hour': {
type: 'sensor',
object_id: 'radiation_dose_per_hour',
discovery_payload: {
value_template: '{{ value_json.radiation_dose_per_hour }}',
},
},

// Light
'light_brightness_colorxy_white': {
Expand Down Expand Up @@ -1688,6 +1702,8 @@ const mapping = {
'9290022891': [cfg.light_brightness_colortemp_colorxy],
'160-01': [cfg.switch, cfg.sensor_power],
'ZS232000178': [cfg.sensor_action],
'mcdj3aq': [cfg.cover_position],
'DIYRuZ_Geiger': [cfg.sensor_radioactive_events_per_minute, cfg.sensor_radiation_dose_per_hour, cfg.sensor_action],
};

/**
Expand Down
6 changes: 3 additions & 3 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"winston": "*",
"winston-syslog": "*",
"zigbee-herdsman": "0.12.91",
"zigbee-herdsman-converters": "12.0.108"
"zigbee-herdsman-converters": "12.0.109"
},
"devDependencies": {
"eslint": "*",
Expand Down

0 comments on commit 206a45d

Please sign in to comment.