Upload files to "/"
This commit is contained in:
parent
e7e0f6f8a7
commit
9649f2ae68
59
globals.yaml
Normal file
59
globals.yaml
Normal file
|
|
@ -0,0 +1,59 @@
|
||||||
|
globals:
|
||||||
|
- id: last_update_ld2450
|
||||||
|
type: unsigned long
|
||||||
|
restore_value: false
|
||||||
|
initial_value: '0'
|
||||||
|
- id: init_zone_publish
|
||||||
|
type: bool
|
||||||
|
restore_value: no
|
||||||
|
initial_value: "false"
|
||||||
|
- id: last_illuminance
|
||||||
|
type: float
|
||||||
|
restore_value: false
|
||||||
|
initial_value: "-1"
|
||||||
|
- id: last_illuminance_timestamp
|
||||||
|
type: int
|
||||||
|
restore_value: false
|
||||||
|
initial_value: "-1"
|
||||||
|
|
||||||
|
# Filtrowane pozycje – Twoje nazwy
|
||||||
|
- id: p1_x_f
|
||||||
|
type: float
|
||||||
|
restore_value: false
|
||||||
|
initial_value: '0.0'
|
||||||
|
- id: p1_y_f
|
||||||
|
type: float
|
||||||
|
restore_value: false
|
||||||
|
initial_value: '0.0'
|
||||||
|
|
||||||
|
- id: p2_x_f
|
||||||
|
type: float
|
||||||
|
restore_value: false
|
||||||
|
initial_value: '0.0'
|
||||||
|
- id: p2_y_f
|
||||||
|
type: float
|
||||||
|
restore_value: false
|
||||||
|
initial_value: '0.0'
|
||||||
|
|
||||||
|
- id: p3_x_f
|
||||||
|
type: float
|
||||||
|
restore_value: false
|
||||||
|
initial_value: '0.0'
|
||||||
|
- id: p3_y_f
|
||||||
|
type: float
|
||||||
|
restore_value: false
|
||||||
|
initial_value: '0.0'
|
||||||
|
|
||||||
|
# Opcjonalnie: filtrowana prędkość (jeśli chcesz – możesz potem usunąć)
|
||||||
|
- id: p1_speed_f
|
||||||
|
type: float
|
||||||
|
restore_value: false
|
||||||
|
initial_value: '0.0'
|
||||||
|
- id: p2_speed_f
|
||||||
|
type: float
|
||||||
|
restore_value: false
|
||||||
|
initial_value: '0.0'
|
||||||
|
- id: p3_speed_f
|
||||||
|
type: float
|
||||||
|
restore_value: false
|
||||||
|
initial_value: '0.0'
|
||||||
1380
mmWaveLD2450_c6.yaml
Normal file
1380
mmWaveLD2450_c6.yaml
Normal file
File diff suppressed because it is too large
Load Diff
137
text_sensor.yaml
Normal file
137
text_sensor.yaml
Normal file
|
|
@ -0,0 +1,137 @@
|
||||||
|
text_sensor:
|
||||||
|
- platform: debug
|
||||||
|
reset_reason:
|
||||||
|
name: "ESP Reset Reason"
|
||||||
|
icon: mdi:anchor
|
||||||
|
entity_category: diagnostic
|
||||||
|
|
||||||
|
- platform: wifi_info
|
||||||
|
ip_address:
|
||||||
|
name: "ESP IP Address"
|
||||||
|
id: wifi_ip
|
||||||
|
icon: mdi:ip-network
|
||||||
|
entity_category: diagnostic
|
||||||
|
ssid:
|
||||||
|
name: "ESP WiFi SSID"
|
||||||
|
id: wifi_ssid
|
||||||
|
icon: mdi:wifi
|
||||||
|
entity_category: diagnostic
|
||||||
|
|
||||||
|
bssid:
|
||||||
|
name: "ESP AP BSSID (MAC)"
|
||||||
|
id: wifi_ap_bssid
|
||||||
|
entity_category: diagnostic
|
||||||
|
icon: mdi:access-point-network
|
||||||
|
|
||||||
|
mac_address:
|
||||||
|
name: "ESP MAC"
|
||||||
|
id: wifi_mac
|
||||||
|
icon: mdi:network
|
||||||
|
entity_category: diagnostic
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
name: Uptime
|
||||||
|
entity_category: diagnostic
|
||||||
|
update_interval: 5s
|
||||||
|
lambda: |-
|
||||||
|
int s = (int) id(sys_uptime).state;
|
||||||
|
int days = s / 86400;
|
||||||
|
s %= 86400;
|
||||||
|
int hours = s / 3600;
|
||||||
|
s %= 3600;
|
||||||
|
int minutes = s / 60;
|
||||||
|
s %= 60;
|
||||||
|
|
||||||
|
char buffer[32];
|
||||||
|
sprintf(buffer, "%dd %dh %dm %ds", days, hours, minutes, s);
|
||||||
|
return std::string(buffer);
|
||||||
|
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
name: "Zone1 Info"
|
||||||
|
id: tips_zone1_conf
|
||||||
|
icon: mdi:information-outline
|
||||||
|
entity_category: config
|
||||||
|
lambda: |-
|
||||||
|
return {"Configure below" };
|
||||||
|
update_interval: 1000s
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
name: "Zone2 Info"
|
||||||
|
id: tips_zone2_conf
|
||||||
|
icon: mdi:information-outline
|
||||||
|
entity_category: config
|
||||||
|
lambda: |-
|
||||||
|
return {"Configure below" };
|
||||||
|
update_interval: 1000s
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
name: "Zone3 Info"
|
||||||
|
id: tips_zone3_conf
|
||||||
|
icon: mdi:information-outline
|
||||||
|
entity_category: config
|
||||||
|
lambda: |-
|
||||||
|
return {"Configure below" };
|
||||||
|
update_interval: 1000s
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
name: "Zout1 Info"
|
||||||
|
id: tips_zone_ex1_conf
|
||||||
|
icon: mdi:information-outline
|
||||||
|
entity_category: config
|
||||||
|
lambda: |-
|
||||||
|
return {"Zone Exclusion 1" };
|
||||||
|
update_interval: 1000s
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
name: "Any-Presence Info"
|
||||||
|
id: tips_any_presence_conf
|
||||||
|
icon: mdi:information-outline
|
||||||
|
entity_category: config
|
||||||
|
lambda: |-
|
||||||
|
return {"Any Presence Config" };
|
||||||
|
update_interval: 1000s
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
name: "Target1 Direction"
|
||||||
|
id: target1_direction
|
||||||
|
icon: mdi:directions
|
||||||
|
- platform: template
|
||||||
|
name: "Target2 Direction"
|
||||||
|
id: target2_direction
|
||||||
|
icon: mdi:directions
|
||||||
|
- platform: template
|
||||||
|
name: "Target3 Direction"
|
||||||
|
id: target3_direction
|
||||||
|
icon: mdi:directions
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
name: "Target1 Position"
|
||||||
|
id: target1_position
|
||||||
|
icon: mdi:directions
|
||||||
|
- platform: template
|
||||||
|
name: "Target2 Position"
|
||||||
|
id: target2_position
|
||||||
|
icon: mdi:directions
|
||||||
|
- platform: template
|
||||||
|
name: "Target3 Position"
|
||||||
|
id: target3_position
|
||||||
|
icon: mdi:directions
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
name: Uptime
|
||||||
|
entity_category: diagnostic
|
||||||
|
update_interval: 5s
|
||||||
|
lambda: |-
|
||||||
|
int s = (int) id(sys_uptime).state;
|
||||||
|
int days = s / 86400;
|
||||||
|
s %= 86400;
|
||||||
|
int hours = s / 3600;
|
||||||
|
s %= 3600;
|
||||||
|
int minutes = s / 60;
|
||||||
|
s %= 60;
|
||||||
|
|
||||||
|
char buffer[32];
|
||||||
|
sprintf(buffer, "%dd %dh %dm %ds", days, hours, minutes, s);
|
||||||
|
return std::string(buffer);
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user