Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

statechange.cgi new_value mit Komma ',' #25

Closed
kulka-ig opened this issue Jan 2, 2019 · 0 comments
Closed

statechange.cgi new_value mit Komma ',' #25

kulka-ig opened this issue Jan 2, 2019 · 0 comments

Comments

@kulka-ig
Copy link

kulka-ig commented Jan 2, 2019

Servus!

Vielen Dank für die viele Arbeit, die in dieses Toolset geflossen ist,
es macht mir das Leben (Programmieren) leichter!

Ich wollte nun mit statechange.cgi "PARTY_MODE_SUBMIT" eines Wandthermostaten setzen,
aber die new_value wird zwangsweise gesplittet:

set rec_new_value [split $new_value "\,"]

Mit einer kleinen Modifikation würde dies nur bei mehreren ise_id(s) passieren,
bei einer ise_id blieben die ',' in new_value erhalten:

if { [string match "\," $ise_id ] } {
	set rec_new_value [split $new_value "\,"]
} else {
	set rec_new_value [ list $new_value ]
}

Resultat von "GET /config/xmlapi/2statechange.cgi?ise_id=12372&new_value=5,0,1,1,0,0,1,1,0"
changed id="12372" new_value="5,0,1,1,0,0,1,1,0"

Ich würde mich freuen, wenn es in ein neues Release einflösse, bis dahin werd' ich mein
2statechange.cgi benutzen.

Danke und Gruß,
Igor

jens-maus added a commit that referenced this issue Oct 18, 2023
splitted by "," chars anymore. This should allow to set states of single
ise ids which require "," characters. This refs #25.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants