From 33651d3f96f54b17f9cae37a372b5a08a90ff1c8 Mon Sep 17 00:00:00 2001 From: mch1307 Date: Mon, 6 Nov 2017 21:02:34 +0100 Subject: [PATCH] fix issue #3 wrong id passed in url --- server/jeedom.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/jeedom.go b/server/jeedom.go index 91eb7c3..06c9540 100644 --- a/server/jeedom.go +++ b/server/jeedom.go @@ -46,7 +46,7 @@ func UpdateJeedomState(item types.NHCItem) error { qry := req.URL.Query() qry.Add("apikey", config.Conf.JeedomConfig.APIKey) qry.Add("type", "cmd") - qry.Add("id", item.JeedomID) + qry.Add("id", item.JeedomUpdState) qry.Add(item.JeedomSubType, strconv.Itoa(item.State)) req.URL.RawQuery = qry.Encode() log.Debug("jeedom upd url: ", req.URL.String())