Octopus Agile Tariff -Turn device ON and OFF

Hi, did you work this out? My HA wont reboot after adjusting the configuration.yaml and creation of sensors.yaml. Thanks