Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
- **Home automation**: Use as a data source for automation triggers
15 changes: 10 additions & 5 deletions examples/fcsp_charging_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -54,15 +54,20 @@ 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': {
'name': 'Unknown State 2',
'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():
Expand Down Expand Up @@ -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}")
print(f"❌ Failed: {e}")
6 changes: 3 additions & 3 deletions examples/fcsp_state_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': {
Expand Down Expand Up @@ -215,4 +215,4 @@ def main():
sys.exit(1)

if __name__ == "__main__":
main()
main()