[BF] Sending the right SwitchID is the right thing...
This commit is contained in:
		
							parent
							
								
									e6429ef76c
								
							
						
					
					
						commit
						51fe24b235
					
				| @ -46,7 +46,7 @@ namespace Dashboard.Sensor { | ||||
| 
 | ||||
|     internal override void SetBool(Boolean v) { | ||||
|       String hid = Regex.Match(this.topic, "/flex4grid/v1/households/([^/]*)/device/state").Groups[1].Value; | ||||
|       AMqtt.Instance.Send("/flex4grid/v1/households/" + hid + "/device/actuate", "{\"command\":\""+(v ? "ON" : "OFF") + "\",\"deviceId\":\"6\",\"timestamp\":\"" + DateTime.Now.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'ffffff'Z'") + "\"}"); | ||||
|       AMqtt.Instance.Send("/flex4grid/v1/households/" + hid + "/device/actuate", "{\"command\":\""+(v ? "ON" : "OFF") + "\",\"deviceId\":\""+ this.id + "\",\"timestamp\":\"" + DateTime.Now.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'ffffff'Z'") + "\"}"); | ||||
|     } | ||||
|   } | ||||
| } | ||||
										
											Binary file not shown.
										
									
								
							
		Loading…
	
		Reference in New Issue
	
	Block a user