Closed DirtyDevWork closed 8 years ago
Still not resolved, bear with
Still didn't work, added backslashes in but did not resolve comma issue
Issue resolved, however doing so leave the plugin only reading info from the Daikin system, but unable to push changes out to it.
An example output from convertDaikinToJSON():
{"ret":"OK,pow":"0,mode":"4,adv":",stemp":"21.0,shum":"0,dt1":"25.0,dt2":"M,dt3":"25.0,dt4":"21.0,dt5":"21.0,dt7":"25.0,dh1":"AUTO,dh2":"50,dh3":"0,dh4":"0,dh5":"0,dh7":"AUTO,dhh":"50,b_mode":"4,b_stemp":"21.0,b_shum":"0,alert":"255"}
What should be output:
{"ret":"OK","pow":"0","mode":"4","adv":"","stemp":"21.0","shum":"0","dt1":"25.0","dt2":"M","dt3":"25.0","dt4":"21.0","dt5":"21.0","dt7":"25.0","dh1":"AUTO","dh2":"50","dh3":"0","dh4":"0","dh5":"0","dh7":"AUTO","dhh":"50","b_mode":"4","b_stemp":"21.0","b_shum":"0","alert":"255"}
Basically, need to work out why quotation marks are not being put around the commas