ferrarid61
(Daniele Ferrari)
July 23, 2022, 10:46am
1
Hello,
I’ve got this message when running the automation:
service: utility_meter.select_tariff
data:
tariff: f2
target:
entity_id:
- utility_meter.monthly_energy
I can’t find any support in order to use select.select_option suggested… Can anyone help me ? I’m running 2022.6.6
Thanks
nickrout
(Nick Rout)
July 23, 2022, 12:03pm
2
That service is still in 2022.7
DazzB66
(Darren B)
July 24, 2022, 2:53am
3
I had the same issue (due to following old posts), and gave up - my automation below works better for me anyway - hope it helps (change tariff names/entities to suit).
alias: Time - Electricity Tariff Change
description: ''
trigger:
- platform: time
at: '00:00:00'
variables:
tariff: offpeak
- platform: time
at: '01:00:00'
variables:
tariff: peak
- platform: time
at: '06:00:00'
variables:
tariff: shoulder
- platform: time
at: '10:00:00'
variables:
tariff: peak
- platform: time
at: '15:00:00'
condition: []
action:
- choose:
- conditions:
- condition: time
before: '06:00:00'
after: '01:00:00'
sequence:
- service: select.select_option
data:
option: 01:00-06:00 Off-Peak Tariff
target:
entity_id: select.energy_grid_import
- conditions:
- condition: time
before: '10:00:00'
after: '06:00:00'
sequence:
- service: select.select_option
data:
option: 06:00-10:00 Peak Tariff
target:
entity_id: select.energy_grid_import
- conditions:
- condition: time
before: '15:00:00'
after: '10:00:00'
sequence:
- service: select.select_option
data:
option: 10:00-15:00 Shoulder Tariff
target:
entity_id: select.energy_grid_import
default:
- service: select.select_option
data:
option: 15:00-01:00 Peak Tariff
target:
entity_id: select.energy_grid_import
mode: single