Reads delivery day, next arrival date, both upcoming carts, box contents, add-ons and order totals from a single /p/dashboard/details fetch. Adds five sensors and parser tests over a synthetic fixture mirroring the live markup. Records two portal quirks: every /p/ path returns 200 so signed-in state is detected by a Sign Out control, and cart-contents-skipped marks the locked cart rather than a skipped order.
30 lines
762 B
JSON
30 lines
762 B
JSON
{
|
|
"config": {
|
|
"step": {
|
|
"user": {
|
|
"description": "Sign in with your freshharvest.com account.",
|
|
"data": {
|
|
"email": "Email",
|
|
"password": "Password"
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"cannot_connect": "Failed to connect",
|
|
"invalid_auth": "Invalid authentication"
|
|
},
|
|
"abort": {
|
|
"already_configured": "This account is already configured"
|
|
}
|
|
},
|
|
"entity": {
|
|
"sensor": {
|
|
"next_delivery": { "name": "Next delivery" },
|
|
"next_delivery_total": { "name": "Next delivery total" },
|
|
"next_delivery_items": { "name": "Next delivery items" },
|
|
"open_order_delivery": { "name": "Open order delivery" },
|
|
"shop_window": { "name": "Shopping window" }
|
|
}
|
|
}
|
|
}
|