frodovdr / tasmota-ccu Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
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...
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.