2018-01-01 19:00:45 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								#------------------------------------------- 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# @CCOSTAN 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-06-25 16:42:44 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								# JuiceBox 40 Support - https://amzn.to/3eA95dV 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# https://www.vcloudinfo.com/2018/06/using-home-assistant-to-fix-my-juicebox.html 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-01 19:00:45 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								#------------------------------------------- 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-06-07 16:23:56 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-01-01 19:00:45 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								juicenet : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								     access_token :   !secret juicenet_access_token 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-06-04 15:03:33 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								switch : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   - platform :   command_line 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								     switches : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       juicebox_restart : 
 
							 
						 
					
						
							
								
									
										
										
										
											2019-01-27 16:35:36 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								         command_on :   "/usr/bin/curl -k 'http://192.168.10.91/command/reboot'" 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-06-04 15:03:33 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								         friendly_name :   Restart Juicebox 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-01-01 19:00:45 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								############################################################################# 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-07-02 14:50:39 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								###  Automations - Alerts related to the JuiceBox (https://amzn.to/2AZVQ37) 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-01 19:00:45 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								############################################################################## 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								automation : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   - alias :   'Car Charging Alerts' 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-07-20 19:33:03 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								     id :   fa805e4a-08fa-4626-870f-e3df98ca3d84 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-01 19:00:45 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								     initial_state :   'on' 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								     trigger : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       - platform :   state 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         entity_id :   sensor.carlojuice_charging_status 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								     action : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       - service :   script.notify_engine 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         data_template : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								           value1 :   "The Garage charger is now in {{ states('sensor.carlojuice_charging_status') }} mode." 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-06-25 16:42:44 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								           who :   'parents' 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-06-07 16:23:56 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								           apns_id :   'information' 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-01 19:00:45 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-06-04 15:03:33 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   - alias :   'Juicebox Self-Heal' 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-07-20 19:33:03 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								     id :   e693f117-c75d-4bb9-a8f3-c104b226d0c5 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-06-04 15:03:33 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								     initial_state :   'on' 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								     trigger : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       - platform :   state 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         entity_id :   sensor.carlojuice_charging_status 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         to :   'disconnect' 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-06-04 15:35:25 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								         for : 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-06-29 16:11:03 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								           minutes :   6 
 
							 
						 
					
						
							
								
									
										
										
										
											2019-02-23 18:03:43 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								       - platform :   time_pattern 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-06-29 16:51:56 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								         hours :   '/4' 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-06-04 15:35:25 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								     condition : 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-06-29 16:11:03 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								       - condition :   state 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         entity_id :   sensor.carlojuice_charging_status 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         state :   'disconnect' 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         for : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								           minutes :   5 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-09-17 20:09:56 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       - condition :   numeric_state 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         entity_id :   automation.juicebox_selfheal 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         attribute :   last_triggered 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         above :   10000 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       # - condition: template 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       #   value_template: > 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       #     {%- if states.automation.juicebox_selfheal.attributes.last_triggered -%} 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       #       {{ (as_timestamp(now()) - as_timestamp(states.automation.juicebox_selfheal.attributes.last_triggered)) > 10000 }} 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       #     {%- else -%} 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       #       true 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       #     {%- endif -%} 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-06-04 15:03:33 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								     action : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       - service :   homeassistant.turn_on 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         entity_id :   switch.juicebox_restart 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       - service :   script.tweet_engine_image 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         data_template : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								           tweet :   > 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								             {{  [ 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								             "The #JuiceBox Pro had to be restarted. It was unable to connect back to @emotorwerks servers." , 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								             "Unfortunately, the Juicebox Pro sometimes can no longer connect to @emotorwerks servers.  Fortunately, #HomeAssistant can fix that with a restart!" 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-06-06 18:15:38 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								             ]   | random + " (https://www.vcloudinfo.com/2018/06/using-home-assistant-to-fix-my-juicebox.html) #SelfHeal #EV   #BoltEV "}} 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-06-04 15:03:33 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								           image :   >- 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								             {{  [ 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								             "/config/www/custom_ui/floorplan/images/branding/car.png" , 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-10-30 15:03:31 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								             "/config/www/custom_ui/floorplan/images/branding/bearstone_car.png" , 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-06-04 15:03:33 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								             "/config/www/custom_ui/floorplan/images/branding/batteries.png" , 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								             "/config/www/custom_ui/floorplan/images/branding/charge.png" 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								             ]   | random }} 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-01-01 19:00:45 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								   - alias :   'JuiceBox AMP Alert!' 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-07-20 19:33:03 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								     id :   b805f213-a938-4d90-8d18-e88ff4d41776 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-01 19:00:45 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								     initial_state :   'on' 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								     trigger : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       - platform :   numeric_state 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         entity_id :   sensor.carlojuice_amps 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-06 20:26:30 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								         above :   24 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         for : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								           minutes :   2 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-05-29 17:50:36 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								       - platform :   event 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-06-25 16:42:44 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								         event_type :   event_did_someone_help_juicebox_AMPS 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								     condition : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       - condition :   state 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         entity_id :   sensor.carlojuice_charging_status 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         state :   'charging' 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-01-01 19:00:45 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								     action : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       - service :   input_boolean.turn_on 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         entity_id :   input_boolean.alert_mode 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       - service :   script.notify_engine 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         data_template : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								           value1 :   "The Juice Box Charger is pulling {{ states('sensor.carlojuice_amps') }} AMPs.  This is above the safety mark of 30.  Please unplug charger immediately." 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								           who :   'parents' 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-05-29 17:50:36 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								           apns_id :   'JuiceBox' 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-01 19:00:45 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       - service :   script.speech_engine 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         data_template : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								           value1 :   "The Juice Box Charger is pulling {{ states('sensor.carlojuice_amps') }} AMPs.  This is above the safety mark of 30.  Please unplug charger immediately." 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-05-29 17:50:36 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								       - delay :   00 : 02 : 00 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-06-25 16:42:44 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								       - event :   event_did_someone_help_juicebox_AMPS 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   - alias :   'JuiceBox Temp Alert!' 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-07-20 19:33:03 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								     id :   ddb36236-6ee1-4ba4-8839-661db3658401 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-06-25 16:42:44 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								     initial_state :   'on' 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								     trigger : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       - platform :   numeric_state 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         entity_id :   sensor.carlojuice_temperature 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         above :   139 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         for : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								           minutes :   2 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       - platform :   event 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         event_type :   event_did_someone_help_juicebox_TEMP 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								     condition : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       - condition :   state 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         entity_id :   sensor.carlojuice_charging_status 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         state :   'charging' 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								     action : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       - service :   input_boolean.turn_on 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         entity_id :   input_boolean.alert_mode 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       - service :   script.notify_engine 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         data_template : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								           value1 :   "The Juice Box Charger is running very Hot.  Temperature is around {{ states('sensor.carlojuice_temperature') }} degrees.  This is above the safety mark of 140.  Please unplug the car immediately." 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								           who :   'parents' 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								           apns_id :   'JuiceBox' 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       - service :   script.speech_engine 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         data_template : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								           value1 :   "The Juice Box Charger is running very Hot.  Temperature is around {{ states('sensor.carlojuice_temperature') }} degrees.  This is above the safety mark of 140.  Please unplug the car immediately." 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       - delay :   00 : 02 : 00 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       - event :   event_did_someone_help_juicebox_TEMP 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-05-29 17:50:36 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-01-01 19:00:45 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								   - alias :   'JuiceBox Tweet Stat!' 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-07-20 19:33:03 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								     id :   ed7d21d5-0ff7-40e3-9492-213c23a8b964 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-01 19:00:45 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								     initial_state :   'on' 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								     trigger : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								       - platform :   state 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         entity_id :   sensor.carlojuice_charging_status 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								         from :   'charging' 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								     action : 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-06-14 15:33:39 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								       - delay :   '0{{ range(0,3) | random | int }}:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00' 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-03-17 21:14:50 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								       - service :   script.tweet_engine_image 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-01 19:00:45 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								         data_template : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								           tweet :   > 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								             {{  [ 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-11 15:11:52 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								             "The #Chevy Bolt Charged for {{(states.sensor.carlojuice_charge_time.state  | int /60) | round() }} minutes and Juiced up {{states.sensor.carlojuice_energy_added.state |int /1000}} KwHs." , 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-01 19:00:45 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								             "The last charging session was {{(states.sensor.carlojuice_charge_time.state  | int /60) | round() }} minutes. Added {{states.sensor.carlojuice_energy_added.state |int /1000}} KwHs " , 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-07 10:35:32 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								             "The Juice Box Pro added {{states.sensor.carlojuice_energy_added.state |int /1000}} KwHs to the #Chevy #BoltEV in {{(states.sensor.carlojuice_charge_time.state  | int /60) | round() }} minutes." 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-03-17 14:39:26 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								             ]   | random + " (https://github.com/CCOSTAN/Home-AssistantConfig#garage) #Electric   #Solar"}} 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								           image :   >- 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								             {{  [ 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								             "/config/www/custom_ui/floorplan/images/branding/car.png" , 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-10-30 15:03:31 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								             "/config/www/custom_ui/floorplan/images/branding/bearstone_car.png" , 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-03-17 20:49:16 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								             "/config/www/custom_ui/floorplan/images/branding/batteries.png" , 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-03-17 21:14:50 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								             "/config/www/custom_ui/floorplan/images/branding/charge.png" 
 
							 
						 
					
						
							
								
									
										
										
										
											2018-03-17 14:39:26 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								             ]   | random }}