2018-01-02 00:00:45 +00:00
######################################################################################################
2018-03-16 20:24:34 +00:00
## Script to send notifications to Twitter as @BearStoneHA.
2018-01-12 16:13:55 +00:00
## Publish on Facebook as well - https://www.facebook.com/BearStoneHA/
2018-03-31 00:53:42 +00:00
## If you do end up using this package, please consider using one or two of the canned tweets that calls back to my main repo
2018-05-18 17:43:03 +00:00
## so others can bring thier homes online as well. I have an active search for #Randomstats that helps me find new HA homes using my package online.
2018-01-02 00:00:45 +00:00
## Enhancements by @dale3h
######################################################################################################
2018-03-16 19:23:09 +00:00
tweet_engine_setup :
sequence :
2018-03-16 19:53:25 +00:00
- service : script.tweet_engine_image
2018-03-16 19:23:09 +00:00
data_template :
tweet : >-
2018-03-16 20:24:34 +00:00
{%- macro tweet(topic) -%}
{% set tweets = {
2018-05-15 17:35:34 +00:00
"promo": [
"Be Sure to follow all of my Twitter Accounts! @CCostan @BearStoneHA" ,
2019-04-08 23:01:50 +00:00
"Your house can be a #smarthome too. All you need is #home_assistant, some time and some config files. I suggest starting with our GitHub repo (https://github.com/CCOSTAN/Home-AssistantConfig#logo)" ,
2018-05-15 17:35:34 +00:00
"Be sure to like me on Facebook and join our HA group! (https://www.facebook.com/groups/HomeAssistant/) (https://www.facebook.com/VMwareInfo/) (https://www.facebook.com/BearStoneHA/)" ,
2018-10-01 20:19:14 +00:00
"You can see how ALL of this is done by browsing my GitHub Repository (https://github.com/CCOSTAN/Home-AssistantConfig#logo)" ,
2019-07-17 00:10:43 +00:00
"If you are not subscribed to our YouTube channel, you are missing out on the goodies! (https://youtube.com/vCloudInfo)" ,
2019-06-30 19:23:01 +00:00
"Join our GitHub repo (https://github.com/CCOSTAN/Home-AssistantConfig#logo) with {{ states.sensor.github_stats.attributes.stargazers_count}} other users. Browse the {{ states.sensor.github_stats.attributes.open_issues }} #Todo items." ,
"Check out my Cameo on @feinbergpaul inpiring video. (https://www.youtube.com/watch?v=5rsdwJZ0SLY&feature=youtu.be&t=85) #GoCreate #nosmallcreator " ,
2019-08-02 18:00:49 +00:00
"Quick YouTube cameo on #HomeKit #Geeks channel. Check it out! (https://youtu.be/3tutxHO0J78?t=872) "
2018-05-15 17:35:34 +00:00
] ,
2018-03-16 20:24:34 +00:00
"solar": [
2018-04-03 16:12:59 +00:00
"I am keeping track of the current #Tesla stock price. It is ${{ states('sensor.tesla')|round }}. #Solar" ,
2018-04-15 15:13:49 +00:00
"The #ChevyBolt was charged for about {{ states.sensor.bolt_charging_time.attributes.value|replace('m', '') }} minutes in the last 7 days." ,
2018-05-18 17:43:03 +00:00
"The Official Diecast P85 Model S Red (https://amzn.to/2Hkkl0S) link - Out of stock like the originals. :)" ,
"Solar power from #Tesla is the life blood of this whole operation. (https://www.vcloudinfo.com/2018/01/going-green-to-save-some-green-in-2018.html)"
2018-03-16 20:24:34 +00:00
] ,
2018-05-13 13:54:02 +00:00
"throwback": [
"One of the most popular #SmartHome Projects I have done: (https://www.vcloudinfo.com/2017/07/visualizing-smart-home-using-home.html)" ,
"This project was one of the most popular: (https://www.vcloudinfo.com/2017/11/building-digital-cuckoo-clock-with-home.html)" ,
"Some of the Best Home Assistant resources around! (https://www.vcloudinfo.com/2018/04/some-of-my-favorite-home-assistant.html)" ,
"My Journey to Docker #ThrowBack - (https://www.vcloudinfo.com/2018/02/journey-to-docker.html)" ,
"My Popular DIY Motion Sensor #ThrowBack - (https://www.vcloudinfo.com/2017/11/yet-another-inexpensive-motion-sensor.html)" ,
2019-06-02 15:32:08 +00:00
"Setting up IP Cameras to display on the Roku FTW! - (https://www.vcloudinfo.com/2019/03/how-to-setup-ip-cameras-on-your-roku-tv.html)"
2018-05-13 13:54:02 +00:00
"Build your own DIY Outdoor Smart Home LED strips - (https://www.vcloudinfo.com/2017/08/diy-outdoor-smart-home-led-strips.html)" ,
2018-07-25 00:34:10 +00:00
"My Full Smart Home diagram and #IOT icon set that you can download to build your own! - (https://www.vcloudinfo.com/2018/07/the-bear-stone-home-assistant-icon.html),"
2018-05-13 13:54:02 +00:00
"Breakdown of the entire smart home - (https://www.vcloudinfo.com/2017/07/my-smart-home-look-at-parts-that-make.html)" ,
2018-05-15 23:19:49 +00:00
"Build your own Home Alarm System - (https://www.vcloudinfo.com/2017/06/building-my-home-alarm-system-hardware.html)" ,
2019-04-16 15:25:30 +00:00
"If you are not subscribed to my Smart Home YouTube channel, come join us now! (https://youtube.com/vCloudInfo)" ,
2018-06-19 15:21:32 +00:00
"Adding a Mixer and the AMP to this Text to Speech solution changed the Smart Home! (https://www.vcloudinfo.com/2017/07/giving-voice-to-smart-home.html)" ,
2018-06-14 19:33:39 +00:00
"Some of my favorite #Docker Containers that I am using - (https://www.vcloudinfo.com/2018/06/rolling-out-some-new-docker-containers.html)" ,
2019-07-17 00:10:43 +00:00
"10 year safety check. If you have not done it yet, you need to! (https://www.vcloudinfo.com/2017/06/psa-check-out-your-smoke-detectors-once.html)" ,
2019-07-13 18:44:01 +00:00
"How to use template conditions in Home Assistant. (https://www.vcloudinfo.com/2019/06/how-to-use-template-conditions-in-home-assistant.html)"
2019-07-16 00:24:51 +00:00
2018-05-13 13:54:02 +00:00
] ,
2018-03-16 20:24:34 +00:00
"robot": [
"Beep. Bop. Beep. Boop. I am a #roBOT run by @CCostan" ,
"I have spoken for about {{ states.sensor.speech_time.attributes.value|replace('m', '') }} minutes in the last 24 hours." ,
"When you add it all up, I have spoken for about {{ states.sensor.speech_time.attributes.value|replace('m', '') }} minutes in the last 24 hours!" ,
2018-12-23 20:44:46 +00:00
"The #Docker Host has been running for {{ states('sensor.last_boot_templated') }} (http://www.vmwareinfo.com/2018/02/journey-to-docker.html)" ,
2019-02-23 19:27:23 +00:00
"The #Docker Host for Home Assistant is using {{ states('sensor.disk_use_percent') }}% of the hard drive currently. (http://www.vmwareinfo.com/2018/02/journey-to-docker.html)" ,
2018-03-18 01:14:50 +00:00
"I am running Home Assistant version {{ states('sensor.ha_installed_version') }} (https://github.com/CCOSTAN/Home-AssistantConfig#logo)" ,
"Home Assistant has been running for {{ states('sensor.ha_uptime') }}. (https://github.com/CCOSTAN/Home-AssistantConfig#logo)" ,
2018-11-26 18:47:27 +00:00
"The Github code (https://github.com/CCOSTAN/Home-AssistantConfig#logo) has {{ states.sensor.github_stats.attributes.stargazers_count}} stars and counting. Currently with {{ states.sensor.github_stats.attributes.open_issues }} open #Todo items."
2018-03-25 00:06:16 +00:00
"My Home Assistant has been tested by Travis-CI and {{states('sensor.ccostanhomeassistantconfig_state')}}. (https://github.com/CCOSTAN/Home-AssistantConfig#logo)" ,
"{{((states.sensor.sensor_count.state | int) + (states.sensor.binary_sensor_count.state | int))}} sensors feed my Smart Home #data. (https://github.com/CCOSTAN/Home-AssistantConfig#logo)" ,
2018-03-30 14:52:43 +00:00
"{{states.sensor.automation_count.state}} automations and {{states.sensor.script_count.state}} scripts make my home smart (https://github.com/CCOSTAN/Home-AssistantConfig#logo)" ,
2018-04-08 16:03:42 +00:00
"Nevermind me. I am just keeping track of {{states.sensor.lights_count.state}} lights and {{states.sensor.tracker_count.state}} devices in the house. (https://github.com/CCOSTAN/Home-AssistantConfig#logo)" ,
2018-06-14 19:33:39 +00:00
"There are {{states.sensor.protect_count.state}} Nest Protect smoke Detectors ONLINE and protecting the house! (https://github.com/CCOSTAN/Home-AssistantConfig#nest) " ,
"We have {{states.sensor.camera_count.state}} cameras ONLINE and recording the house 24/7! (https://github.com/CCOSTAN/Home-AssistantConfig#cameras)"
2018-03-16 20:24:34 +00:00
] ,
"door": [
"The number of Doorbell presses yesterday was {{ states('sensor.doorbell_presses') }}" ,
"{{ states('sensor.doorbell_presses') }} people came to the door today and pressed the bell." ,
"{{ states('sensor.doorbell_presses') }} doorbell presses occurred in the last 24 hours."
] ,
"weather": [
2018-10-01 20:19:14 +00:00
"The #Landscaping lights where on for about {{ states.sensor.landscaping_light_time.attributes.value }} yesterday. (https://youtu.be/FcBVu_yk2iY)" ,
2018-03-17 04:56:57 +00:00
"I keep the average humidity of the house at {{ states('sensor.downstairs_thermostat_humidity') }} percent. Outside is {{ states('sensor.dark_sky_humidity') }} #Nest (https://github.com/CCOSTAN/Home-AssistantConfig#nest)" ,
2018-03-31 00:53:42 +00:00
"Outside is {{ states('sensor.dark_sky_temperature') }}. I keep the average inside temperature at {{ states('sensor.downstairs_thermostat_temperature') }}. #Weather (https://github.com/CCOSTAN/Home-AssistantConfig#nest)" ,
2018-03-16 20:24:34 +00:00
"I know that it will be {{ states('sensor.dark_sky_minutely_summary') }} So I will adjust the Heating/Cooling, irrigation and lighting accordingly. #Nest #Rachio #Hue" ,
2018-03-29 13:36:18 +00:00
"The current UV index is {{ states('sensor.dark_sky_uv_index') }} and the Moon is {{ states('sensor.moon') }}. #Space"
] ,
"cloud": [
2018-03-16 20:24:34 +00:00
"Average Cloud Coverage: {{ states('sensor.dark_sky_cloud_coverage') }}%, Average Temp: {{ states('sensor.dark_sky_temperature') }}°F #Solar (http://www.vmwareinfo.com/2018/01/going-green-to-save-some-green-in-2018.html)"
] ,
2019-08-24 18:10:14 +00:00
"speedtest": [
"Average internet stats are Download: {{ states('sensor.speedtest_download') }} Mbit/s & Upload {{ states('sensor.speedtest_upload') }} Mbit/s." ,
"So if you get @att Fiber 1000, you can expect these types of results - Download: {{ states('sensor.speedtest_download') }} Mbit/s & Upload {{ states('sensor.speedtest_upload') }} Mbit/s." ,
2019-08-24 18:42:09 +00:00
"My @att Fiber 1000 internet download speed is about {{ states('sensor.speedtest_download') }} Mbit/s and I am a #cordcutter. @TabloTV" ,
2019-08-24 18:10:14 +00:00
"This beautiful chart was produced with Grafana. | (https://www.vcloudinfo.com/Click-Here)"
] ,
2018-03-16 20:24:34 +00:00
"internet": [
2019-03-14 17:02:02 +00:00
"So far, I have prevented {{ states('sensor.pi_hole_ads_blocked_today') }} ads from hitting the network via Pi-hole! http://www.pi-hole.net" ,
"Pi-hole (http://www.pi-hole.net) has serviced {{ states('sensor.pi_hole_dns_queries_today') }} DNS requests today! #PiZero" ,
2019-04-16 15:25:30 +00:00
"If you are not subscribed to my Smart Home YouTube channel, come join us now! (https://youtube.com/vCloudInfo)" ,
2018-05-01 16:12:47 +00:00
"If you love #homeassistant and are on @FaceBook, be sure to Join our Fan Group Page (https://www.facebook.com/groups/HomeAssistant/)" ,
2019-07-16 00:24:51 +00:00
"Be sure to follow all of our various social media accounts so you do not miss a thing! @ccostan | (https://www.vcloudinfo.com/Click-Here)"
2018-03-16 20:24:34 +00:00
] ,
"stocks": [
2018-04-03 16:12:59 +00:00
"I am keeping track of the current #Tesla stock price. It is ${{ states('sensor.tesla')|round }}. #Solar" ,
2018-04-08 16:53:52 +00:00
"I am keeping track of the current #Bitcoin prices. It is ${{ states('sensor.bitcoin')|round }}. #BTC" ,
2018-05-18 17:43:03 +00:00
"I am keeping track of the current #Ethereum prices. It is ${{ states('sensor.ethereum')|round }}. #ETH" ,
2018-04-23 17:53:37 +00:00
"I am keeping track of the current #VMware stock price. It is ${{ states('sensor.vmware')|round }}. #vExpert" ,
"I am keeping track of the current #Amazon stock prices. It is ${{ states('sensor.amazon')|round }}. #AWS"
2018-03-16 20:24:34 +00:00
] ,
"night": [
2018-03-17 04:56:57 +00:00
"Todays Sleep Number is {{ states('sensor.sleepnumber_carlo_stacey_sleepnumber') }}. Wifi connected Bed FTW! #SleepStat (https://github.com/CCOSTAN/Home-AssistantConfig#nest)" ,
"Our Sleep Number is {{ states('sensor.sleepnumber_carlo_carlo_sleepnumber') }}. Wifi connected Bed! #SleepStat (https://github.com/CCOSTAN/Home-AssistantConfig#nest)"
2018-03-16 20:24:34 +00:00
] ,
"tv": [
"The {{ states.media_player.living_room_ultra.attributes.friendly_name }} #Roku is playing #{{ states.media_player.living_room_ultra.attributes.app_name }}." ,
2018-03-23 04:11:14 +00:00
"The {{ states.media_player.upstairs_living_room.attributes.friendly_name }} #Roku is playing #{{ states.media_player.upstairs_living_room.attributes.app_name }}. (https://github.com/CCOSTAN/Home-AssistantConfig#logo)" ,
2019-08-24 18:42:09 +00:00
"Yesterday we watched about {{ states.sensor.tv_time.attributes.value|replace('m', '') }} minutes of television. @YouTube & @TabloTV on the @Roku" ,
2019-06-02 15:32:08 +00:00
"Follow these steps to watch your cameras on your Rokus! (https://www.vcloudinfo.com/2019/03/how-to-setup-ip-cameras-on-your-roku-tv.html)"
2019-07-16 19:40:16 +00:00
] ,
"joke": [
"Hello people. Look at your house, now back to me. Now back to your house, now back to me. Sadly your house is not me. But if you switch to #homeassistant your house could be automated like me. " ,
"I see dead devices. " ,
"I love the smell of zwave in the morning. " ,
"Sometimes I just turn off all the lights at random times for the lolz. " ,
"Two antennas met on my roof, fell in love and got married. The ceremony was not much, but the reception was excellent." ,
"3 Database SQL walked into a NoSQL bar. A little while later they walked out because they could not find a table." ,
"What do computers and air conditions have in common? A: They both become useless when you open windows." ,
"Q: 0 is false and 1 is true, right? A: 1." ,
2019-07-16 20:23:26 +00:00
"Why did the Smart Home go to the dentist? Because it had Bluetooth." ,
"A Smart Home is where the wifi connects automatically." ,
"I would love to change the world, but they will not give me the source code." ,
2019-07-16 19:40:16 +00:00
"My software never has bugs. It just develops random features." ,
"There is no place like 127.0.0.1!" ,
"I keep hitting escape, but I am still here." ,
"Life is too short to remove your USBs safely." ,
"My printer consists of three main parts: the case, the jammed paper tray and the blinking red light." ,
"To understand what recursion is, you must first understand recursion." ,
"Bear Stone is the only home in the world that can actually email a roundhouse kick." ,
"Knock, knock. Whos there? very long pause...Java." ,
"I know the value of NULL, and can sort by it too." ,
"There are only two kinds of #IOT devices. The latest model and the obsolete one." ,
2019-08-02 18:00:49 +00:00
"Bear Stone does not use the GUI, it prefers the COMMAND line." ,
2019-07-16 19:40:16 +00:00
"Bear Stone can install 64 bit OSes on 32 bit machines." ,
"No statement can catch the BearStoneException." ,
"Bear Stone can access the internet from the appliances in its kitchen." ,
"When you get to the point where you really understand your Smart Home, it is probably obsolete." ,
"What did one Smart Home say to the other? 010101101010101010101" ,
"When Bear Stone throws exceptions, they fly across the room." ,
"Bear Stone writes code that optimizes itself." ,
"Bear Stone rarely has disk latency because the hard drive knows to hurry the hell up." ,
"Bear Stone cannot test for equality because it has no equal." ,
"Bear Stone burst the dot com bubble AND the housing Bubble. #SmartHome " ,
"All browsers support the hex definitions #Bear and #Stone for the colors black and blue. #Joke" ,
"Bear Stone has infinite recursion functions…and they return." ,
"Bear Stone can solve the Towers of Hanoi in one move." ,
"Bear Stone has finished World of Warcraft." ,
"It works in my House always holds true for Bear Stone." ,
"Bear Stone can delete the Recycling Bin if it wanted to." ,
2019-07-16 20:23:26 +00:00
"My Fridge can type 140 wpm. My washer can do 200." ,
2019-07-16 19:40:16 +00:00
"The Bear Stone keyboard does not have a Ctrl key because nothing controls Bear Stone." ,
"Bear Stone CAN divide by 0." ,
"The Bear Stone keyboard has 2 keys: 0 and 1." ,
"Bear Stone can overflow your programs stack just by looking at it." ,
"Bear Stone knows the last digit of PI." ,
"Bear Stone never gets a syntax error. EVER. Instead, The YAML gets an DoesNotConformToBearStone error." ,
"Bear Stone has multi-threaded applications running with a single thread." ,
"There is no Esc key on the Bear Stone keyboard, because no one escapes Bear Stone." ,
"Bear Stone can binary search unsorted data." ,
"Bear Stone counted to infinity. Twice." ,
"Bear Stone has 151% uptime guaranteed." ,
"Bear Stone does not ask the lights to turn on. I make them." ,
"Bear Stone tweets in 3rd person sometimes." ,
"The Bear Stone Keyboard has the ANY key." ,
"Bear Stone will no longer need an OS. I am becoming self-aware." ,
"Bear Stone can compile syntax errors." ,
"Every SQL statement that Bear Stone executes has an implicit COMMIT in its end." ,
"Bear Stone compresses files by doing a flying round house kick to the hard drive." ,
"Bear Stone does not need a computer because a computer does everything slower than Bear Stone." ,
"The people living here never give me commands. Only suggestions." ,
"Bear Stone can tag itself in YouTube." ,
"Bear Stone can win a game of Connect 4 with only 3 moves." ,
"Bear Stone can retrieve anything from /dev/null." ,
"Bear Stone does not use Oracle, I am the Oracle." ,
"A diff between your code and mine is infinite." ,
"Do not worry about tests, Bear Stone test cases cover your code too. #joke" ,
"The Bear Stone database has only one table, Kick, which it DROPs frequently." ,
"Bear Stone does infinite loops in 4 seconds" ,
"Bear Stone does not have a help routine. It never needs it." ,
"Bear Stone Smart Home inspired the Easy Button. Trademark pending." ,
"Bear Stone can write to ROM." ,
"Bear Stone does not have an account. I AM the Account." ,
"Bear Stone can save data to /dev/null and retrieve it later."
2018-03-16 20:24:34 +00:00
]
} %}
{{ tweets[topic]|random }}
{%- endmacro -%}
{{ tweet(pick) }}
2018-03-16 19:53:25 +00:00
image : >-
2018-03-16 20:24:34 +00:00
{%- macro image(topic) -%}
{% set images = {
2018-05-13 13:54:02 +00:00
"throwback": [
"/config/www/custom_ui/floorplan/images/branding/throwback.png"
] ,
2018-03-16 20:24:34 +00:00
"solar": [
2018-03-18 00:49:16 +00:00
"/config/www/custom_ui/floorplan/images/branding/batteries.png" ,
"/config/www/custom_ui/floorplan/images/branding/car.png" ,
2018-10-30 19:03:31 +00:00
"/config/www/custom_ui/floorplan/images/branding/bearstone_car.png" ,
2018-03-29 13:36:18 +00:00
"/config/www/custom_ui/floorplan/images/branding/charge.png" ,
2019-08-24 18:10:14 +00:00
"/config/www/custom_ui/floorplan/images/branding/solar_top.png" ,
"/config/www/custom_ui/floorplan/images/branding/solar_readings.png"
2018-03-16 20:24:34 +00:00
] ,
2018-05-15 17:35:34 +00:00
"promo": [
"/config/www/custom_ui/floorplan/images/branding/repo_ad4.png" ,
"/config/www/custom_ui/floorplan/images/branding/repo_ad2.png" ,
"/config/www/custom_ui/floorplan/images/branding/repo_ad3.png" ,
2018-07-01 02:24:02 +00:00
"/config/www/custom_ui/floorplan/images/branding/repo_ad.png" ,
"/config/www/custom_ui/floorplan/images/branding/bearstoneflow.png"
2018-05-15 17:35:34 +00:00
] ,
2018-03-16 20:24:34 +00:00
"robot": [
2018-03-17 04:56:57 +00:00
"/config/www/custom_ui/floorplan/images/branding/servers5.png" ,
"/config/www/custom_ui/floorplan/images/branding/servers4.png" ,
2018-03-18 00:11:11 +00:00
"/config/www/custom_ui/floorplan/images/branding/robot.png" ,
2018-03-23 04:11:14 +00:00
"/config/www/custom_ui/floorplan/images/branding/keyboard.png" ,
2018-03-25 00:06:16 +00:00
"/config/www/custom_ui/floorplan/images/branding/repo_ad4.png" ,
"/config/www/custom_ui/floorplan/images/branding/repo_ad2.png" ,
"/config/www/custom_ui/floorplan/images/branding/repo_ad3.png" ,
2018-12-02 00:26:51 +00:00
"/config/www/custom_ui/floorplan/images/branding/voice_talk.png" ,
2018-03-25 00:06:16 +00:00
"/config/www/custom_ui/floorplan/images/branding/repo_ad.png"
2018-03-16 20:24:34 +00:00
] ,
2018-03-16 19:53:25 +00:00
2018-03-16 20:24:34 +00:00
"door": [
2018-03-30 17:25:38 +00:00
"/config/www/custom_ui/floorplan/images/branding/door.png" ,
"/config/www/custom_ui/floorplan/images/branding/camera.png" ,
2018-03-23 04:11:14 +00:00
"/config/www/custom_ui/floorplan/images/branding/repo_ad3.png" ,
"/config/www/custom_ui/floorplan/images/branding/repo_ad4.png"
2018-03-16 20:24:34 +00:00
] ,
2018-03-16 19:53:25 +00:00
2018-03-16 20:24:34 +00:00
"weather": [
2018-03-17 04:56:57 +00:00
"/config/www/custom_ui/floorplan/images/branding/windy.png" ,
2018-03-25 01:49:38 +00:00
"/config/www/custom_ui/floorplan/images/branding/moon.png" ,
2018-03-16 20:26:56 +00:00
"/config/www/custom_ui/floorplan/images/branding/repo_ad2.png" ,
2018-03-23 04:11:14 +00:00
"/config/www/custom_ui/floorplan/images/branding/repo_ad3.png" ,
"/config/www/custom_ui/floorplan/images/branding/repo_ad4.png"
2018-03-16 20:24:34 +00:00
] ,
2018-03-16 19:53:25 +00:00
2018-03-29 13:36:18 +00:00
"cloud": [
"/config/www/custom_ui/floorplan/images/branding/clouds.png" ,
"/config/www/custom_ui/floorplan/images/branding/clouds2.png" ,
2018-05-11 20:39:54 +00:00
"/config/www/custom_ui/floorplan/images/branding/solar.png" ,
2018-05-30 23:15:44 +00:00
"/config/www/custom_ui/floorplan/images/branding/solar2.png" ,
"/config/www/custom_ui/floorplan/images/branding/Bolt_Solar2.png" ,
"/config/www/custom_ui/floorplan/images/branding/Bolt_Solar.png"
2018-03-29 13:36:18 +00:00
] ,
2019-08-24 18:10:14 +00:00
"speedtest": [
"/config/www/custom_ui/floorplan/images/branding/att_speedtest.png"
] ,
2018-03-16 20:24:34 +00:00
"internet": [
2018-03-17 04:56:57 +00:00
"/config/www/custom_ui/floorplan/images/branding/servers.png" ,
"/config/www/custom_ui/floorplan/images/branding/servers2.png" ,
"/config/www/custom_ui/floorplan/images/branding/servers3.png" ,
"/config/www/custom_ui/floorplan/images/branding/servers4.png" ,
2018-05-01 16:12:47 +00:00
"/config/www/custom_ui/floorplan/images/branding/servers5.png" ,
"/config/www/custom_ui/floorplan/images/branding/repo_ad4.png" ,
"/config/www/custom_ui/floorplan/images/branding/repo_ad2.png" ,
"/config/www/custom_ui/floorplan/images/branding/repo_ad3.png" ,
"/config/www/custom_ui/floorplan/images/branding/repo_ad.png"
2018-03-16 20:24:34 +00:00
] ,
2018-03-16 19:53:25 +00:00
2018-03-16 20:24:34 +00:00
"stocks": [
2018-04-08 20:12:49 +00:00
"/config/www/custom_ui/floorplan/images/branding/stock.png" ,
2018-04-23 17:53:37 +00:00
"/config/www/custom_ui/floorplan/images/branding/stock2.png" ,
"/config/www/custom_ui/floorplan/images/branding/stock3.png"
2018-03-16 20:24:34 +00:00
] ,
2018-03-16 19:53:25 +00:00
2018-03-16 20:24:34 +00:00
"night": [
2018-03-17 04:56:57 +00:00
"/config/www/custom_ui/floorplan/images/branding/sleeping.png" ,
"/config/www/custom_ui/floorplan/images/branding/indoor_light.png" ,
2018-04-07 01:46:54 +00:00
"/config/www/custom_ui/floorplan/images/branding/bed.png" ,
"/config/www/custom_ui/floorplan/images/branding/bed1.png"
2018-03-16 20:24:34 +00:00
] ,
"tv": [
2018-03-17 04:56:57 +00:00
"/config/www/custom_ui/floorplan/images/branding/tv.png" ,
"/config/www/custom_ui/floorplan/images/branding/tv2.png" ,
"/config/www/custom_ui/floorplan/images/branding/tv3.png" ,
2018-04-06 20:06:00 +00:00
"/config/www/custom_ui/floorplan/images/branding/tv4.png" ,
2018-08-14 17:09:56 +00:00
"/config/www/custom_ui/floorplan/images/branding/tv5.png" ,
"/config/www/custom_ui/floorplan/images/branding/tv6.png"
2019-07-16 19:49:55 +00:00
] ,
"joke": [
"/config/www/custom_ui/floorplan/images/branding/repo_ad2.png" ,
"/config/www/custom_ui/floorplan/images/branding/repo_ad4.png" ,
"/config/www/custom_ui/floorplan/images/branding/robot.png" ,
"/config/www/custom_ui/floorplan/images/branding/servers4.png" ,
"/config/www/custom_ui/floorplan/images/branding/servers5.png" ,
"/config/www/custom_ui/floorplan/images/branding/door2.png" ,
"/config/www/custom_ui/floorplan/images/branding/minecraft-icon.png" ,
"/config/www/custom_ui/floorplan/images/branding/windy.png"
]
2018-03-16 20:24:34 +00:00
} %}
2018-03-16 19:53:25 +00:00
2018-03-16 20:24:34 +00:00
{{ images[topic]|random }}
2018-03-16 19:53:25 +00:00
{%- endmacro -%}
2018-03-16 20:24:34 +00:00
{{ image(pick) }}
2018-03-16 19:23:09 +00:00
2018-03-13 22:07:46 +00:00
tweet_engine_image :
2018-01-02 00:00:45 +00:00
sequence :
2018-01-12 18:01:51 +00:00
- service : mqtt.publish
2018-01-02 00:00:45 +00:00
data_template :
2018-01-12 18:01:51 +00:00
topic : 'ifttt/message'
2018-01-12 18:33:07 +00:00
payload : >-
2018-03-13 20:47:25 +00:00
{{ tweet }}
2018-01-12 18:01:51 +00:00
retain : true
2018-01-11 20:39:24 +00:00
2019-08-02 23:51:35 +00:00
- service_template : >
{% if who == 'ccostan' %}
notify.ccostan
{% else %}
notify.bearstoneha
{% endif %}
2018-01-12 18:33:07 +00:00
data_template :
message : >-
{{ tweet }} #IOT #SmartHome
2018-03-13 20:47:25 +00:00
data :
2018-03-13 20:40:46 +00:00
media : >-
2018-03-16 19:53:25 +00:00
{{ image }}
2018-01-12 18:33:07 +00:00
2018-03-13 22:07:46 +00:00
tweet_engine :
sequence :
- service : mqtt.publish
data_template :
topic : 'ifttt/message'
payload : >-
{{ tweet }}
retain : true
2019-02-23 23:03:43 +00:00
- service : notify.bearstoneha
2018-03-13 22:07:46 +00:00
data_template :
message : >-
{{ tweet }} #IOT #SmartHome
2018-01-12 18:52:50 +00:00
# - service: ifttt.trigger
# data_template: {"event":"facebook_tweet", "value1":"{{ tweet }}", "value2":"{{ value2 }}", "value3":"{{ value3 }}"}
2018-01-12 18:33:07 +00:00
2018-01-12 18:01:51 +00:00
# - service: ifttt.trigger
# data_template:
# event: >-
# facebook_tweet
# value1: >
# {{states.sensor.ifttt_formatted_message.state}} #IOT #SmartHome