Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 1

Sonoff basic


wiesiekr

Question

Hello.

Does anyone have an idea how to make a virtual device to control Sonoff Basic with the loaded espeasy or other software so that you can switch on and off the device with the HCL.
  Is it possible to read states in the HCL or is switched on or off.

Link to comment
Share on other sites

Recommended Posts

  • 0

i do not know.

all work like a charm

Please login or register to see this image.

/monthly_2019_12/image.png.40bdc024bf8f8204dcfd1bc3b2bc1d0f.png" />

 

in attach "patched" for you VD.

 

wszystkiego najlepszego..

 

Please login or register to see this attachment.

Link to comment
Share on other sites

  • 0
5 minut temu, 10der napisał:

i do not know.

all work like a charm

Please login or register to see this link.

 

in attach "patched" for you VD.

 

wszystkiego najlepszego..

 

Please login or register to see this attachment.

I don't know why, but for me this VD doesn't work at all. As I delete from the code ["AM2301"] it works but does not show temperature and humidity.

Please login or register to see this image.

/monthly_2019_12/image.png.5f094d2e9bbd17932977582ceb6a6e3d.png" />

Link to comment
Share on other sites

  • 0

you privide me nice response. this response is really OK

more than with this response VD works OK.

one monent I will include some debug info for u

Link to comment
Share on other sites

  • 0

Please login or register to see this image.

/monthly_2019_12/image.png.277aea09cd01956dd0ee68efac7be624.png" />

Link to comment
Share on other sites

  • 0

smutek...

debug #2

Please login or register to see this attachment.

Link to comment
Share on other sites

  • 0

Please login or register to see this image.

/monthly_2019_12/image.png.d6ba4938de913cca7624d498c943348b.png" />

Link to comment
Share on other sites

  • 0

Please login or register to see this spoiler.

 

czy mozesz zapisac  w file?

nie .png / jpg :)

Link to comment
Share on other sites

  • 0

as I type in the browser:
http://192.168.1.6/cm?cmnd=status%2000

I get an answer

 

Please login or register to see this image.

/monthly_2019_12/image.png.bde60766895b11ae762667e20696eddd.png" />

Link to comment
Share on other sites

  • 0

when you caling in your web briwser somthing like 

Please login or register to see this link.

you MUST rcvd response WITH sensors states (temp + hum for example)

otherwise it's:

1) Tasmota FW bug

2) wrong configuration (for example all response sending to MQTT)

3) others

6 minutes ago, ptekien said:

http://192.168.1.6/cm?cmnd=status%2000

i do not know what 2000 is.

please point me to doc, please

PS:

add (change) to 

function updateStatus()

 

local resp, status, result = rPi:GET("/cm?cmnd=status");

 

local resp, status, result = rPi:GET("/cm?cmnd=status%2000");

but i do not know what is "00"

Link to comment
Share on other sites

  • 0
W dniu 25.09.2018 o 21:16, AutoFrank napisał:

 

Assuming you have flashed the device with Tasmota , adjust IP to suit

note: there is a space in the command string that is represented by the typical %20 representation

 

Sonoff basic

On - http://192.168.1.153/cm?cmnd=Power%20On

Off - http://192.168.1.153/cm?cmnd=Power%20Off

Dim - http://192.168.1.153//cm?cmnd=Power%20TOGGLE

 

http://192.168.1.153/cm?cmnd=status%200 (full status in in browser or HC2)

 

Please login or register to see this code.

MagicHome 

same as above but also has dimmer

x is dim value between 0 and 100

 

http://192.168.1.153/cm?cmnd=dimmer%20"..x 

 

Dimmer with slider in VD

Please login or register to see this code.

Fade off VD button

Please login or register to see this code.

Fade off button

Same as above but replace 

Please login or register to see this code.

with

Please login or register to see this code.

100 - start value, 0 - end value, 1 - decrement value

 

 

Magichome

Counter Lights VD  (this controls 2 RGB modules, colors displayed by the presets may vary with your led strip)

Please login or register to see this attachment.

 

Sonoff basic

running a lamp

Please login or register to see this attachment.

 

Sonoff TH16 with Temp/Humidity sensor

Running a bathroom extractor fan (sensor above fan in extractor tube)

Please login or register to see this link.

 

Please login or register to see this attachment.

 

 

I took this command from VD which works and shows temperature and humidity

 

 

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

  • 0

thank you VERY much for collaborating!

attached

Please login or register to see this attachment.

  • Thanks 1
Link to comment
Share on other sites

  • 0

pay attention!

 

-- how many switches!

local model = 2

 

--  what sensor type

--- if NO sensors = nil
local sensorType = "AM2301"

--  "AM2301" / "BMP280" / "DHT11" / etc
-- for Sonoff SC = empty string = ""
 

Please login or register to see this attachment.

  • Thanks 1
Link to comment
Share on other sites

  • 0

Hi 10der,

I'm completely new here with Fibaro and VD for Sonoff. What I miss is if I have to update Sonoff with  Tasmota before using your .vfib.

Thank for your understanding

Link to comment
Share on other sites

  • 0
1 hour ago, Cesare said:

if I have to update Sonoff with  Tasmota before using your .vfib.

miss?

- native sonooff clouds access

- native application from sonooff

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...