@skycryer wrote:
Hi, I have a command line sensor and want to extract some json data here. But I can not get the data and have no idea how to use template editor to test that.
Here is the Json I get
{ "id": "uuid:4c2efa6f-8c15-4eda-99f3-7806493d1ac5", "name": "[TV] tv wohnzimmer", "version": "2.1.0", "device": { "type": "Samsung SmartTV", "duid": "uuid:4c2efa6f-8c15-4eda-99f3-7806493d1ac5", "model": "16_JAZZM_UHD", "modelName": "UE65KS8090", "description": "Samsung DTV RCR", "networkType": "wired", "ssid": "", "ip": "192.168.1.110", "firmwareVersion": "Unknown", "name": "[TV] tv wohnzimmer", "id": "uuid:4c2efa6f-8c15-4eda-99f3-7806493d1ac5", "udn": "uuid:4c2efa6f-8c15-4eda-99f3-7806493d1ac5", "resolution": "3840x2160", "countryCode": "DE", "msfVersion": "2.1.0", "smartHubAgreement": "true", "VoiceSupport": "true", "GamePadSupport": "true", "wifiMac": "d8:e0:e1:00:55:6c", "developerMode": "0", "developerIP": "", "OS": "Tizen" }, "type": "Samsung SmartTV", "uri": "http://192.168.1.110:8001/api/v2/", "remote": "1.0", "isSupport": "{\"remote_available\":\"true\",\"remote_fourDirections\":\"true\",\"remote_touchPad\":\"true\",\"remote_voiceControl\":\"true\",\"DMP_available\":\"true\",\"DMP_DRM_PLAYREADY\":\"false\",\"DMP_DRM_WIDEVINE\":\"false\",\"EDEN_available\":\"true\"}"
The part I try to get is in isSupport -> remote available. I tried with this line
{{ value_json['isSupport']['remote_available'] }}
but got nothing
Posts: 4
Participants: 2