API call to MT40 to switch it on and off

KingArthur
Comes here often

API call to MT40 to switch it on and off

Good day

 

Can someone show me what the API string looks like that power the MT40 up and down?

 

I am experimenting with Node Red.

I have a MV2 that sends a signal to a MQTT broker.

When there is movement then a API call must be made to the MT40 to switch it on.

If no movement is detected in 5 minutes then it must switch the MT40 off.

 

Thanks in advance!

3 Replies 3
Greenberet
Head in the Cloud

I'm not sure if the node-red package is up 2 date and have the api call, but you would need this one https://developer.cisco.com/meraki/api-v1/create-device-sensor-command/

Thanks bud! I will have a look!

I actually managed to switch the MT40 on and off with a python script, so Im making progress!

Thanks

Get notified when there are additional replies to this discussion.
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.