TwoLedSignal stuff

This commit is contained in:
2018-04-25 13:05:28 +02:00
parent 5619ac007a
commit 1600cc9469
7 changed files with 218 additions and 37 deletions

View File

@ -45,7 +45,7 @@ export class UrlSwitchItem extends AItem implements HasStateAndFeedbackTopic {
mqttHandler.send(this.stateFeedbackTopic, this.state);
if (this.state != this.oldState) {
if (this.state == 'ON') {
http.get(this.onUrl)
http.get(this.onUrl,)
} else {
http.get(this.offUrl)
}