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