项目作者: sam-kamerer

项目描述 :
The tool for work with Sonoff devices (Basic R3/RFR3/Mini) in the DIY MODE.
高级语言: Go
项目地址: git://github.com/sam-kamerer/sonoff-diy.git
创建时间: 2020-01-06T01:57:46Z
项目社区:https://github.com/sam-kamerer/sonoff-diy

开源协议:BSD 3-Clause "New" or "Revised" License

下载


sonoff-diy

GitHub release (latest SemVer)
GitHub All Releases
GitHub go.mod Go version
GitHub top language
GitHub code size in bytes

Sonoff-diy is a command-line tool for controlling Sonoff devices in DIY mode. It allows you to discover devices, print device information, switch device state, set power on state, set sleep timer, print WiFi signal strength, set WiFi SSID and password, unlock OTA flashing, and flash firmware over the air.

The tool is easy to use and can be used from the command line. To get started, simply install the tool and then run the discover command to discover all of your Sonoff devices. Once you have discovered your devices, you can use the other commands to control them.

For example, to switch the state of a device, you would use the switch command. To print the device information, you would use the device-info command. And to set the WiFi SSID and password, you would use the wifi-config command.

The tool is also very flexible and allows you to customize the behavior of each command. For example, you can set the device IP address, port, and device ID. You can also enable debug mode to get more information about the tool’s operation.

Overall, sonoff-diy is a powerful and versatile tool for controlling Sonoff devices in DIY mode. It is easy to use and can be customized to meet your specific needs.

Here are some additional benefits of using sonoff-diy:

  • It is free and open source.
  • It is cross-platform and can be used on Windows, macOS, and Linux.
  • It is constantly being updated with new features and bug fixes.

If you are looking for a powerful and versatile tool for controlling Sonoff devices in DIY mode, then sonoff-diy is the perfect choice for you.

  1. $ sonoff-diy --help
  2. NAME:
  3. sonoff-diy - The tool for work with Sonoff devices (Basic R3/RFR3/Mini) in the DIY MODE
  4. USAGE:
  5. sonoff-diy [global options] command [command options] [arguments...]
  6. VERSION:
  7. v1.2.2
  8. COMMANDS:
  9. discover, d Discover devices
  10. device-info, di Print specified device info
  11. switch, sw Switch device state
  12. power-on-state, pos Sets power on device state
  13. sleep-timer, st Sets sleep timer
  14. wifi-signal, wfs Print the WiFi signal strength of the specified device
  15. wifi-config, wfc Sets the WiFi SSID and password for specified device
  16. unlock-ota, uo Unlocks ability for flash firmware over the air for the specified device
  17. flash-firmware, ff Flashing the firmware over the air to the specified device
  18. help, h Shows a list of commands or help for one command
  19. GLOBAL OPTIONS:
  20. --ip value sets the device ip address (default: "127.0.0.1")
  21. --port value sets the device port (default: 8081)
  22. --device-id value sets the device id (optional)
  23. --debug sets the debug mode on (default: false)
  24. --help, -h show help
  25. --version, -v print the version