Split files into smaller classed. Add enable_bot.php file to enable bot daily.
This commit is contained in:
1 parent
499e14de45
commit
a262679916
4 files changed
+121
-41
No files matched your search
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use GuzzleHttp\Client;
|
||||
use Kplaczek\FoodsiBot\HomeassistantService;
|
||||
|
||||
require_once 'vendor/autoload.php';
|
||||
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
|
||||
$dotenv->load();
|
||||
$client = new Client();
|
||||
$homeassistant = new HomeassistantService($client);
|
||||
$homeassistant->updateEntity('input_boolean.foodsi_bot_enabled', 'on');
|
||||
Reference in new issue
Block a user