ASTRA Controllers - Tasmota Templates
Overview
ASTRA controllers come with pre-installed Tasmota firmware and hardware-specific templates. These templates are pre-configured for optimal performance with ASTRA hardware.
Available Templates
ASTRA R4A4 / R4D4 Series
4 Relays + 4 Isolated Inputs (AC/DC)
Template {"NAME":"ASTRA R4A4","GPIO":1,1,1,1,576,1,1,1,480,1,1,1,3232,3200,1,1,0,640,608,1,0,224,225,1152,0,0,0,0,227,226,160,161,162,0,0,163],"FLAG":0,"BASE":1}
Hardware Configuration:
- 4× Relay outputs (16A)
- 4× Isolated inputs (AC 90-240V or DC 5-90V depending on model)
- WiFi status LED
- Buzzer for alerts
- I2C expansion port
- RS/SPI port
ASTRA R4G8 Series
4 Relays + 8 GPIO Direct Inputs
Template {"NAME":"ASTRA R4G8","GPIO":1,1,1,1,576,1,1,1,480,32,33,34,3232,3200,1,1,0,640,608,1,0,224,225,1152,0,0,0,0,227,226,35,36,37,0,0,38],"FLAG":0,"BASE":1}
Hardware Configuration:
- 4× Relay outputs (16A)
- 8× GPIO direct inputs (3.3V logic)
- WiFi status LED
- Buzzer for alerts
- I2C expansion port
- RS/SPI port
How to Apply Templates
Method 1: Web Interface (Recommended)
- Connect to your ASTRA controller web interface
- Navigate to Configuration → Configure Other
- Paste the template in the Template field
- Check Activate
- Click Save
Method 2: Console Command
- Open Tasmota console or UART Serial port
- Paste the complete template command:
Template {"NAME":"ASTRA R4A4","GPIO":1,1,1,1,576,1,1,1,480,1,1,1,3232,3200,1,1,0,640,608,1,0,224,225,1152,0,0,0,0,227,226,160,161,162,0,0,163],"FLAG":0,"BASE":1}
Template {"NAME":"ASTRA R4G8","GPIO":1,1,1,1,576,1,1,1,480,32,33,34,3232,3200,1,1,0,640,608,1,0,224,225,1152,0,0,0,0,227,226,35,36,37,0,0,38],"FLAG":0,"BASE":1} - Activate with:
Module 0
After activate controller going to restart
GPIO Pin Mapping
ASTRA R4A4 / R4D4 Pin Functions
ASTRA R4G8 Pin Functions
Template Verification
After applying the template, verify the configuration:
- Go to Configuration → Configure Module
- Check that module type shows: Module 0 (Custom)
- Verify all GPIO assignments match the hardware
- Test each relay and input to confirm proper operation
Status 1 to view current GPIO configuration and verify the template was applied correctly.
Backup Configuration
To backup:
1. Go to
Configuration → Backup Configuration
2. Download the configuration file
3. Store it in a safe location
Troubleshooting
Template Not Applying
- Ensure you copied the complete JSON template
- Check for syntax errors in the JSON
- Try using console method instead of web interface
Incorrect GPIO Function
- Verify you selected the correct template for your hardware model
- Check module is set to Module 0 (Custom)
- Reapply the template and restart
Inputs/Outputs Not Working
- Verify template matches your hardware model (R4A4 vs R4G8)
- Check wiring connections
- Test with Tasmota console commands:
Power1 ON,Power1 OFF - For inputs, monitor with:
Status 8