MarkAdamson / home-assistant-plugin-for-tasker

Home Assistant plugin for Tasker
Other
149 stars 9 forks source link

Correct JSON gives JSON error when testing service call #22

Open patrik-sp opened 4 years ago

patrik-sp commented 4 years ago

This JSON code gives me JSON error when I test the service call which is strange since the JSON lints ok. Also if I disregard the JSON error and proceeds to run the complete task, the process slows down for this step and then gives a long error log message.

{"entity_id":"input_datetime.patriks_phone_next_alarm_date_and_time","date":"%year-%month-%day","time":"%hour:%minute:00"}

jgrob1 commented 4 years ago

I am getting JSON errors when trying to run scripts, but not when calling services:

23.38.08/E FIRE PLUGIN: Call Service / com.twofortyfouram.locale.intent.action.FIRE_SETTING: 7 bundle keys 23.38.08/E Call Service: plugin comp: com.markadamson.taskerplugin.homeassistant/com.markadamson.taskerplugin.homeassistant.receiver.FireReceiver 23.38.08/E add wait type Plugin1 time 10 23.38.08/E add wait type Plugin1 done 23.38.08/E add wait task 23.38.09/E Error: 2 23.38.09/E JSON Error

strelniece commented 4 years ago

Hi,

I have the same issue, this gives JSOn error

{ "entity_id": "remote.hubbabubba", "data": { "activity": "Watch TV" } }

schiz0phr3ne commented 4 years ago

Hi all,

I also have the same issue, but only with variable (not with an arbitrary int value).

My JSON :

{"entity_id":"input_number.lucas_battery","value": "%battery_level"}
MitchTalmadge commented 2 years ago

Did anyone solve this? I am also getting JSON errors with valid JSON.

MrMiracles commented 1 year ago

Hi,

I have the same issue, this gives JSOn error

{ "entity_id": "remote.hubbabubba", "data": { "activity": "Watch TV" } }

Had the same problem, thing is you don't need the "data" part. Try this: { "entity_id": "remote.hubbabubba", "activity": "Watch TV" }