Here you can see the script that will get the value from the component inside the project and pubblish its value as numeric value throught the topic. var data = JSON.parse(payload); return data.ison ? 1 : 0;