Smart Plug Setup

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,035
Location
Durban - South Africa
Rating - 0%
0   0   0
I've had a quick look around and can't find a definitive, easy to find guide on how to set up "smart plugs / switches" on Reef-Pi.

Where I live (South Africa) the Sonoff devices are the most readily and most affordable smart devices. Now with Tasmota support, I want to start moving some equipment to them.

Can anyone give a brief rundown on setting one up? (Assuming it is flashed and running Tasmota already).

Apology if this has been discussed elsewhere already. If it has, please just point me to the Thread.

Thanks
 

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
As of now reef-pi supports tasmota, kasa hs300/103/110 and DLI Web Pro smart switches. I think only a specific version of kasa and tasmota is your option. To set this up, go to configuration -> devices -> add new device with appropirate type and configuration (it will be ip and port for tasmota ). After that, head to connector section and add outlets based on the new driver. Next associate the new outlet with an equipment under the equipment tab. Thats all.. from then on you can control the equipment directly or based on some ATP, pH, temperature control logic etc.

Let us know if you need any further help. It will be best to start tinkering with and share the errors/screenshots here so that we can help you out step by step.
sincerely
ranjib
 

C.Rebelo

New Member
View Badges
Joined
Oct 30, 2021
Messages
3
Reaction score
2
Location
London
Rating - 0%
0   0   0
on tasmota, i have a Sonoff dual R2 which has been flashed. i cant seem to find a way to control the second outlet. i cannot select anything other than 0 on reef-pi. am i missing something. at this moment i can only control the 1st (default) outlet
 

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Currently the tasmota driver only supports a single outlet . I personally don’t use it hence have no clue how diverse the available options are in terms of number of outlets
 

C.Rebelo

New Member
View Badges
Joined
Oct 30, 2021
Messages
3
Reaction score
2
Location
London
Rating - 0%
0   0   0
Currently the tasmota driver only supports a single outlet . I personally don’t use it hence have no clue how diverse the available options are in terms of number of outlets
not sure for other manufactures, but for Sonoff there are single, dual and even 4 outlet options. From little knowledge that I have on tasmota, it just a simple change in the http command to signal which outlet.

http://<ip>/cm?cmnd=Power%20On or http://<ip>/cm?cmnd=Power1%20On - powers default relay - normally outlet 1
http://<ip>/cm?cmnd=Power2%20On - powers outlet 2
http://<ip>/cm?cmnd=Power3%20On - powers outlet 3 and so on

not sure if this would be an easy thing to add to reef-pi but would be great.

on a similar subject, tasmota can also be protect behind an account. I am not using this but some people may.
http://<ip>/cm?user=<username>&password=<password>&cmnd=Power%20On
 

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
not sure for other manufactures, but for Sonoff there are single, dual and even 4 outlet options. From little knowledge that I have on tasmota, it just a simple change in the http command to signal which outlet.

http://<ip>/cm?cmnd=Power%20On or http://<ip>/cm?cmnd=Power1%20On - powers default relay - normally outlet 1
http://<ip>/cm?cmnd=Power2%20On - powers outlet 2
http://<ip>/cm?cmnd=Power3%20On - powers outlet 3 and so on

not sure if this would be an easy thing to add to reef-pi but would be great.

on a similar subject, tasmota can also be protect behind an account. I am not using this but some people may.
http://<ip>/cm?user=<username>&password=<password>&cmnd=Power%20On
we have to update the driver to make this configurable, and then it should work out fine. It will be nice if you can create github issue with this detail. If nothing, we have the details we need to implement it. and given this is a small change may be one of us can pick it up when we have time. We'll still need some testing from yourside though, since I am not using it,
 

C.Rebelo

New Member
View Badges
Joined
Oct 30, 2021
Messages
3
Reaction score
2
Location
London
Rating - 0%
0   0   0
we have to update the driver to make this configurable, and then it should work out fine. It will be nice if you can create github issue with this detail. If nothing, we have the details we need to implement it. and given this is a small change may be one of us can pick it up when we have time. We'll still need some testing from yourside though, since I am not using it,
Great

create one in github - https://github.com/reef-pi/reef-pi/issues/1622#issue-1042203307

will be happy to test when implemented
 

Wolfw28

Active Member
View Badges
Joined
Mar 13, 2022
Messages
201
Reaction score
139
Location
Myakka City
Rating - 0%
0   0   0
@Ranjib I would really like it if you would look into updating Tasmota drivers.Somewhere i saw you mention possible adding ESP32 to Reef-Pi if that the case and your serious about it then you really need to take a good look at Tasmota it is the easiest thing i have found for config ESP32/8226 boards and smart devices with those chips. I have 3 NodeMcu/8226 each with 16 GPIO pins but i can only use 1 pin on each NodeMCU but the driver will only allow you to use one GPIO pin, but you can use multiple NodeMCU because each has it own IP addresses. Just think about it with a few line of code add to the Reef-pi driver to able to interpret and few line of code from Tasmota i could have 48 possilde inputs or outputs wireless inputted into Reef-pi. This would open up a whole word of opportunities to reef-pi espicall with people with multiple tanks and the coast of pi's these days. you can by a NodeMCU or ESP 32 for under 12.00us on Amazon and even cheaper if you buy multiples at on time. Config these boards is simple enough that most people including myself cane figure out. So please i beg you take a look at Tasmota. I would be willing to be a beta tester i have 2 pie and there tank, on just being a quarantine tank with on fish that if the whole system cashed because of a new Reef-Pi config/driver it would mater there would be no lose its the perfect test tank.Please let me know i'm sure once more people found out about the uses and possiblily of using Tasmota and ESP32/8226 and the doors it opens you will get alot more request.
 

Tentacled trailblazer in your tank: Have you ever kept a large starfish?

  • I currently have a starfish in my tank.

    Votes: 64 31.5%
  • Not currently, but I have kept a starfish in the past.

    Votes: 53 26.1%
  • I have never kept a starfish, but I hope to in the future.

    Votes: 42 20.7%
  • I have no plans to keep a starfish.

    Votes: 42 20.7%
  • Other.

    Votes: 2 1.0%
Back
Top