Skip to Content

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)

json
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

json
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


  1. Connect to your ASTRA controller web interface
  2. Navigate to Configuration → Configure Other
  3. Paste the template in the Template field
  4. Check Activate
  5. Click Save
Follow controller hardware configuration     See more
Success
Controller will restart automatically and apply the new template configuration.


Method 2: Console Command

  1. Open Tasmota console or UART Serial port
  2. Paste the complete template command:
bash for  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}                                                
bash for  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}        
  1. Activate with:
bash
Module 0                                                

After activate controller going to restart

Warning
After factory reset, the hardware template must be reapplied to restore proper functionality.



GPIO Pin Mapping


ASTRA R4A4 / R4D4 Pin Functions


ASTRA R4G8 Pin Functions

Danger
R4G8 GPIO Inputs: Maximum voltage is 3.3V. Exceeding this voltage will permanently damage the controller!



Template Verification

After applying the template, verify the configuration:

  1. Go to Configuration → Configure Module
  2. Check that module type shows: Module 0 (Custom)
  3. Verify all GPIO assignments match the hardware
  4. Test each relay and input to confirm proper operation
Tip
Use the Tasmota console command Status 1 to view current GPIO configuration and verify the template was applied correctly.



Backup Configuration

Important: Always backup your configuration before making changes!

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

  1. Verify template matches your hardware model (R4A4 vs R4G8)
  2. Check wiring connections
  3. Test with Tasmota console commands: Power1 ON, Power1 OFF
  4. For inputs, monitor with: Status 8



Additional Resources

Note
For custom GPIO configurations or advanced features, consult the Tasmota documentation or contact ASTRA technical support.