Skip to content

Commit

Permalink
Tweaking display & adding distance #99
Browse files Browse the repository at this point in the history
  • Loading branch information
BeardedTinker committed Feb 28, 2023
1 parent 424fc43 commit 995cf75
Show file tree
Hide file tree
Showing 7 changed files with 112 additions and 520 deletions.
10 changes: 10 additions & 0 deletions entities/templates/distance_andrej.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#####
# Distance from mobile phone to zone
# https://www.home-assistant.io/docs/configuration/templating/#distance-examples
#####

- sensor:
- name: "Andrej distance"
unit_of_measurement: km
state_class: measurement
state: "{{ distance('device_tracker.ele_l29', 'zone.home') }}"
10 changes: 10 additions & 0 deletions entities/templates/distance_luka.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#####
# Distance from mobile phone to zone
# https://www.home-assistant.io/docs/configuration/templating/#distance-examples
#####

- sensor:
- name: "Luka distance"
unit_of_measurement: km
state_class: measurement
state: "{{ distance('device_tracker.iphone', 'zone.home') }}"
10 changes: 10 additions & 0 deletions entities/templates/distance_mirta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#####
# Distance from mobile phone to zone
# https://www.home-assistant.io/docs/configuration/templating/#distance-examples
#####

- sensor:
- name: "Mirta distance"
unit_of_measurement: km
state_class: measurement
state: "{{ distance('device_tracker.eml_l29', 'zone.home') }}"
10 changes: 10 additions & 0 deletions entities/templates/distance_zita.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#####
# Distance from mobile phone to zone
# https://www.home-assistant.io/docs/configuration/templating/#distance-examples
#####

- sensor:
- name: "Zita distance"
unit_of_measurement: km
state_class: measurement
state: "{{ distance('device_tracker.fig_lx1', 'zone.home') }}"
1 change: 1 addition & 0 deletions esphome/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ std::string playbackStatusToIcon(bool playing, bool paused) {
#define ICON_w_windy "\U000F059D"
#define ICON_w_windy_variant "\U000F059E"
#define ICON_w_exceptional "\U000F0F38"
#define ICON_storm "\U000F0593"

std::string conditionToIcon(std::string condition, bool daytime)
{
Expand Down
Loading

0 comments on commit 995cf75

Please sign in to comment.