Skip to content

Commit

Permalink
Merge pull request #37 from caiosweet/beta
Browse files Browse the repository at this point in the history
Fixed regex and added hub_customize.yaml file
  • Loading branch information
caiosweet authored Jun 22, 2023
2 parents 0f2723b + 5f2250f commit 1e60fee
Show file tree
Hide file tree
Showing 6 changed files with 431 additions and 318 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ action:
entities: >-
{# Backword compatible .endswith('hub') #}
{{states.automation
| select('match','.*[_\s]hub|.*notifier[_\s]|centro.notifiche[_\s]', ignorecase=True)
| select('match','.*[_\s]hub|.*notifier[_\s]|.*centro.notifiche[_\s]', ignorecase=True)
| map(attribute='entity_id') | list }}
- alias: "Creation of the notifier_location_tracker Group from Person"
Expand Down
7 changes: 6 additions & 1 deletion extra/utility.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ command_line:
value_template: '{{ value | default("Error", true) }}'
scan_interval: 525600 # 1 year

# If you only want seconds as sensor state, then use this:
# command: >
# grep -m1 'Home Assistant initialized' home-assistant.log | awk '{ print $10 }'

#------------------------------------------------------------------------------#
# Home Assistant Setup of domain sensor
#------------------------------------------------------------------------------#
Expand All @@ -26,7 +30,8 @@ command_line:
# logger:
# default: warn # or whatever you want (info, error...)
# logs:
# homeassistant.bootstrap: info
# homeassistant.bootstrap: info # for ha start sensor
# homeassistant.setup: info # for Verifica tempi setup sensor

## If you need to use these sensors outside my project,
## then remember to insert this service when Home Assistant restarts.
Expand Down
142 changes: 71 additions & 71 deletions packages/centro_notifiche/hub_alexa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,77 +9,77 @@ homeassistant:
######################################-######################################
## CUSTOMIZE
######################################-######################################
## BINARY SENSOR
binary_sensor.notifier_alexa_speak:
<<: *extra_attributes
friendly_name: "Alexa parla"
icon: mdi:speaker-message
## BUTTON
button.notifier_ssml_reset:
<<: *extra_attributes
friendly_name: "Ripristina SSML"
# icon: mdi:restore
## GROUP
group.notifier_player_alexa:
<<: *extra_attributes
friendly_name: "Gruppo Alexa"
icon: mdi:speaker-multiple
## INPUT
input_boolean.notifier_alexa_switch:
<<: *extra_attributes
friendly_name: "Alexa Off/On"
icon: mdi:dots-circle
# icon: mdi:alpha-a-circle
input_boolean.notifier_alexa_smart_volume:
<<: *extra_attributes
friendly_name: "Imposta volume smart"
icon: mdi:volume-equal
input_boolean.notifier_alexa_ssml:
<<: *extra_attributes
friendly_name: "SSML Off/On"
icon: mdi:waveform
input_number.notifier_alexa_prosody_rate:
<<: *extra_attributes
friendly_name: "Rate"
icon: mdi:alpha-r
input_number.notifier_alexa_prosody_pitch:
<<: *extra_attributes
friendly_name: "Pitch"
icon: mdi:alpha-p
input_number.notifier_alexa_prosody_volume:
<<: *extra_attributes
friendly_name: "Volume"
icon: mdi:alpha-v
unit_of_measurement: "dB"
input_select.notifier_alexa_voice:
<<: *extra_attributes
friendly_name: "Amazon Polly voice"
icon: mdi:account-tie-voice-outline
input_select.notifier_alexa_language:
<<: *extra_attributes
friendly_name: Amazon Polly language
icon: mdi:flag-variant
input_select.notifier_alexa_method:
<<: *extra_attributes
friendly_name: "Metodo Predefinito Alexa"
icon: mdi:monitor-speaker
input_select.notifier_alexa_type:
<<: *extra_attributes
friendly_name: "Tipo Predefinito Alexa"
icon: mdi:bugle
## SELECT
select.notifier_player_alexa:
<<: *extra_attributes
friendly_name: "Sorgente Alexa"
icon: mdi:speaker-wireless
## SENSOR
sensor.last_alexa:
<<: *extra_attributes
friendly_name: "Last Alexa"
icon: mdi:play-network
sensor.notifier_player_alexa:
<<: *extra_attributes
friendly_name: "Player Alexa Predefinito"
# ## BINARY SENSOR
# binary_sensor.notifier_alexa_speak:
# <<: *extra_attributes
# friendly_name: "Alexa parla"
# icon: mdi:speaker-message
# ## BUTTON
# button.notifier_ssml_reset:
# <<: *extra_attributes
# friendly_name: "Ripristina SSML"
# # icon: mdi:restore
# ## GROUP
# group.notifier_player_alexa:
# <<: *extra_attributes
# friendly_name: "Gruppo Alexa"
# icon: mdi:speaker-multiple
# ## INPUT
# input_boolean.notifier_alexa_switch:
# <<: *extra_attributes
# friendly_name: "Alexa Off/On"
# icon: mdi:dots-circle
# # icon: mdi:alpha-a-circle
# input_boolean.notifier_alexa_smart_volume:
# <<: *extra_attributes
# friendly_name: "Imposta volume smart"
# icon: mdi:volume-equal
# input_boolean.notifier_alexa_ssml:
# <<: *extra_attributes
# friendly_name: "SSML Off/On"
# icon: mdi:waveform
# input_number.notifier_alexa_prosody_rate:
# <<: *extra_attributes
# friendly_name: "Rate"
# icon: mdi:alpha-r
# input_number.notifier_alexa_prosody_pitch:
# <<: *extra_attributes
# friendly_name: "Pitch"
# icon: mdi:alpha-p
# input_number.notifier_alexa_prosody_volume:
# <<: *extra_attributes
# friendly_name: "Volume"
# icon: mdi:alpha-v
# unit_of_measurement: "dB"
# input_select.notifier_alexa_voice:
# <<: *extra_attributes
# friendly_name: "Amazon Polly voice"
# icon: mdi:account-tie-voice-outline
# input_select.notifier_alexa_language:
# <<: *extra_attributes
# friendly_name: Amazon Polly language
# icon: mdi:flag-variant
# input_select.notifier_alexa_method:
# <<: *extra_attributes
# friendly_name: "Metodo Predefinito Alexa"
# icon: mdi:monitor-speaker
# input_select.notifier_alexa_type:
# <<: *extra_attributes
# friendly_name: "Tipo Predefinito Alexa"
# icon: mdi:bugle
# ## SELECT
# select.notifier_player_alexa:
# <<: *extra_attributes
# friendly_name: "Sorgente Alexa"
# icon: mdi:speaker-wireless
# ## SENSOR
# sensor.last_alexa:
# <<: *extra_attributes
# friendly_name: "Last Alexa"
# icon: mdi:play-network
# sensor.notifier_player_alexa:
# <<: *extra_attributes
# friendly_name: "Player Alexa Predefinito"

#######################################-#######################################
## INPUT
Expand Down
Loading

0 comments on commit 1e60fee

Please sign in to comment.