Sonoff-Tasmota + Ubidots

160 views
Skip to first unread message

o o

unread,
Jun 12, 2019, 11:31:31 AM6/12/19
to SonoffUsers
Hi everyone
Sorry very new to this so please excuse any ignorance

I have several IoT devices that push data to ubidots.com
Id like to use this data to control a Sonoff basic relay
Is this something i can achieve using Sonoff-Tasmota?

Any pointers on where to start?

Thanks in advance
o o

Philip Knowles

unread,
Jun 12, 2019, 11:37:57 AM6/12/19
to o o, SonoffUsers

Almost certainly. Read this page

https://github.com/arendst/Sonoff-Tasmota/wiki/Commands

it explains the command structures

However, the reason most of us are using Tasmota is to move away from cloud based solutions and use local control.

 

Regards

 

Phil K

 

Sent from Mail for Windows 10

--
You received this message because you are subscribed to the Google Groups "SonoffUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/7142d045-f131-48d9-a40f-26246327af62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

 

o o

unread,
Jun 12, 2019, 12:12:11 PM6/12/19
to SonoffUsers
Thanks Phil

So it looks like i can configure the Sonoff using MQTT using the settings found at Ubidots here

This should then subscribe the Sonoff to Ubidots (the broker)?
Any state changes (on/off) at he Sonoff will be communicated up to the broker?
Ubidots, via its logic can then tell the (Ubidots) broker to change the power state at the Sonoff?

Sorry if i'm being dumb?!
Just trying to understand the logic
Thanks

Philip Knowles

unread,
Jun 12, 2019, 12:16:10 PM6/12/19
to o o, SonoffUsers

Essentially yes. MQTT will send the cmnd/Power 1 to the device and switch it on and transmit data to the ubidots.

 

Regards

 

Phil

 

Sent from Mail for Windows 10

 

From: o o
Sent: 12 June 2019 17:12
To: SonoffUsers

--

You received this message because you are subscribed to the Google Groups "SonoffUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.

o o

unread,
Jul 11, 2019, 4:46:35 AM7/11/19
to SonoffUsers
Ok
So the problem i now have is the length of the username field
Sonoff-Tasmota 6.6.0 currently has a username character limit of 32 chars
The username (token) Ubidots requires you to use is 35 chars
I appreciate storage space is at premium in the firmware but...

Am i going to have to compile my own build?

Regards

On Wednesday, 12 June 2019 17:16:10 UTC+1, Philip Knowles wrote:

Essentially yes. MQTT will send the cmnd/Power 1 to the device and switch it on and transmit data to the ubidots.

 

Regards

 

Phil

 

Sent from Mail for Windows 10

 

From: o o
Sent: 12 June 2019 17:12
To: SonoffUsers
Subject: Re: Sonoff-Tasmota + Ubidots

 

Thanks Phil

 

So it looks like i can configure the Sonoff using MQTT using the settings found at Ubidots here

 

This should then subscribe the Sonoff to Ubidots (the broker)?

Any state changes (on/off) at he Sonoff will be communicated up to the broker?

Ubidots, via its logic can then tell the (Ubidots) broker to change the power state at the Sonoff?

 

Sorry if i'm being dumb?!

Just trying to understand the logic

Thanks

 

--
You received this message because you are subscribed to the Google Groups "SonoffUsers" group.

To unsubscribe from this group and stop receiving emails from it, send an email to sonof...@googlegroups.com.

o o

unread,
Jul 11, 2019, 10:54:55 AM7/11/19
to SonoffUsers
I have ended up daemonising a python script that subscribes to "tele/+/SENSOR" on my mqtt broker.
This then publishes the data to the appropriate device name on Ubidots.
Kind of acting as a proxy for "tele/+/SENSOR" to Ubidots
It will do for now
;)
Reply all
Reply to author
Forward
0 new messages