mirror of
https://github.com/tsightler/ring-mqtt.git
synced 2025-10-04 00:16:47 +08:00
Update entity categories
This commit is contained in:
@@ -56,6 +56,7 @@ export default class RingSocketDevice extends RingDevice {
|
|||||||
...this.device.data.hasOwnProperty('tamperStatus') ? {
|
...this.device.data.hasOwnProperty('tamperStatus') ? {
|
||||||
tamper: {
|
tamper: {
|
||||||
component: 'binary_sensor',
|
component: 'binary_sensor',
|
||||||
|
category: 'diagnostic',
|
||||||
device_class: 'tamper',
|
device_class: 'tamper',
|
||||||
parent_state_topic: 'info/state',
|
parent_state_topic: 'info/state',
|
||||||
value_template: '{% if value_json["tamperStatus"] is equalto "tamper" %}ON{% else %}OFF{% endif %}'
|
value_template: '{% if value_json["tamperStatus"] is equalto "tamper" %}ON{% else %}OFF{% endif %}'
|
||||||
|
@@ -34,7 +34,6 @@ export default class Chime extends RingPolledDevice {
|
|||||||
},
|
},
|
||||||
snooze: {
|
snooze: {
|
||||||
component: 'switch',
|
component: 'switch',
|
||||||
category: 'config',
|
|
||||||
icon: 'hass:bell-sleep',
|
icon: 'hass:bell-sleep',
|
||||||
attributes: true
|
attributes: true
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user