User Tools

Site Tools


doc:appunti:hardware:sonoff_basic

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
doc:appunti:hardware:sonoff_basic [2021/01/20 17:11] – created niccolodoc:appunti:hardware:sonoff_basic [2025/06/09 17:03] (current) – [Timezone] niccolo
Line 1: Line 1:
 ====== Internet of Things: Sonoff Basic R2 ====== ====== Internet of Things: Sonoff Basic R2 ======
  
-Il vantaggio di quesi **power switch intelligenti** marchiati **Sonoff**, è che sono facilmente programmabili con il firmware **[[https://tasmota.github.io/docs/|Tasmota]]**. Tasmota è un progetto **free ed open source** che consente di realizzare la propria infrastruttura **IoT** totalmente indipendente da qualunque architettura cloud di terze parti. In pratica è possibile gestire i dispositivi basati sul **chip ESP8266** utilizzando protocolli aperti (**MQTT**) e creando il proprio server cloud, ad esempio con il broker MQTT **mosquitto**, ed utilizzando i più vari MQTT client, come ad esempio **[[https://www.home-assistant.io/|Home Assistant]]**.+{{:img:ita.png?nolink&36 |}} Il vantaggio di quesi **power switch intelligenti** marchiati **Sonoff**, è che sono facilmente programmabili con il firmware **[[https://tasmota.github.io/docs/|Tasmota]]**. Tasmota è un progetto **free ed open source** che consente di realizzare la propria infrastruttura **IoT** totalmente indipendente da qualunque architettura cloud di terze parti. In pratica è possibile gestire i dispositivi basati sul **chip ESP8266** utilizzando protocolli aperti (**MQTT**) e creando il proprio server cloud, ad esempio con il broker MQTT **mosquitto**, ed utilizzando i più vari MQTT client, come ad esempio **[[https://www.home-assistant.io/|Home Assistant]]**.
  
-The main advantage of **Sonoff** branded **smart power switches** is that they are easily programmable with the **[[https://tasmota.github.io/docs/|Tasmota]]** firmware. Tasmota is a free and open source software that allows you to create your own **IoT** infrastructure totally independent from any third-party cloud architecture. In practice, it is possible to manage devices based on the **ESP8266 chip** using open protocols (**MQTT**) and creating your own cloud server, for example with the MQTT **mosquitto** broker, and using the most various MQTT clients, such as **[[https://www.home-assistant.io/|Home Assistant]]**.+{{:img:uk.png?nolink&36 |}} The main advantage of **Sonoff** branded **smart power switches** is that they are easily programmable with the **[[https://tasmota.github.io/docs/|Tasmota]]** firmware. Tasmota is a free and open source software that allows you to create your own **IoT** infrastructure totally independent from any third-party cloud architecture. In practice, it is possible to manage devices based on the **ESP8266 chip** using open protocols (**MQTT**) and creating your own cloud server, for example with the MQTT **mosquitto** broker, and using the most various MQTT clients, such as **[[https://www.home-assistant.io/|Home Assistant]]**.
  
 {{.:sonoff:sonoff-basic.jpg?360|The Sonoff Basic Smart Switch}} {{.:sonoff:sonoff-basic.jpg?360|The Sonoff Basic Smart Switch}}
Line 41: Line 41:
     * **Disconnect** the USB adapter from the PC.     * **Disconnect** the USB adapter from the PC.
  
-This is the concise list of commands I used (remember: **each command** is executed after the Sonoff device is **booted in programming mode** as explained above!):+This is the concise list of commands I used (remember: **all the commands** are executed after the Sonoff device is **booted in programming mode** as explained above!):
  
 <code> <code>
Line 232: Line 232:
 {"POWER":"ON"} {"POWER":"ON"}
 </code> </code>
 +
 +===== Timezone  =====
 +
 +To set the correct timezone for Italy, with the correct beginning of daylight saving time (DST) and return back to standard time (STD), you can use the following commands into the console (accessible from the main menu of the web interface):
 +
 +<code>
 +TimeZone 99
 +TimeDST 0,0,3,1,2,120
 +TimeSTD 0,0,10,1,3,60
 +</code>
 +
 +You may also want to set the proper geographic location, so that sunrise and sunset times can be correctly guessed:
 +
 +<code>
 +Latitude 43.2793
 +Longitude 11.1182
 +</code>
 +
 +For a full explanation of the commands, see the page **[[https://tasmota.github.io/docs/Commands/#management|Tasmota Commands]]**.
  
 ===== Web References ===== ===== Web References =====
doc/appunti/hardware/sonoff_basic.1611159112.txt.gz · Last modified: by niccolo