Giter Site home page Giter Site logo

tasmota-ccu's People

Contributors

frodovdr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tasmota-ccu's Issues

./sonsoff.sh: 511: ./sonsoff.sh: Syntax error: Unterminated quoted string

Heyho,

when i try to call the script from the shell i get the error

user@debian01:~$ ./sonsoff.sh  -f status -c CUX2801002:1  -i 192.168.178.202 -a 9129BAA9F1CA1812
./sonsoff.sh: 511: ./sonsoff.sh: Syntax error: Unterminated quoted string

calling it without a parameter is working fine (the help-text is showing up).

user@debian01:~$ ./sonsoff.sh
-e usage:
-e       sonsoff.sh -f [status|switch|switch-t|switch-p|switch-th] -c CUX2801xxx:x -i ipaddr [-n relayr_nr] [-a apikey] [-u user] [-p password] [-o value] [-r real_name] [-d] [-h]

-e
-e       examples espurna firmware:
-e       sonsoff.sh -h # this usage info
-e       sonsoff.sh -f switch    -c CUX2801xxx:x -i 192.168.x.x -a 1234567890123456      # status switch
-e       sonsoff.sh -f switch    -c CUX2801xxx:x -i 192.168.x.x -a 1234567890123456 -o 0 # switch off
-e       sonsoff.sh -f switch    -c CUX2801xxx:x -i 192.168.x.x -a 1234567890123456 -o 1 # switch on
-e       sonsoff.sh -f switch    -c CUX2801xxx:x -i 192.168.x.x -a 1234567890123456 -o 2 # switch toggle on/off
-e       sonsoff.sh -f switch    -c CUX2801xxx:x -i 192.168.x.x -a 1234567890123456 -o 0 -n 3 # switch 4 relay off
-e       sonsoff.sh -f switch-t  -c CUX2801xxx:x -i 192.168.x.x -a 1234567890123456      # status switch and temperature
-e       sonsoff.sh -f switch-t  -c CUX2801xxx:x -i 192.168.x.x -a 1234567890123456 -o 0 # switch off with temperature
-e       sonsoff.sh -f switch-t  -c CUX2801xxx:x -i 192.168.x.x -a 1234567890123456 -o 1 # switch on  with temperature
-e       sonsoff.sh -f switch-th -c CUX2801xxx:x -i 192.168.x.x -a 1234567890123456      # status switch, temperature and humidity
-e       sonsoff.sh -f switch-th -c CUX2801xxx:x -i 192.168.x.x -a 1234567890123456 -o 0 # switch off with status temperature and humidity
-e       sonsoff.sh -f switch-th -c CUX2801xxx:x -i 192.168.x.x -a 1234567890123456 -o 1 # switch on  with status temperature and humidity
-e       sonsoff.sh -f status    -c CUX2801xxx:x -i 192.168.x.x -a 1234567890123456      # espurna available restapi

-e
-e       examples tasmota firmware:
-e       sonsoff.sh -f switch    -c CUX2801xxx:x -i 192.168.x.x -u user -p password      # status switch
-e       sonsoff.sh -f switch    -c CUX2801xxx:x -i 192.168.x.x -u user -p password -n 2 # status switch relay nr 2
-e       sonsoff.sh -f switch    -c CUX2801xxx:x -i 192.168.x.x -u user -p password -o 0 # switch off
-e       sonsoff.sh -f switch    -c CUX2801xxx:x -i 192.168.x.x -u user -p password -o 1 # switch on
-e       sonsoff.sh -f switch    -c CUX2801xxx:x -i 192.168.x.x -u user -p password -o 2 # switch toggle on/off
-e       sonsoff.sh -f switch-th -c CUX2801xxx:x -i 192.168.x.x -u user -p password      # status switch, temperature and humidity
-e       sonsoff.sh -f switch-p  -c CUX2801xxx:x -i 192.168.x.x -u user -p password      # status switch, power, volt, ampere, ...
-e       sonsoff.sh -f status    -c CUX2801xxx:x -i 192.168.x.x -u user -p password      # tasmota status
-e
-e       version: 0.18

Using Debian 10 Buster (debmatic)

user@debian01:~$ cat /proc/version
Linux version 5.5.0-0.bpo.2-amd64 ([email protected]) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 5.5.17-1~bpo10+1 (2020-04-23)

Interesting thing is that it is showing the -e parameter from the echo command...

Kilowatt-W

In der aktuellen Version 0.18 hab ich einen kleinen Fehler gefunden in Verbindung mit Multi-Relay Devices und Tasmota :

Beginnend mit Zeile 288 :

URL2="http://${IPADDR}/cm?user=${USER}&password=${PASSWD}&cmnd=Power"

gehört ersetzt mit :

URL2="http://${IPADDR}/cm?user=${USER}&password=${PASSWD}&cmnd=Power${RELNR}"

Dann klappt die Statusabfrage wunderbar mit mehreren Relays, sonst ist die Rückmeldung immer der Status von P1 :-)

Danke für deine Arbeit, ist wirklich unersetzlich geworden

Gruß aus Österreich

Kilowatt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.