API call to MT40 to switch it on and off

KingArthur
Here to help

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!

5 Replies 5
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/

KingArthur
Here to help

Thanks bud! I will have a look!

KingArthur
Here to help

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

Thanks

BDillon
Here to help

Are you looking to create a schedule to do the power on or off?
or are you powering down, as and when required ?

Sharing python scripting method could be helpful to others as well 😉

KingArthur
Here to help

Hi there

My son's PC crashed so I had to give him my test PC which the script is on.

When I have my stuff back I will post my solutions here!

 

Have a great day!

Get notified when there are additional replies to this discussion.