diff --git a/examples/README.md b/examples/README.md index 86037af..af2177d 100644 --- a/examples/README.md +++ b/examples/README.md @@ -239,7 +239,7 @@ python examples/fcsp_state_monitor.py --config /path/to/config.json The monitor recognizes these device states: - **CS00** 🟢 - Available (No vehicle connected) - **CS01** 🟡 - Connected (Not Charging) -- **CS02** 🔋 - Charging (Vehicle connected and charging) +- **CS02** 🔋 - Power Transfer (Vehicle connected and either charging, or power transfering to home - State depenedent on presense of Home Integration System) - **CS03** 🔴 - Error/Fault (Error condition) ### Perfect For @@ -248,4 +248,4 @@ The monitor recognizes these device states: - **Debugging**: Identify when and how state transitions occur - **Integration testing**: Verify state changes during development - **Logging**: Capture state change events for analysis -- **Home automation**: Use as a data source for automation triggers \ No newline at end of file +- **Home automation**: Use as a data source for automation triggers diff --git a/examples/fcsp_charging_state.py b/examples/fcsp_charging_state.py index a0f48d5..5ac276b 100755 --- a/examples/fcsp_charging_state.py +++ b/examples/fcsp_charging_state.py @@ -30,8 +30,8 @@ class FCSPChargingStates: 'connected': True }, 'CS02': { - 'name': 'Charging', - 'description': 'Vehicle connected and actively charging', + 'name': 'Transferring Power', + 'description': 'Vehicle connected and power transferring If no inverter, station is charging. If Inverter connected, power direction depends on Inverter state', 'icon': '🔋', 'charging': True, 'connected': True @@ -54,8 +54,8 @@ class FCSPChargingStates: 'icon': '💤' }, '1': { - 'name': 'Active', - 'description': 'Inverter possibly active (need confirmation)', + 'name': 'Power Cut', + 'description': 'Power cut detected. Inverter preparing to power home', 'icon': '⚡' }, '2': { @@ -63,6 +63,11 @@ class FCSPChargingStates: 'description': 'Need to observe this state', 'icon': '❓' } + '5': { + 'name': 'Backup Power Active', + 'desctription': 'Power cut in progress, Inverter providing power to home', + 'icon': '🏠' + } } def get_enhanced_charging_status(): @@ -338,4 +343,4 @@ def test_state_transitions(): print("✅ Real-time monitoring of vehicle connection and charging status") except Exception as e: - print(f"❌ Failed: {e}") \ No newline at end of file + print(f"❌ Failed: {e}") diff --git a/examples/fcsp_state_monitor.py b/examples/fcsp_state_monitor.py index ab3a4fb..ec9ac41 100755 --- a/examples/fcsp_state_monitor.py +++ b/examples/fcsp_state_monitor.py @@ -25,8 +25,8 @@ 'icon': '🟡' }, 'CS02': { - 'name': 'Charging', - 'description': 'Vehicle connected and actively charging', + 'name': 'Transferring Power', + 'description': 'Vehicle connected and actively either charging, or powering home', 'icon': '🔋' }, 'CS03': { @@ -215,4 +215,4 @@ def main(): sys.exit(1) if __name__ == "__main__": - main() \ No newline at end of file + main()