CATALOG

This is an article about solutions for the intelligent transformation of home distribution boxes. The focus is on integrating the "Thingboot 60A Intelligent Power Protection Switch" into your existing project.

Because it is for practical use, I will write it in a more colloquial manner and try to break it down as detailed as possible.

1. The sense of sight right out of the box: What can this thing do?

Brothers, what are we most afraid of when we change the home distribution box? Afraid of tripping and having to dig through the electrical box in the dark, afraid of forgetting to turn off electrical appliances when going out, and even more afraid of high-power appliances burning circuits without anyone noticing.

thisThingboot 60A intelligent high power circuit breaker(Model UNI-DLQ-M-60A), to put it bluntly, it is the "smart version" of the ordinary main gate in your home..

The most fragrant thing about it is:

  • Thief can resist:Rated 60A current, resistive loads (water heaters, light strips) can reach12000W. As long as your home is not a factory, everything is basically covered.

  • Open interface:It does not take the detour of closed small programs and directly providesHTTP interface. This means that as long as you can type code, you can directly handle it whether you are writing an app, making a web page, or setting up a Home Assistant..

  • Easy to install:It is directly stuck on the standard guide rail and replaces the original old-fashioned circuit breaker. No additional training is required for electricians.

2. Hard-core wiring: Put the "brain" into the electrical box

Friendly reminder: Be sure to pull down the main switch at home before taking action! Take a pen and test it! Safety first!

This device isGuide rail typeInstallation, directly clamped on the bottom rail of the distribution box.

  1. Wiring logic:It is an "electronic switch".

    • Input:Connect the live wire (L) and neutral wire (N) from the outside mains power.

    • Output:Connect to your home's load wires.

    • To put it simply: the FireWire goes into this box, comes out, and then connects to the original bus in your home.

  2. Attention to details:

    • Since it is a large current of 60A,The terminal blocks must be tightened, virtual connection fever is no joke.

    • Its shell is made of flame-retardant PC plastic, and its safety is no problem, but leave a place for it in the distribution box (the size is 36mm wide, which is the width of 2P).

3. Core docking: How to write code to make it "move"?

This is the part that we tech geeks are most concerned about. Thingboot is a more conscientious platform and the API is free..

We need to control it, mainly by calling itHTTP interface.

1. Preparation (get the keys)

In the Thingboot background you will get three key strings:

  • AppID: The ID number of your project.

  • AppSecret: The password of your project (don’t leak it to the front end).

  • Device ID: The unique ID of your circuit breaker is affixed to the device casing..

2. Signature calculation (a little circuitous, but very standard)

In order to prevent others from tampering with your main gate, its interface comes with signature verification (Sign). The generation rules are:sign = md5(md5(developer password) + timestamp)Demonstration in Python is:

3. Practical combat: remotely "break" the 60A gate

Let's assume you want to remotely turn off the main power when you go out.

  • Request addresshttps://api.thingboot.com/{yourAppID}/device/control/

  • parameter

    • device:your circuit breaker ID

    • power1(Power on/Close) or0(Power outage/opening)

    • sign: The signature just calculated

    • ts: timestamp

For example (using Python's Requests library):

4. How to integrate capabilities into your "project"?

Since you are asking about "connecting to the project", it must be more than just sending a request manually.

Scenario 1: Connecting with Home Assistant/Node-RED

This is a favorite among DIY players. Since it supports HTTP, you don't need to write complicated plug-ins at all.

  1. Drag one in Node-REDHTTP Requestnode.

  2. Method selectionGET, fill in the complete address with signature in the URL.

  3. Set a timer (e.g. 8 a.m. every day).

  4. In this way, your water heater or charging pile can be powered on and off at regular intervals, or linked through sensors.

The second scenario: docking your self-built APP/mini program

If you are making a smart home APP and want to add this function, the logic is usually as follows:

Backend (the safest way):Try not to store AppSecret directly on the front end (mobile phone), it is too dangerous.Correct posture:The user clicks "Close the main gate" on the mobile APP -> Send instructions to your backend server -> Your backend server calculates the signature and calls Thingboot API -> Thingboot pushes it to the device ->"Click", power off.

Advanced gameplay (MQTT):If you feel that HTTP polling or delay is large, Thingboot also supports MQTT..

  • Topicapi/{AppID}/device/control

  • Payload: Bring your device ID and instructions.This method is more real-time and suitable for scenarios that require rapid feedback (such as industrial-level linkage).

5. A few heart-wrenching "pitfall avoidance" guides

  1. Regarding inductive loads (special attention!):It is clearly written in the document that although it is rated at 12000W, if it isMotors, LED light strips, energy-saving lampsFor this kind of inductive or capacitive load, the actual load capacity is controlled at2000Wwithin.Solution: If it is to control the lighting of the whole house, no problem; if it is to control the outdoor unit of the central air conditioner, still use this 60A relay to control the AC contactor of the outdoor unit, do not directly carry a large inductor.

  2. Status synchronization problem:Calling the HTTP interface to issue a command, returning 200 only means "the cloud has received it", but does not mean "the device has really tripped" (what if the device's WiFi happens to be disconnected?).Solution: For scenarios with high security requirements, be sure to turn on its "asynchronous message push" and wait until the device reports a confirmation signal of "I have been disconnected" before "Power off" is displayed on your side.

  3. Distribution network (WiFi configuration):This thing is installed in the corner of the house (in the electrical box), and the metal casing may block the signal a little. Remember to configure it in the console with a strong signal2.4G WiFi, it does not support 5G.

  4. Manual operation:The buttons on this circuit breaker can be customized or shielded. If you are worried about the elderly at home pressing and playing or children accidentally touching it, you can turn off the "manual closing" function of the hardware button in the background and only allow remote control, thus turning it into a pure remote control module.

6. Summary

Integrating Thingboot’s 60A smart circuit breaker into the project actually means"Physical replacement" + "Interface call"Take two steps.

physically, it is the replacement of your main gate;logically, it is an obedient switch that can say "on" or "off" via HTTP. As long as you figure out the signature algorithm, all that's left is to write business logic.

In this way, your project is not just about controlling a few light bulbs, but directly controlling the entire house.Total power lifeline. Whether it is to achieve "one-button power-off when leaving home" or to monitor the current of the whole house, this solution is solid enough.