• C
    chrizzz86

    @mwittig
    Works, thanks!

    curl --silent http://ip-address/cm?cmnd=Power | grep 'POWER = ' | cut -d '=' -f2 | cut -c 2- | tr A-Z a-z",

    posted in Howto ... read more
  • C
    chrizzz86

    @mwittig Yes, I’m working on the “getStateCommand”

    I can get an result with the command:

    curl --silent http://ip-address/cm?cmnd=Power | grep 'POWER =' | cut -d '=' -f2
    

    Output: OFF or ON

    The ShellSwitch can only return on/off, true/false or 1/0 as string.
    At the moment I’m trying to “convert” “OFF” to “off” and “ON” to “on”… ;-)

    posted in Howto ... read more
  • C
    chrizzz86

    Hi,

    I got my sonoff pow this morning and finally can test it. :-)
    I flashed this firmware on the device: Sonoff-Tasmota

    It’s possible to toggle the switch an read informations like volt, ampere etc…

    Example:

        {
          "id": "sonoff_2",
          "name": "Test WLAN Switch",
          "class": "ShellSwitch",
          "onCommand": "curl --silent http://ip-address/cm?cmnd=Power%20on",
          "offCommand": "curl --silent http://ip-address/cm?cmnd=Power%20off"
        },
        {
          "id": "sonoff_2_voltage",
          "name": "Sonoff POW Voltage",
          "class": "ShellSensor",
          "attributeName": "voltage",
          "attributeType": "number",
          "attributeUnit": "V",
          "command": "curl --silent http://ip-address/cm?cmnd=Status%208 | grep 'Voltage' | cut -d ':' -f7 | cut -d ',' -f1",
          "interval": 60000
        },
        {
          "id": "sonoff_2_watt",
          "name": "Sonoff POW Watt",
          "class": "ShellSensor",
          "attributeName": "watt",
          "attributeType": "number",
          "attributeUnit": "Watt",
          "command": "curl --silent http://ip-address/cm?cmnd=Status%208 | grep 'Power' | cut -d ':' -f5 | cut -d ',' -f1",
          "interval": 60000
        },
        {
          "id": "sonoff_2_amp",
          "name": "Sonoff POW Ampere",
          "class": "ShellSensor",
          "attributeName": "ampere",
          "attributeType": "number",
          "attributeUnit": "A",
          "command": "curl --silent http://ip-address/cm?cmnd=Status%208 | grep 'Current' | cut -d ':' -f8 | cut -d '}' -f1",
          "interval": 60000
        },
    

    Looks like this:
    0_1489846576134_Bildschirmfoto 2017-03-18 um 15.15.51.jpg

    posted in Howto ... read more
  • C
    chrizzz86

    Hi,

    any updates on how to use sonoff pow without mqtt?

    posted in Howto ... read more
  • C
    chrizzz86

    Hi @ExelJ

    Thanks for your efforts!
    How are your experiences with this motion detection Sensor?
    I’m using an intertechno Sensor, which does not detect motion constantly…

    posted in RF Protocols read more
  • C
    chrizzz86

    Could figure it out: The cameras substream has been configured to h264.
    But still, after changing the substream to mjpeg no success :-(
    This could be a problem, because rtsp is not supported (Yet ;-) )

    posted in RF Protocols read more
  • C
    chrizzz86

    @leader21 Okay, stream you mentioned works!
    Seems to be a problem of my cameras stream configuration.

    posted in RF Protocols read more
  • C
    chrizzz86

    At the moment maybe it’s possible to generate an alarm with a rule?

    By the way: I bought my sensors in June 2016 and it hasn’t been necessary till today to replace a battery. :-)

    posted in RF Protocols read more

Looks like your connection to pimatic forum was lost, please wait while we try to reconnect.