Or: “Everybody likes being given a glass of water.”
By Merlin Mann.
It's only advice for you because it had to be advice for me.
| alias: Octopus Energy New Free Energy Session | |
| description: "" | |
| triggers: | |
| - event_type: octopus_energy_new_octoplus_free_electricity_session | |
| trigger: event | |
| conditions: | |
| - condition: template | |
| value_template: "{{ as_datetime(trigger.event.data.event_start) > now() }}" | |
| alias: Is in the future | |
| actions: |
| - id: '1688129246113' | |
| alias: Irrigation intelligente - Calculer fin arrosage | |
| description: '' | |
| trigger: | |
| - platform: state | |
| entity_id: | |
| - switch.irrigation_switch | |
| to: 'on' | |
| from: 'off' | |
| condition: |
| ''' | |
| You'll need to pip install some dependencies: | |
| * python-dateutil | |
| * requests | |
| Also, populate your EMAIL and PASSWORD below. | |
| ''' | |
| from xml.etree import ElementTree |