Welcome, Guest
Username: Password: Remember me

TOPIC: EasyIoT Cloud internet connected switch issue

EasyIoT Cloud internet connected switch issue 8 months 1 week ago #3592

I put together the ESP8266 internet connected switch for my xmas lights and it is working as expected. I can control the switch by my browser and the EasyIOT android app. What I want to do is automate the switch to turn on and off at predetermined times.
I see references to using cron but it seems to be related to installing the server software, I want to use the EasyIOT cloud service for simplicity. I figured I would just set up a cron job on my local Linux PC to fire off a simple script to do this every day.

I had some limited success using a couple of command line tools for mosquitto, mosquitto_pub and mosquitto_sub.
I can publish a '1' or '0' to my topic and it will change the status on my EasyIOT android app and my browser, the switch slider changes from off to on and vice versa and the icon colour changes but, the problem is it seems like the change is not sent to the ESP relay. I can also use the mosquito_sub command and see the changes being reflected from the android app and my browser, so it seems like the EasyIOT Cloud is publishing the messages fine. There seems to be a disconnect somewhere on the EasyIOT cloud and my ESP relay if there is something published to a topic and its not from the web interface or the android app.

Is there something I am missing? Thanks
The administrator has disabled public write access.

EasyIoT Cloud internet connected switch issue 8 months 1 week ago #3593

  • EasyIoT
  • EasyIoT's Avatar
  • Offline
  • Administrator
  • Posts: 833
  • Thank you received: 258
  • Karma: 24
nsadventurer wrote:
I put together the ESP8266 internet connected switch for my xmas lights and it is working as expected. I can control the switch by my browser and the EasyIOT android app. What I want to do is automate the switch to turn on and off at predetermined times.
I see references to using cron but it seems to be related to installing the server software, I want to use the EasyIOT cloud service for simplicity. I figured I would just set up a cron job on my local Linux PC to fire off a simple script to do this every day.

I had some limited success using a couple of command line tools for mosquitto, mosquitto_pub and mosquitto_sub.
I can publish a '1' or '0' to my topic and it will change the status on my EasyIOT android app and my browser, the switch slider changes from off to on and vice versa and the icon colour changes but, the problem is it seems like the change is not sent to the ESP relay. I can also use the mosquito_sub command and see the changes being reflected from the android app and my browser, so it seems like the EasyIOT Cloud is publishing the messages fine. There seems to be a disconnect somewhere on the EasyIOT cloud and my ESP relay if there is something published to a topic and its not from the web interface or the android app.

Is there something I am missing? Thanks

Hi, right now cron is not supported in automation. It will be added in future releases.
The administrator has disabled public write access.
The following user(s) said Thank You: nsadventurer

EasyIoT Cloud internet connected switch issue 8 months 1 week ago #3594

Is there a way to interact with the ESP switch module outside of using the web interface or android app?

I answered my own question after digging around the forums

iot-playground.com/forum/general1/473-ho...mands-to-a-node#2724

iot-playground.com/blog/2-uncategorised/...-cloud-rest-api-v1-0

3.20. Set parameter value

I created a shell script that is called from my local crontab and used curl with the easyiot rest API as above.
Works like a charm.
Last Edit: 8 months 1 week ago by nsadventurer. Reason: update to my question
The administrator has disabled public write access.
Time to create page: 0.130 seconds
Powered by Kunena Forum