Skip to content

False error in handling START_MINING with Home Assistant #49

@Pipperix

Description

@Pipperix

During the execution of a policy, the system logs an error when trying to enable the Home Assistant miner switch, even though the operation actually succeeds.

Stacktrace

Policy 'Advanced Solar Mining Policy': Evaluating state for miner status OFF
2025-09-16 12:16:06 | INFO     | Optimization unit 'Test Energy Optimization', Miner 02bb802e-1f42-4e4f-b1a5-7d48ecfcc926: Status=OFF, Policy='Advanced Solar Mining Policy', Decision=START_MINING
2025-09-16 12:16:06 | INFO     | Executing START for miner 02bb802e-1f42-4e4f-b1a5-7d48ecfcc926 via GenericSocketHomeAssistantAPIMinerController
2025-09-16 12:16:08 | ERROR    | Failed to set Home Assistant entity 'switch.active_antminer' to state 'true'. Current state is 'False'.
2025-09-16 12:16:08 | ERROR    | Command START_MINING for miner 02bb802e-1f42-4e4f-b1a5-7d48ecfcc926 failed using controller GenericSocketHomeAssistantAPIMinerController.
2025-09-16 12:16:08 | INFO     | Finished processing for optimization unit 'Test Energy Optimization'. 1 miners controlled.
2025-09-16 12:16:08 | INFO     | Optimization run for all units finished. 1 units processed.

Checking through the Home Assistant interface, the entity switch.active_antminer is indeed set to true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions