From fb32a708c9a4f4ea421a80a1b547f6b3d224679b Mon Sep 17 00:00:00 2001 From: ccostan Date: Fri, 12 Jan 2018 13:01:51 -0500 Subject: [PATCH] This doesn't make any sense to me. At All. --- packages/logger.yaml | 4 ++-- packages/triggers/last_message.yaml | 2 +- packages/twitter.yaml | 4 ++++ script/speech_processing.yaml | 4 ++-- script/tweet.yaml | 27 +++++++++++++++------------ 5 files changed, 24 insertions(+), 17 deletions(-) diff --git a/packages/logger.yaml b/packages/logger.yaml index eb794125..22736759 100755 --- a/packages/logger.yaml +++ b/packages/logger.yaml @@ -7,7 +7,7 @@ homeassistant: customize_glob: "input_select.log_*": icon: mdi:bug - + hidden: False #------------------------------------------- @@ -42,5 +42,5 @@ automation: homeassistant.components: "{{ states.input_select.log_level.state }}" - service: script.tweet_engine - data: + data_template: tweet: "My logging level has just been set to {{ states.input_select.log_level.state }}" diff --git a/packages/triggers/last_message.yaml b/packages/triggers/last_message.yaml index fd96d7bc..69b62441 100755 --- a/packages/triggers/last_message.yaml +++ b/packages/triggers/last_message.yaml @@ -7,7 +7,7 @@ homeassistant: input_boolean.lastmsg: friendly_name: 'Repeat Message' icon: mdi:repeat-once - + hidden: False #------------------------------------------- input_boolean: diff --git a/packages/twitter.yaml b/packages/twitter.yaml index b955ae2e..f7181d91 100755 --- a/packages/twitter.yaml +++ b/packages/twitter.yaml @@ -23,6 +23,10 @@ notify: ### Building out some Historical stats for tweeting. ##################### sensor: + - platform: mqtt + state_topic: "ifttt/message" + name: "ifttt formatted message" + - platform: history_stats name: Doorbell Presses entity_id: binary_sensor.skybell_stone_door_button diff --git a/script/speech_processing.yaml b/script/speech_processing.yaml index ee27551a..d116e70f 100755 --- a/script/speech_processing.yaml +++ b/script/speech_processing.yaml @@ -2,7 +2,7 @@ ###Script to actually send notifications to the ChromeCast Audios during normal hours and only when we are home! Call like this: # action: # service: script.speech_engine - # message: + # speech_message: # # @CCOSTAN # Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig ###################################################################################################### @@ -44,7 +44,7 @@ speech_processing: - service: switch.turn_on entity_id: switch.living_room_amp - + - service: media_player.volume_set data_template: entity_id: > diff --git a/script/tweet.yaml b/script/tweet.yaml index 57f98808..18401f67 100755 --- a/script/tweet.yaml +++ b/script/tweet.yaml @@ -6,17 +6,20 @@ tweet_engine: sequence: - - service: notify.BearStoneHA + - service: mqtt.publish data_template: - message: >- - {{ tweet }} #IOT #SmartHome + topic: 'ifttt/message' + payload: "{{ tweet }}" + retain: true - - - - service: ifttt.trigger - data_template: - event: >- - facebook_tweet - value1: > - {% set facebook_tweet = tweet %} - {{ facebook_tweet }} #IOT #SmartHome + # - service: notify.BearStoneHA + # data_template: + # message: >- + # {{ tweet }} #IOT #SmartHome + # + # - service: ifttt.trigger + # data_template: + # event: >- + # facebook_tweet + # value1: > + # {{states.sensor.ifttt_formatted_message.state}} #IOT #SmartHome