allenporter/pyrainbird

Feature request: Add CombinedControllerState

Closed this issue · 0 comments

Here is a sample response based on the current parsed output:

DEBUG:pyrainbird.async_client:Request: {"id": 1673212772.8891535, "jsonrpc": "2.0", "method": "tunnelSip", "params": {"data": "4C", "length": 1}}
DEBUG:pyrainbird.async_client:Response: {"jsonrpc": "2.0", "result":{"length":16, "data":"CC0D12280817E700020001FFFF000000"}, "id": 0}
DEBUG:pyrainbird.async_client:Response from line: CC0D12280817E700020001FFFF000000
DEBUG:pyrainbird.async_client:Response: {'type': 'CombinedControllerStateResponse', 'hour': 13, 'minute': 18, 'second': 40, 'day': 8, 'month': 1, 'year': 2023, 'delaySetting': 2, 'sensorState': 0, 'irrigationState': 1, 'seasonalAdjust': 65535, 'remainingRuntime': 0, 'activeStation': 0}

This seems like a pretty useful response that is more generally valuable than the individual commands to return the same data.