Diagnostics and troubleshooting
For when something does not work as expected: how to get diagnostics and the debug info for a bug report, and fixes for the common problems.
In short
- To report a problem, right after it happened: the card's Settings → Support → Send debug info (Send debug info): write what happened, tick the box and press Send (administrators). Mention the reference it shows when you write about it.
- To look yourself, find your problem below: the cards, setting up, charging, prices, vehicles, the site or phone and pairing.
Diagnostics
The easiest way to report a problem is to send the debug info from the card, right after it happened: Settings, Support, Send debug info (see Send debug info below). The rest of this section is for when you want the file yourself.
Download diagnostics from Settings, Devices & services, SpotNav, the entry's menu, then Download diagnostics.
The file has the entry's configuration, price data state, the planner and controller state, and for a site the measurements, their ages and the load-balancing decisions. The webhook id and OCPP charge point id are redacted, and no webhook or pairing URL is included. It still holds your entity ids, device names, prices and charging times, so don't attach it to a public GitHub issue: open the issue with the bug report form, then email the file to support@sensnology.se with the issue's number in the subject.
Send debug info
Instead of downloading the file and emailing it, an administrator can send it from the card: Settings, Support, Send debug info. Write what happened and roughly when, add an e-mail address if you want an answer (it is kept in Home Assistant for next time, the same address as under Beta tester, and filled in the next time), tick the box to agree that the information is sent to SpotNav's developer, and press Send. The card then shows a reference such as SN-7KQ4: mention it in your forum post, your message in the group or your GitHub issue, so the report can be found.
What is sent is the same file Download debug info saves (below): versions, settings, entity names, and the logs and charge history of the last days, with no passwords, tokens, e-mail addresses or exact location (the solar forecast's review states only the latitude in whole degrees, about 110 km, never the longitude), and without the browser's user agent. With it go your message, the e-mail address if you gave one, the SpotNav and Home Assistant versions, and an anonymous id for the installation (a salted hash of Home Assistant's instance id, never the id itself), which lets the server limit how many reports one installation sends a day. Nothing is sent until you press Send; SpotNav never sends a report by itself, unless you ticked Beta tester. The report is kept for 30 days and read only by the developer, and the e-mail address is used only to answer you; see the privacy policy.
If sending fails (too many reports today, no connection, or the server is unavailable), the dialog says why. Download the debug info instead and email it as above.
Beta testing
The beta tester mode and the hardware test have their own page: Beta testing.
What the debug bundle holds
The site entry's file (and the card's Download debug info in Settings, Support, for administrators) also carries the whole installation as one debug bundle (bundle_version 10). It keeps the last day, also across restarts and updates: what it holds below is stored by SpotNav (written at most every five minutes and when Home Assistant stops) and read back after a restart, so a bundle downloaded in the evening still shows the afternoon. Nothing is read from the recorder.
history_24hper site: the last 24 hours, one row a minute. Each row is one line of text, its values separated by;in the ordercolumnsnames them (empty for unknown,1and0for yes and no): the grid's total power and where it came from, the site's current per phase and the house battery's power. Underchargers, each charger has its own row at the same minutes: its measured current per phase, charge control, charging, connection, connector status, the car's state of charge and where it came from, the strategy, what solar decided that minute (state, action, reason), the phases the charger reads back, whether SpotNav switched it to one phase, the current last written and the current asked for. There is no PV power: a site has no PV sensor to read. A charger in no site has the same rows in its ownhistory_24h(with the current it measures). Since version 10 the import target's columns come last: on the site's row the level the hour is held under (target_hold_kw, the target less its margin), what the chargers may draw (target_allowed_w), the house's power the budget used (target_house_w) and why the target is not applied (target_not_applied: empty while it is, or while no target is set); on a member charger's row what the target does to it (target_action:free,held,paused,releasedorexempt, such as a charge below the car's minimum level) and the amps it caps it at (target_cap_a). A row kept from before ends earlier: its missing values are empty.import_target.login the site's diagnostics: the import target's changes of the last 24 hours (at most 500), also from before a restart. Each entry hasat, the charger (nullfor the site) and anaction: what the target did to the charger (heldwithcap_a,paused,at_risk, with the hour's budget beside it); the site's state when it changes (off,applied,not_appliedwith itsreason); the departure's notice (notice_told,notice_retold,notice_cleared, with the departure and the kWh missing); and every release (release, with itssource:phone,card,apporplan, anduntil), a refused one (release_refusedwith itserror), one a Start kept until the unplug (release_kept), and its end (release_ended, with itsreason:departure_passed,unplugged,charge_ended,noon,departure_changedortarget_removed).sessionsper charger: its last five plug-ins, the current one included, oldest first. Each has when the car was plugged in and unplugged, the car and how it was identified, the strategy at the start and when it changed, and its own logs:solar(what solar and hybrid decided: only changes and actions, never an unchanged tick; while a plan's period holds the charge, only a change of its state),phase_switch(switches sent, not sent, confirmed, given up and reconciled with the charger's read-back),commands(what was sent to the charger and how it ended),actions(a person's or the app's Start, Stop, pause, resume and strategy change) andregulator(what load balancing decided for this charger). Each log keeps its last 300 entries (commands and load balancing 150), anddroppedcounts the older ones it let go. A new plug-in starts a new entry; what happens while no car is plugged in goes with the plug-in before.log.warnings_24h: SpotNav's warnings and errors of the last 24 hours (at most 500), also from before a restart.log.recordsstays as it was: the last records at INFO and above since the start. SpotNav's own INFO lines are kept for the bundle even at Home Assistant's default log level (WARNING), without being added to Home Assistant's log: that shows only what its level lets through, as before. A module you set quieter in Home Assistant'sloggerstays so in its log.shed_orderin the site's diagnostics: the shed order's steps (live or would), the projection of the hour it judged, what was blocked and why, and a log.client, added by the card to the file it saves: the card version and bundle hash this browser runs and a short user agent, next to the backend'sversions.card_bundle_hash(the file) andcard_bundle_hash_served(the one browsers are handed). When they differ, the file says so inclient.note, and the card's Support section says it too: the browser or the Companion app runs an older card. Reload the page; in the Companion app, force-stop the app and open it again.ownershipin each charger's controller diagnostics (ownership_shadowbefore bundle version 9): the charge-ownership core's counts (failuressays which decisions it could not take, and when the last was), its session, and its last events, each with the session it was decided from.ownership.coveragein each charger's controller diagnostics: per event kind of the charge-ownership core (every kind, zero until seen), how many events it decided and failed on, and when it first and last saw one. Unlike the rest ofownershipit is kept across restarts, fromsince(under the integration'sversionthen) until the charger is removed.promisesin each charger's diagnostics: things that should not happen, checked afterwards once a minute and only counted (nothing is changed or told; a hit is one info line in the log).dayshas the counts per local day (30 days),recentthe last ten:met_but_planned(the target has been met for ten minutes or more while a plan still waits; once per plan) andmany_pauses(three pauses of two minutes or more within eight hours, each inside one window of the plan; another system's pauses count too). A hit is a clue, not proof of a fault.auto_price.plan_watchin each charger's diagnostics:behind_check, the last look at a running period (when, the period, the energy the plan expected by then and the energy delivered, the decision:on_plan,behind_unconfirmed,replan,replanned_recently,held_by_spotnavwith what held it,start_settling,not_charging,car_ended,no_count,no_recent_reading,awaiting_reading,window_end_okorwindow_end_replan), andlearned_power, the power the car is learned to draw (kw), what it is for (subject: a car or the charger), the minutes and plug-ins it rests on, whether it is trusted and whether the plan counts on it (planned_with), andlearned_energy, the wall energy one percent of the planned car's battery is learned to take (kwh_per_percent, the median of the samples that agree), whether it is for an identified car (for_car), the samples of ended plug-ins it rests on (kwh,delta_percentand when, oldest first), the open plug-in's own sample that waits for its end (pending_sample), whether it is trusted, whether a target's need uses it (used), how many samples were discarded as unbelievable (discarded), and the start of the stretch being measured (stretch_start: level, when and the count then).day_recordsper site: the last three completed days as the actionspotnav.export_daywrites them (see Keep SpotNav's records), newest first, without the chargers' plug-ins (they are undersessions). About 50-60 kB a day.yield_stepping,solar_surplusandhybridin the site's diagnostics, per charger (version 7): the last yield-stepping verdict, the solar surplus state and the hybrid state, which the Capacity state sensor carried as attributes up to 1.14.3.
To check a saved bundle's charge-ownership recording offline, run .venv/bin/python tools/replay_bundle.py bundle.json in the integration's repository (no Home Assistant needed; --charger <name or id> picks one charger, --json gives machine output). For each charger it prints the core's counts, its coverage per event kind (version 6 and later), and, in a bundle before version 9, the disagreements and drift recorded then, replays the recorded events through today's pure core, and says whether the core now decides differently from the recording (or, before version 9, from the previous logic that ran beside it). A charger without the ownership or ownership_shadow block (a bundle from before version 5) is reported as having nothing to replay. The exit code is 1 when a replay differs.
Useful entities on each charger: Auto plan state, Auto execution state, Next planned charging start, Planned cost and Auto settings revision. On a site: Capacity state, Solar surplus and one Proposed current sensor per charger.
Capacity state carries what a person reads it for: reason, site_activity, measurement_mode, confidence, current_estimated, the membership conflicts, the measurement health, why load balancing is blocked, whether it is available and on, whether solar can run (solar_capable, solar_reason) and the car or home battery first setting (derived from the site's priority list). Proposed current carries the requested current, the setpoint, the allocation's state and reason, the charger measurement's health and the regulator's proposal and reason. The per-phase readings, their ages, the headroom figures, the limiting phase, the grid power and the per-charger solar, hybrid, yield-stepping, battery-probe and resume detail are in the site's diagnostics; they change with every meter reading. Both sensors are written only when what they show changes.
The cards
- The cards show "Configuration error", or SpotNav's cards are missing from the card picker, after an update. The integration runs, but the page still holds an old copy of the card. SpotNav gives every version of the card a new address, so a reload is normally enough:
- In a browser: reload the page with Ctrl+Shift+R (Cmd+Shift+R on a Mac).
- In the Home Assistant companion app: the app keeps its own copy of Home Assistant's pages, which a reload does not clear. Android: Settings, Companion app, Troubleshooting, Reset frontend cache. iPhone and iPad: Settings, Companion app, Debugging, Reset frontend cache. Then close the app fully and open it again.
- Still broken? Open Home Assistant in a browser on a computer. If the cards work there, it was only the app. If they are broken in the browser too, press F12, open Console, and send a picture of the red lines together with the diagnostics (Settings, Devices & services, SpotNav, the menu, Download diagnostics). The app has no console of its own.
Setting up
"No supported charger was found." The list of devices was empty. Set up the charger's own Home Assistant integration first, then add the charger here, or choose Manual. See Set up SpotNav.
"SpotNav cannot start or stop this charger. It can only be read." The charger's integration is known but has no control SpotNav can use. See supported hardware.
"The charger did not answer, so SpotNav cannot tell how its current is set." An OCPP charge point is asked how its current can be set, and it was not connected. Wait until it is connected and submit again, or choose how yourself.
"The charger's own control is still on." The charger's own smart, solar or load-balancing mode is on. Turn it off in the charger's integration or app and continue, or choose to continue anyway.
"The charger's own smart charging is on (Pure solar). It works against SpotNav." The card says this for as long as one of the charger's own modes is on, also after setup. Press Set to Default in the list (administrators), or change it on the charger's device page. Peblar ignores its Force single phase switch unless smart charging is Default, so solar charging stays on three phases while it is not. A Turn on button beside "The charger's own enable switch is off" turns Easee's enable switch on the same way.
A start is sent but the charger does not charge, or something else changes it back. Only one controller may drive a charger. Turn off the charger's own smart charging (Easee: its smart charging switch) and any other integration that controls it, such as EV Smart Charging. A window's start that does not take is sent again up to three times in its first ten minutes; the charger's diagnostics show them under
controller.window_start_retry(retries, and what the last one found inlast.result)."... was not sent, the charger is offline (its entities are unavailable)." The charger's integration has loaded, but the charger itself is not reachable (an OCPP charge point whose link is down). SpotNav decides again once it is back. A link that keeps dropping is logged once per outage (until it has stayed up for half an hour);
controller.owed_wait.waits_this_outagein the diagnostics counts the drops. In the first two minutes after Home Assistant starts (or SpotNav is reloaded) it is an info line, since an OCPP charger takes about a minute to reconnect, and a warning only if the charger is still offline two minutes later. "... the charger is not ready yet (its integration has not loaded)" is the same right after a restart, before the charger's integration is there: an info line, since it loads within seconds, and a warning only if it is still not ready two minutes later. While the charger last said no car is plugged in, an offline moment starts nothing at all."This charge control is already used by another SpotNav charger." A charge control or current number can belong to only one SpotNav charger.
"{name} and this charger are the same physical charger." Two SpotNav chargers share a Home Assistant device, a measured-current sensor, an OCPP connector or an Easee device, so they would send one charger conflicting commands. The setup refuses the second one. For two that already exist, the card names the other charger and Settings, System, Repairs lists the pair: remove one under Settings, Devices & services, SpotNav (the entry's menu, Delete). SpotNav never removes one for you. Two connectors of one charge point are two chargers and are not flagged.
A new charger was not added to the site. Only a charger whose wiring SpotNav can tell (three phases and exactly one measured-current source on its device) is offered to the site. Add it from the site's Configure.
A site has no charger. That is fine for a home with only a battery or heating: use the house card (and the heat card); their gear opens the site's settings. The charging card is shown per charger. To add one later: Settings, Devices & services, SpotNav, Add entry, Charger; it offers to join the site. The settings popover's Get started says the same and can be answered Not needed; there is no Repairs entry for it.
The site needs its meter chosen. When no grid meter is found, pick the entities yourself or skip and finish later under the site's Configure. See Set up SpotNav.
"Unknown error occurred" in a setup dialog. SpotNav hit an unexpected error. Open Settings, System, Logs, choose the menu (three dots) and Show full logs, search for
spotnav, and copy the whole traceback. Note your Home Assistant version and open an issue with both.Setting up a meter that updates every second is slow. The site's meter is read live only, and the Recorder's history is no longer searched for it (since 1.0.1). The only history search left is for a charger's own measured current: it covers the last two days and stops after ten seconds, so a very chatty sensor cannot hang the dialog.
Charging
- OCPP entities are unavailable after a restart. Give the charger time to reconnect. A window's start that could not be sent then is sent once the charger is back, for as long as the window is open.
- The wrong connector is used, or the current is not applied. See OCPP chargers. Choose the Charge Control switch for the outlet you use under the integration's Configure action.
- A remote start or stop is rejected. There may be no active transaction, or the connected vehicle is not requesting energy.
- The car does not take current. The charger offers current but the car asks for none (
SuspendedEV; Easee Ready to charge or Completed) below its target: the car has stopped its own charge, from its app, a schedule in the car, or a service linked to the car (an electricity company's smart charging, for example). Nothing the charger does clears that. For a Tesla on Tesla Fleet, Teslemetry or Tessie, at an OCPP or Easee charger, SpotNav starts the charge in the car once per plug-in when it is sure the Tesla is the car at that charger (starting the charge in the car); when that did not help, the status and a notification say Start the charge in the car's app. Otherwise start it in the car's app yourself. Check the car's own charging schedule and any service linked to the car too. - Nothing is planned. The card lists what is missing, for example the price area or the charging current. While tomorrow's prices are not published, SpotNav buys what the deadline requires now and plans the rest later.
- The plan is proposed but not applied. The card shows a newer proposal until it has been installed; check Auto execution state and whether automatic charging is paused.
- Prices are stale. If the area's source cannot be reached, the last successful fetch is used and the card says the prices are stale. They update by themselves once the source answers again.
- A charger starts or stops when it should not. The charge-ownership core decides who owns a charge on every charger. Download the debug info (card Settings, Support) and send it with an issue: it records the core's last events and the session each was decided from. When the core could not decide (a Repairs issue says so when it repeats), nothing automatic was sent at that moment; what you start or stop yourself still works.
Prices
Prices are missing
Since SpotNav 2.0 your Home Assistant fetches the prices itself; the SpotNav relay no longer delivers them (see Prices). An area with no source of its own gets no new prices. The card's Settings → Electricity price then shows a notice with the one step that gives it one, and once there is nothing priced for today Home Assistant raises the Repairs issue No electricity prices for …, which goes away by itself when prices are back.
- "Add Nord Pool" (Sweden, Norway, Denmark, Finland, the Baltic countries, Germany/Luxembourg, the Netherlands, Belgium, France, Austria, Poland, Romania, Bulgaria): the button opens Home Assistant's own dialog for the Nord Pool integration. The area and currency you pick there do not matter. "Use my ENTSO-E key instead" works too.
- "Nord Pool is added in Home Assistant but did not start": open the Nord Pool integration under Settings → Devices & services and look at its error; SpotNav follows it as soon as it is loaded.
- "Nord Pool from HACS is installed and replaces Home Assistant's built-in Nord Pool": the HACS integration has no action SpotNav can read prices from. Keep it and enter an ENTSO-E key in the card, or remove it and add Home Assistant's own Nord Pool.
- "Add your ENTSO-E key" (the other European areas): follow the how-to under the key's field. Access to ENTSO-E's API is granted by e-mail and can take a few days; until then the platform refuses the key.
- "ENTSO-E did not accept the saved key": the key was refused when it was saved or later. Generate a new one under My Account → Web API Access on transparency.entsoe.eu and enter it.
- "Add easyEnergy" or "Add Tibber" (the areas of their own tariffs): add that integration of Home Assistant's. "… is added in Home Assistant, but SpotNav gets no prices from it": open it and check that it has started; for Tibber also that its Electricity price sensor is on and in the area's currency.
- "Add PVPC" (Spain, regulated): add Home Assistant's PVPC integration.
- "Add Octopus Energy (HACS)" (Great Britain): install the Octopus Energy integration from HACS and add it with your account. "Octopus Energy found no meter on an Agile tariff" means the integration is there but your meter is not on Agile; SpotNav has no prices for a fixed or other tariff. "Your Octopus meter is in region …": choose that region as the area.
- "There is no source for prices in …": the area has no source SpotNav can use. Choose another area.
After an upgrade from 1.x, the days already stored keep showing until they run out, and they still count for the history profile and the charge history.
Vehicles
- A vehicle needs a decision. A device reports several battery readings or charge limits. Open the repair under Settings, System, Repairs and choose which reading to use.
- "The car's charge level can't be read." The car's level sensor reads
unavailableor nothing. SpotNav plans on from the estimate, the last reading or a full charge (target), so there is nothing to set. Check the car's own integration under Settings → Devices & services: a login that expired is the usual cause. When that integration asks for a new login, or failed to start, the status names it and offers a button there. - The charge-level sensor is wrong. In the card's vehicle settings choose another sensor, or set it back to automatic. The services
dismiss_vehicle,undismiss_vehicleandunconfirm_vehicledo the same by device id. They, andconfirm_vehicle_soc,confirm_charge_limitandunconfirm_charge_limit, are for administrators: a call by another user is refused, while an automation may call them.
Site
- The clock was set back. After a big step back (a time sync, a manual change), a safety stop or a battery re-arm is held for one gap from a minute after the step was seen, so it never waits out hours of a clock that was wrong. The minute lets a host without a clock battery (a Raspberry Pi after a power cut) boot on its old time and be set right by the network first, so the gap is not cut short. Nothing needs doing.
invalid_measurements. The chargers' measured currents together exceed the site's total on a phase. Usually a wrong sensor, a sensor mapped twice, or the wrong phase.- Load balancing cannot be turned on. The card says why: no commandable charger, a measurement that is missing, or a charger that belongs to more than one site.
- "L2 and L3 have no value (sensor.…)" or "L1 is older than 120 s." The card's status line and the site's measurement settings name the phases that make the site's measurement unusable and the sensors they are read from. No value means the sensor is missing, unavailable or not a current; older than the maximum age means it stopped reporting. Fix that sensor or the mapping; load balancing and solar wait until all three phases read.
- Measurements are old. Raise maximum measurement age only if the sensor really updates that slowly.
- The recorder database grew large. Up to 1.14.3 the site's Capacity state sensor was written with every meter reading, with attributes (ages, raw per-phase values) that differed each time, so each write stored a new attributes row: several gigabytes in a few days on a meter that reports every second. It is now written only when its state or attributes change, and excluding it from the recorder is no longer needed. The old rows go once they are older than the recorder's
purge_keep_days(10 by default); to reclaim the space at once, run the actionrecorder.purgewithrepack: true(Developer tools, Actions), orrecorder.purge_entitiesforsensor.<site>_capacity_stateand the site's Proposed current sensors followed byrecorder.purgewithrepack: true. A repack can take a while on a big database.
Phone and pairing
- Internet addresses need HTTPS. Plain HTTP works only for private local addresses and works only while the phone is on that network.
- A pairing request expires after five minutes. Start again on the phone.
- If a webhook id has leaked, remove the charger and add it again to generate a new one.