Commit 40e50451 authored by Thomas Eimers's avatar Thomas Eimers

Add Eco-Mode if no one is at home

parent f5fb53af
Pipeline #94941632 failed with stages
in 10 minutes and 56 seconds
......@@ -89,7 +89,6 @@ class ServiceConfig implements CombineInterface
$container[NightSettingsService::class],
$container[TemperatureMappingService::class],
$container[StateCacheService::class],
$container[MessageQueueService::class],
$container[LoggerInterface::class]
);
};
......
......@@ -38,9 +38,6 @@ class HeatingManagementService
/** @var StateCacheService */
protected $memcachedService;
/** @var MessageQueueService */
protected $messageQueueService;
/** @var LoggerInterface */
protected $logger;
......@@ -51,7 +48,6 @@ class HeatingManagementService
NightSettingsService $nightSettingService,
TemperatureMappingService $mappingService,
StateCacheService $memcachedService,
MessageQueueService $messageQueueService,
LoggerInterface $logger
) {
$this->config = $config;
......
......@@ -37,8 +37,7 @@ class RelayState extends SwitchState implements StoreQueueInterface, StoreRrdInt
'name' => $this->getName(),
'state_topic' => $this->getQueueStateUrl(),
'device_class' => $deviceClass
]
)
])
);
return $this->getQueueDiscoveryUrl();
......
......@@ -3,7 +3,6 @@
namespace HeatingControl\State;
interface StoreRrdInterface
{
public function getRrdValue(): int;
......
......@@ -111,6 +111,7 @@ class HeatingManagementServiceTest extends IntegrationTestCase
$memcachedService->get('pump')->willReturn(true);
$memcachedService->set('burner', $burnerStatus)->shouldBeCalled();
$memcachedService->set('pump', $pumpStatus)->shouldBeCalled();
$memcachedService->get('eco')->willReturn(false);
// This is Part of the testet behavior
$relayService->setRelay('gpio01', $burnerStatus)->shouldBeCalled();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment