- How To Get The Mac Address For Sonoff Windows 10
- How To Get The Mac Address For Sonoff X
- Mac Address Vendor Lookup
- How To Get Sonoff Mac Address
- How To Get The Mac Address For Sonoff Driver
- Mac Address Changer
I am trying to get the ip address of the sonoff setup as a sensor so i can display it in HA. I have tried: platform: mqtt name: 'IP Test' statetopic: 'tele/fishtank5heater/INFO2'.
- In the text box above in middle of URL.need to enter Event name created i.e Applet event name. In our casse witch is placed in 'index.html' file is 'sonoffoff' and 'sonoffon'. You can first check if we are able to switch on and off the actual device/bulb by clicking 'Test it' button in above screen shot.
- Be sure that the MAC of the device is not in the black list of your MAC management. The LED indicator flashes twice on repeated means you fail to connect to the server. Make sure Internet connection is working. Please contact your ISP and confirm our server address is not shielded: cn-disp.coolkit.cc (China Mainland).
Show MAC address in the App - MUCH NEEDED SIMPLE FEATURE
E W
I have many Sonoff devices, mostly basic switches. Once I name a device something I can no longer see the MAC address in the app. I also have several routers and APs. I would like to be able to give the devices a name in the router's database so I can identify which Sonoff is connected to what AP etc. It would be VERY USEFUL and probably very easy to supply the MAC address under device information in the phone app.
---
I also have several devices that work with the Smart Life app and it does show the MAC of each device. That has allowed me to name the devices in my router and monitor each one's status on my network.
So my request is to please improve the phone app by enabling it to show the MAC address of Sonoff devices. At it stands it is impossible to tell one from another when looking at the network unless I am missing a trick that will let me connect my device named Barn Light SW with a MAC address.
24 CommentsSorted by Oldest First
Meyknecht Werner
![How To Get The Mac Address For Sonoff How To Get The Mac Address For Sonoff](https://www.jannikarndt.de/blog/2018/01/pi/sonota_1.png)
I miss that too!!!!!
Absolutely show the MAC address in the APP!
Thanks for the POST!
Absolutely show the MAC address in the APP!
Thanks for the POST!
Sandokan
This feature it is a MUST HAVE. Plead add this into the APP please!
Thanks
E W
I noticed the Android app updated the other day and was hopeful that this feature had been added. Disappointed that is was not.
John Cosgrave
Yes, this feature is absolutely essential for managing a group of devices. Of course, I should have kept a record as I renamed each one, but now it's too late.
I've just spent a few hours using google WiFi to monitor traffic to see when IP got busy when repeatedly switched - eventually got the lot (and tagged them with a serial no and the last two digits of the MAC, so it should not be a doddle to match again if needed.)
Geoff Harders
Come on folks. This is not a difficult feature to include. Creates a lot of work to manage devices once they are connected if you cannot identify them at the router/switch level.
VINCENZO DELLE CAVE
PLEASE ADD THIS FEATURE. IT IS THE ONLY APP THAT DOESN'T SHOW DEVICE MAC ADDRESS
Vladimir Valda
Hi, I will also appreciate this feature that is very useful for managing the devices on router level.
Andre-jaeger
E W
They did it. The latest version of ewelink shows the MAC address under settings for each device.
Geoff Harders
I just checked each of my Sonoffs (10) and they are all sitting at 2.6.0 and it says that that is the latest firmware. I'm in Australia, maybe they are rolling out the updates to regions in sequence.
Gira homeserver vmware.
EW can you please tell me what firmware you have on your devices?
Meyknecht Werner
There is no MAC address to see in the 2.6.0 version!Also not in the 2.7.0 with the 4 channel.ITEAD we urgently need this!!!!
E W
My devices are running firmware version 2.6.0 but that has nothing to do with showing the MAC address. The key to that is your ewelink version. Make sure you have the latest. I am running Android 3.5.6.
Meyknecht Werner
Geoff Harders
Thank you E W.After forcing an update on my Android devices to V3.5.6, I was delighted to see the MAC addresses at the end of the list for devices.Thank you to the people at ITEAD
Normally the Sonoff switches don’t support MQTT but you can buy flashed devices that run the Tasmota firmware that does.
The Sonoff-Tasmota firmware provides three interfaces: MQTT, web and serial that can be used for controlling the switch.
In this tutorial I will cover basic setup of the Sonoff Tasmota MQTT Basic Switch and how to use MQTT to control and configure the switch.
Control Button
There is just a single button that is used to control the switch.
It can be used to manually toggle the switch on/off or to place into various configuration mode depending on how often it is pressed.
This link here has an overview of the button options.
Switch Configuration
There are two steps to the configuration:
- Wi-fi Setup
- MQTT Client configuration
Wi-Fi Setup
To configure the Tasmota switch you need to connect it to a Wi-Fi network.
The switch connects to a Wi-Fi network just like you mobile does and so s you will need to configure the SSID and password of that network.
There are several ways of doing this and the configuration methods are covered here under button usage
The easiest method is to use WPS followed by the android App.
If you use the manual method 4 short presses then note the following:
With this option the switch starts as a Wireless Access point. The SSID on mine was sonoffbasic-1122.
You then need to connect a computer to this access point and go to the IP address 192.168.4.1.
Note corrected from 192.168.1.4
You can then enter the SSID and password of the Wi-Fi network you will be connecting the device to.
When you enter this information into the webpage the switch will restart, connect to the Wi-Fi network and acquire an IP address.
Now in order to configure it further you will need to know the IP address it has acquired. Random local disk e.
This isn’t as easy as it sounds but the device name on the network seems to be set to the same as the access point.
So you could try to ping this network name which should give you the IP address.
On my network the BT Home Hub displays all connected devices and was able to find the device IP address there. (screenshot below).
Configuring MQTT
The switch will start as an MQTT client and also a web server.
Initial device configuration is done via the web server. To access the configuration page go to
http://Device-IP/cn e.g
Click on configure MQTT button and you should see the screen similar to the one below:
You need to enter:
- The IP address or domain name of the MQTT broker
- The Port (default 1883)
- Client – This is used as the client -id and needs to be unique
- Username – Optional
- Password – Optional
- Topic – The client will publish and subscribe on this topic. The name should be meaningful.
- Full Topic -Defaults to topic/prefix -prefix is stat,cmnd or tele see below under MQTT default topics.
Note: You can use an external broker like test.mosquitto.org but it is better to use a local one. See installing mosquitto or installing mosca on node-red
When finished save the configuration and the switch should restart.
Sonoff MQTT Topics
Sonoff will subscribe to topics to receive control commands . It will also publish status information to topics.
Deciding on the topic structure is an important part of the configuration.
Each Sonoff device has a unique name which you configure in the topic section ( shown above).
This name will reflect the use of the device and should be meaningful e.g
main-light, outside-light etc
The prefix is either cmnd, stat or tele and the choice is usually
prefix +topic (%prefix%/%topic%/) or topic+prefix (%topic%/%prefix%/).
examples:
tele/main-light/ or main-light/tele Jr typing tutor crack version.
Using the prefix as the first part of the topic makes it easier to subscribe to multiple sonoff devices using:
tele/#, stat/# and cmnd/# options
Another option and my preferred option is to add your own prefix.
So if all the Sonoffs were used in your house you could use the topic hierarchy Digital persona sdk for windows free download.
house/prefix/topic or house/topic/prefix
now you can subscribe to all Sonoff devices using house/#
In this case I prefer house/topic/prefix.
To configure that use:
house/%topic%/%prefix%/
Starting Sonoff
On start the Sonoff device will subscribe to several topics. The exact topics depend on how you have structured the topic hierarchy. Here we are using the structure house/topic/prefix:
- house/main-light/cmnd/#
- house/main-light-1/cmnd/#
- house/sonoffs/cmnd/#
where
- main-light=topic name
- main-light-1= the client name or fallback topic
- sonoffs is the group name.
It also publishes its status and a Last will message wth the retained message flag set.
- house/main-light/stat/POWER ON
- house/main-light/tele/LWT online
Below is a screen shot showing the messages sent by a sonoff device starting up.
Controlling the Switch
You can control the switch i.e turn it on/off using either http or MQTT.
This is important to note as some systems may require http and if you have an existing control system that uses http then it might be easier to use that rather than going to MQTT.
This tutorial will mainly cover MQTT but I will also be covering http in another tutorial.
Turning on/off using mqtt
To turn it on/off you publish to the cmnd topic
The exact topic will depend on how you have set the topic structure. Below I use topic/prefix structure so to turn the device sonoff-light on and off I use the topic:
sonoff-light/cmnd/POWER1
With message on or off (case insensitive)
In the example below show how to so it using the mosquitto_pub client.
Turning on/off using http
You can use the curl command or easier still a web browser.
Enter the following
How To Get The Mac Address For Sonoff Windows 10
http://sonoff ip address/cm?cmnd=Power%20On
my ip address is 192.168.1.134 so I enter
http://192.168.1.134/cm?cmnd=Power%20On
Note: %20 is a space.
MQTT Default Topic Prefixes
The switch publishes and receives information on several topic prefixes, they are:
Topic | Sent by | Use |
---|---|---|
cmnd | PC,Smart Phone using an MQTT client | To control the Sonoff,set configuration and get status information |
stat | Sent by the Sonoff | Sent in response to a command |
tele | Status information | Report status information at set intervals |
The above topics are prefixed with the switch topic e.g.
topicbase/stat/
MQTT Commands and Responses
Besides turning the switch on and off, commands can be used to set various settings like the MQTT broker, port retain flag etc and the get information about the switch.
The switch uses a command response structure. Each command is acknowledged with a response.
MQTT commands use the topic structure:
Dji ronin m assistant for mac. topicbase/cmnd/COMMAND
the result of the command uses the topic
topicbase/stat/RESULT Far cry 4 third person mod.
The result is contained in the message payload.
The screen shot below shows the command response messages for setting the MQTT retain flag on the mqtt client.
The screen shot below show the status messages that the Sonoff sends at regular intervals,
Setting the Group Topic
A collection of devices can be controlled by setting them to use the same group topic.
If our devices used the group topic housesonoffs for example we could turn a device on or off using:
house/housesonoffs/cmnd/POWER1 with message on or off
To set the group topic for a device use:
topic house/sonoff-light/cmnd/grouptopic with message group name. As shown below:
You should note that setting a group topic causes the switch to restart as it needs to subscribe to the new topic.
Controlling Using Python Demo Script
How To Get The Mac Address For Sonoff X
If you use python I have written a short demo script that you might find useful. J hus album download. You can download it below
Mac Address Vendor Lookup
Notes
How To Get Sonoff Mac Address
Because changing certain parameters results in a reboot you can change several parameters in one command using the backlog topic see MQTT Features for more details.
Resources
- Good video on flashing Sonoff and setup
How To Get The Mac Address For Sonoff Driver
Related Tutorials:
Mac Address Changer
[Total: 9 Average: 5]