- Reorganized project: codesys/, docs/codesys|redesign|integration|reference/, scripts/ - CODESYS project and exports in codesys/ - Documentation index in docs/README.md - Redesign and light naming configuration - Water boiler control and safety design Co-authored-by: Cursor <cursoragent@cursor.com>
2.2 KiB
2.2 KiB
Quick Reference Guide
System Overview
- Control System: CODESYS on Raspberry Pi
- Automation: Node-RED
- Message Bus: MQTT (LXC container)
- Zigbee Bridge: Zigbee2MQTT
- Dashboard: Home Assistant
Quick Access
Service URLs
- Home Assistant: [To be filled]
- Node-RED: [To be filled]
- Zigbee2MQTT: [To be filled]
- MQTT Broker: [To be filled]
Important IPs
- Raspberry Pi (CODESYS): [To be filled]
- MQTT Broker: [To be filled]
Important Ports
- MQTT: 1883 (or 8883 for TLS)
- Node-RED: [To be filled]
- Home Assistant: [To be filled]
Common Tasks
Restart Services
# MQTT Broker (LXC)
lxc restart [container-name]
# Node-RED
systemctl restart nodered
# Home Assistant
[Command to restart]
# Zigbee2MQTT
[Command to restart]
Check Service Status
# MQTT
mosquitto_sub -h [broker-ip] -t '#' -v
# Node-RED
[Command]
# Home Assistant
[Command]
View Logs
- Node-RED: [Location]
- Home Assistant: [Location]
- Zigbee2MQTT: [Location]
- MQTT: [Location]
MQTT Topics
Key Topics
zigbee2mqtt/[device]/set- Control Zigbee devicezigbee2mqtt/[device]- Device statecodesys/[variable]- CODESYS variableshomeassistant/[entity]- Home Assistant entities
Device Control
Control Light via MQTT
mosquitto_pub -h [broker-ip] -t "zigbee2mqtt/[switch-name]/set" -m '{"state": "ON"}'
Control Relay via CODESYS
[Instructions]
Troubleshooting Quick Fixes
Light Not Responding
- Check Zigbee device status in Zigbee2MQTT
- Verify MQTT message flow
- Check Node-RED flow
- Verify CODESYS network variable
- Check relay state
MQTT Connection Issues
- Verify broker is running
- Check network connectivity
- Verify credentials
- Check firewall rules
CODESYS Not Communicating
- Check network variables configuration
- Verify Node-RED connection
- Check CODESYS runtime status
Emergency Procedures
Manual Override
[How to manually control devices if automation fails]
System Reset
[Procedure for resetting the system]
Status: Template - needs actual values and commands