Remove unused ids and set default entity
This commit is contained in:
+2
-30
@@ -55,14 +55,12 @@ binary_sensor:
|
||||
|
||||
sensor:
|
||||
- platform: ratgdo
|
||||
id: garage_gate_openings
|
||||
type: openings
|
||||
entity_category: diagnostic
|
||||
name: "Openings"
|
||||
unit_of_measurement: "openings"
|
||||
icon: mdi:open-in-app
|
||||
- platform: ratgdo
|
||||
id: garage_gate_vehicle_distance_actual
|
||||
type: distance
|
||||
name: "Vehicle distance actual"
|
||||
unit_of_measurement: "mm"
|
||||
@@ -82,27 +80,15 @@ sensor:
|
||||
|
||||
lock:
|
||||
- platform: ratgdo
|
||||
id: garage_gate_lock_remotes
|
||||
name: "Lock remotes"
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
id: "garage_gate_status_door"
|
||||
internal: true
|
||||
pin:
|
||||
number: GPIO26
|
||||
mode:
|
||||
output: true
|
||||
name: "Status door"
|
||||
entity_category: diagnostic
|
||||
- platform: ratgdo
|
||||
id: garage_gate_led
|
||||
type: led
|
||||
pin: GPIO2
|
||||
name: "LED"
|
||||
entity_category: config
|
||||
- platform: ratgdo
|
||||
id: garage_gate_laser
|
||||
type: led
|
||||
pin: GPIO23
|
||||
name: "LASER"
|
||||
@@ -110,19 +96,16 @@ switch:
|
||||
|
||||
number:
|
||||
- platform: ratgdo
|
||||
id: garage_gate_opening_duration
|
||||
type: opening_duration
|
||||
entity_category: config
|
||||
name: "Opening duration"
|
||||
unit_of_measurement: "s"
|
||||
- platform: ratgdo
|
||||
id: garage_gate_closing_duration
|
||||
type: closing_duration
|
||||
entity_category: config
|
||||
name: "Closing duration"
|
||||
unit_of_measurement: "s"
|
||||
- platform: ratgdo
|
||||
id: garage_gate_client_id
|
||||
type: client_id
|
||||
entity_category: config
|
||||
name: "Client ID"
|
||||
@@ -130,22 +113,15 @@ number:
|
||||
|
||||
cover:
|
||||
- platform: ratgdo
|
||||
id: garage_gate_garage_door
|
||||
device_class: garage
|
||||
name: "Door"
|
||||
on_closed:
|
||||
- switch.turn_off: garage_gate_status_door
|
||||
on_opened:
|
||||
- switch.turn_on: garage_gate_status_door
|
||||
name: None
|
||||
|
||||
light:
|
||||
- platform: ratgdo
|
||||
id: garage_gate_light
|
||||
name: "Light"
|
||||
|
||||
button:
|
||||
- platform: template
|
||||
id: garage_gate_query_status
|
||||
entity_category: diagnostic
|
||||
name: "Query status"
|
||||
on_press:
|
||||
@@ -153,7 +129,6 @@ button:
|
||||
lambda: !lambda |-
|
||||
id(garage_gate).query_status();
|
||||
- platform: template
|
||||
id: garage_gate_query_openings
|
||||
name: "Query openings"
|
||||
entity_category: diagnostic
|
||||
on_press:
|
||||
@@ -161,7 +136,6 @@ button:
|
||||
lambda: !lambda |-
|
||||
id(garage_gate).query_openings();
|
||||
- platform: template
|
||||
id: garage_gate_sync
|
||||
name: "Sync"
|
||||
entity_category: diagnostic
|
||||
on_press:
|
||||
@@ -169,7 +143,6 @@ button:
|
||||
lambda: !lambda |-
|
||||
id(garage_gate).sync();
|
||||
- platform: template
|
||||
id: garage_gate_play_alert
|
||||
name: "Play Alert"
|
||||
on_press:
|
||||
then:
|
||||
@@ -181,5 +154,4 @@ output:
|
||||
id: garage_gate_ledc
|
||||
|
||||
rtttl:
|
||||
- id: garage_gate_rtttl
|
||||
output: garage_gate_ledc
|
||||
- output: garage_gate_ledc
|
||||
|
||||
Reference in New Issue
Block a user