# \[APP\] Shelly - Smart solutions for every home and office

**URL:** <https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765>\
**Category:** Apps\
**Tags:** app, official, homey, homey-pro, homey-cloud\
**Created:** [August 28, 2018, 8:54pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765 "2018-08-28T20:54:43Z")\
**Posts on this page:** 20\
**Page:** 76

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 14, 2021, 3:15pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1520 "2021-02-14T15:15:15Z")

</div>

> ## v3.0.12 - 2021-xx-xx
> 
> - Split the 1PM and 1L driver to allow 1L specific functionality (this requires you to re-pair your 1L as Shelly 1L device)
> - Fixed an issue the Shelly EM which caused the device to be offline

For more information on installing version 3.x see [[APP] Shelly - #1097 by Phuturist](https://community.homey.app/t/app-shelly/765/1097)

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 14, 2021, 3:15pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1521 "2021-02-14T15:15:48Z")

</div>

Good to hear, and thanx for the donation. Much appreciated! 🙏

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 14, 2021, 3:21pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1522 "2021-02-14T15:21:39Z")

</div>

> [@Eduardo\_Rodriguez](#):
>
> I see nothing when i trigger the reed switch.

I fixed the Shelly EM issue. I also updated the debug branch on Github to look into the Shelly add on functionality. Please re-download and run that version. It will show all incoming CoAP messages now. If you have a lot of Shelly devices this will generate a lot of logging. Try to update the reed switch and see if you can identify the corresponding CoAp message on the command line. I need only those.

---

<div class="post-metadata">

**Author:** ![Eduardo\_Rodriguez](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eduardo_rodriguez/32/1902_2.png) [@Eduardo\_Rodriguez](https://community.homey.app/u/Eduardo_Rodriguez)\
**Post date:** [February 14, 2021, 3:45pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1523 "2021-02-14T15:45:48Z")

</div>

I just updated and I get the same error message and the shelly EM is offline. Also nothing happens when I trigger the reed switch.

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 14, 2021, 4:19pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1524 "2021-02-14T16:19:46Z")

</div>

The Shelly EM issue is fixed on the 3.0.12 test version from the app store. I havent fixed it in the debug branch on Github.

> [@Eduardo\_Rodriguez](#):
>
> Also nothing happens when I trigger the reed switch.

Are you seeying other CoAP events on the CLI but just not the reed switch trigger when running the debug version. That would indicate an issue on Shelly side. If you are not seeying any CoAP events you are probably not using the latest debug version.

---

<div class="post-metadata">

**Author:** ![TheFops](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@TheFops](https://community.homey.app/u/TheFops)\
**Post date:** [February 14, 2021, 4:40pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1525 "2021-02-14T16:40:57Z")

</div>

I updated to 3.0.12 and repaired my Shelly 1L devices, but the button triggers aren’t working. When I press the button, the flow won’t start

Edit: first made a flow to turn a HUE lamp on/off but that didn’t work for all of the button triggers.  
After that, made a flow for all devices and each triggers to send me a notification on which device what button was pressed, but I don’t receive a notification.

Edit2: had one device still connected as PM/1L and that device still works and send a notification after a button was pressed.

---

<div class="post-metadata">

**Author:** ![Eduardo\_Rodriguez](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eduardo_rodriguez/32/1902_2.png) [@Eduardo\_Rodriguez](https://community.homey.app/u/Eduardo_Rodriguez)\
**Post date:** [February 14, 2021, 4:53pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1526 "2021-02-14T16:53:25Z")

</div>

I have updated to version 3.0.12 test and shelly EM continues offline.

The Shelly Plug S only updates the values when you start the application, then never again.

I have downloaded the debug version again and the log is exactly the same. And the addon does not show the status of the reed switch, nor any message when I activate any shelly.

This is the status of the shelly 1 with addon:

reed off:

{“wifi\_sta”:{“connected”:true,“ssid”:“xxxxxxxxxx”,“ip”:“0.0.0.0”,“rssi”:-63},“cloud”:{“enabled”:true,“connected”:true},“mqtt”:{“connected”:false},“time”:“17:47”,“unixtime”:1613321246,“serial”:70,“has\_update”:false,“mac”:“00000000”,“cfg\_changed\_cnt”:2,“actions\_stats”:{“skipped”:0},“ **ext\_switch":{“0”:{“input”:0** }},“relays”:[{“ison”:false,“has\_timer”:false,“timer\_started”:0,“timer\_duration”:0,“timer\_remaining”:0,“source”:“http”}],“meters”:[{“power”:0.00,“is\_valid”:true}],“inputs”:[{“input”:0,“event”:”",“event\_cnt”:0}],“ext\_sensors”:{},“ext\_temperature”:{},“ext\_humidity”:{},“update”:{“status”:“idle”,“has\_update”:false,“new\_version”:“20210115-102904/v1.9.4@e2732e05”,“old\_version”:“20210115-102904/v1.9.4@e2732e05”,“beta\_version”:“20210209-101435/v1.10.0-rc2-g0cf9ee3-heads/v1.10.0-rc2”},“ram\_total”:50704,“ram\_free”:38196,“fs\_size”:233681,“fs\_free”:145078,“uptime”:108090}

and reed on:

{“wifi\_sta”:{“connected”:true,“ssid”:“xxxxxxxx”,“ip”:“0.0.0.0”,“rssi”:-64},“cloud”:{“enabled”:true,“connected”:true},“mqtt”:{“connected”:false},“time”:“17:49”,“unixtime”:1613321378,“serial”:71,“has\_update”:false,“mac”:“00000000”,“cfg\_changed\_cnt”:2,“actions\_stats”:{“skipped”:0},“ **ext\_switch":{“0”:{“input”:1** }},“relays”:[{“ison”:false,“has\_timer”:false,“timer\_started”:0,“timer\_duration”:0,“timer\_remaining”:0,“source”:“http”}],“meters”:[{“power”:0.00,“is\_valid”:true}],“inputs”:[{“input”:0,“event”:”",“event\_cnt”:0}],“ext\_sensors”:{},“ext\_temperature”:{},“ext\_humidity”:{},“update”:{“status”:“idle”,“has\_update”:false,“new\_version”:“20210115-102904/v1.9.4@e2732e05”,“old\_version”:“20210115-102904/v1.9.4@e2732e05”,“beta\_version”:“20210209-101435/v1.10.0-rc2-g0cf9ee3-heads/v1.10.0-rc2”},“ram\_total”:50704,“ram\_free”:38164,“fs\_size”:233681,“fs\_free”:145078,“uptime”:108223}

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 14, 2021, 6:11pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1527 "2021-02-14T18:11:29Z")

</div>

> [@TheFops](#):
>
> I updated to 3.0.12 and repaired my Shelly 1L devices, but the button triggers aren’t working. When I press the button, the flow won’t start

Do you know how to [run the app](https://community.homey.app/t/how-to-cli-install-method/198) from the command line using the command `homey app run` ? If so, could you run the [debug version](https://github.com/jghaanstra/cloud.shelly/tree/debug) of Github and perform a long and shortpush about 60 seconds after the app has been started from the command line.

> [@Eduardo\_Rodriguez](#):
>
> I have updated to version 3.0.12 test and shelly EM continues offline.

I have updated the debug version with the changes that are included in 3.0.12. Could you re-download and run it again and see if it gives an error.

> [@Eduardo\_Rodriguez](#):
>
> The Shelly Plug S only updates the values when you start the application, then never again.

This means the CoAP traffic is not working for this device. On startup it requests the status over HTTP REST but then relies on CoAP for device updates. That could also be the reason for other devices not updating it’s status like your Shelly 1 add on. If you have the devices in a seperate LAN you might need to do some extra configuration in your network.

> [@Eduardo\_Rodriguez](#):
>
> I have downloaded the debug version again and the log is exactly the same. And the addon does not show the status of the reed switch, nor any message when I activate any shelly.

You need to wait for a minute or so after running the app before the CoAP messages are being processed. Try to change the status of a different Shelly. If you still do not see any CoAP messages that there is an issue with CoAP traffic on your network.

---

<div class="post-metadata">

**Author:** ![TheFops](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@TheFops](https://community.homey.app/u/TheFops)\
**Post date:** [February 14, 2021, 6:28pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1528 "2021-02-14T18:28:02Z")

</div>

Found out how to run the debug app.  
Here’s the log from command line:

```
2021-02-14 18:24:15 [log] [ShellyApp] Initializing Shelly App ...
2021-02-14 18:24:58 [log] [ShellyApp] Discovered device with ID 84CCA8ACD848 and type SHSW-L on IP address 192.168.0.50
2021-02-14 18:24:58 [log] [ShellyApp] Discovered device with ID 84CCA8AC9E33 and type SHSW-L on IP address 192.168.0.52
2021-02-14 18:24:58 [log] [ShellyApp] Discovered device with ID 84CCA8ADAD68 and type SHSW-L on IP address 192.168.0.53
2021-02-14 18:24:58 [log] [ShellyApp] Discovered device with ID 84CCA8AD58B0 and type SHSW-L on IP address 192.168.0.51
2021-02-14 18:25:04 [log] [ShellyApp] inputEventCounter0 changed from 18 to 19 for device 84CCA8ADAD68 with IP address 192.168.0.53
2021-02-14 18:25:04 [log] [ManagerDrivers] [shelly1L] [2] Shelly 1L coap message for capability inputEventCounter0 with value 19
2021-02-14 18:25:16 [log] [ShellyApp] input0 changed from 0 to 1 for device 84CCA8ADAD68 with IP address 192.168.0.53
2021-02-14 18:25:16 [log] [ManagerDrivers] [shelly1L] [2] Shelly 1L coap message for capability input0 with value 1
2021-02-14 18:25:16 [log] [ShellyApp] deviceTemperature changed from 45.19 to 45.3 for device 84CCA8ADAD68 with IP address 192.168.0.53
2021-02-14 18:25:16 [log] [ManagerDrivers] [shelly1L] [2] Shelly 1L coap message for capability deviceTemperature with value 45.3
2021-02-14 18:25:17 [log] [ShellyApp] inputEvent0 changed from S to L for device 84CCA8ADAD68 with IP address 192.168.0.53
2021-02-14 18:25:17 [log] [ManagerDrivers] [shelly1L] [2] Shelly 1L coap message for capability inputEvent0 with value L
2021-02-14 18:25:17 [log] [ShellyApp] inputEventCounter0 changed from 19 to 20 for device 84CCA8ADAD68 with IP address 192.168.0.53
2021-02-14 18:25:17 [log] [ManagerDrivers] [shelly1L] [2] Shelly 1L coap message for capability inputEventCounter0 with value 20
2021-02-14 18:25:17 [log] [ShellyApp] deviceTemperature changed from 45.3 to 45.19 for device 84CCA8ADAD68 with IP address 192.168.0.53
2021-02-14 18:25:17 [log] [ManagerDrivers] [shelly1L] [2] Shelly 1L coap message for capability deviceTemperature with value 45.19
2021-02-14 18:25:20 [log] [ShellyApp] input0 changed from 1 to 0 for device 84CCA8ADAD68 with IP address 192.168.0.53
2021-02-14 18:25:20 [log] [ManagerDrivers] [shelly1L] [2] Shelly 1L coap message for capability input0 with value 0
2021-02-14 18:25:24 [log] [ShellyApp] deviceTemperature changed from 45.19 to 45.3 for device 84CCA8ADAD68 with IP address 192.168.0.53
2021-02-14 18:25:24 [log] [ManagerDrivers] [shelly1L] [2] Shelly 1L coap message for capability deviceTemperature with value 45.3
2021-02-14 18:25:31 [log] [ShellyApp] deviceTemperature changed from 45.62 to 45.51 for device 84CCA8ACD848 with IP address 192.168.0.50
2021-02-14 18:25:39 [log] [ShellyApp] deviceTemperature changed from 45.3 to 45.19 for device 84CCA8ADAD68 with IP address 192.168.0.53
2021-02-14 18:25:39 [log] [ManagerDrivers] [shelly1L] [2] Shelly 1L coap message for capability deviceTemperature with value 45.19

```

Edit:  
I pressed the button 2 times for short push and after that 1 time for longpush

---

<div class="post-metadata">

**Author:** ![Eduardo\_Rodriguez](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eduardo_rodriguez/32/1902_2.png) [@Eduardo\_Rodriguez](https://community.homey.app/u/Eduardo_Rodriguez)\
**Post date:** [February 14, 2021, 6:48pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1529 "2021-02-14T18:48:51Z")

</div>

Update:

This is the Shelly EM log:

2021-02-14 18:28:01 [log] [ManagerDrivers] [shellyem] [0] TypeError: Cannot read property ‘0’ of undefined  
at ShellyEmDevice.initialStateUpdate (/drivers/shellyem/device.js:84:40)  
at processTicksAndRejections (internal/process/task\_queues.js:97:5)  
2021-02-14 18:28:02 [log] [ManagerDrivers] [shellyem] [1] TypeError: Cannot read property ‘1’ of undefined  
at ShellyEmDevice.initialStateUpdate (/drivers/shellyem/device.js:84:40)  
at processTicksAndRejections (internal/process/task\_queues.js:97:5)

I have a server with home assistant with the shellyforhass integration, according to the information that HA gives me, the shellys are communicating by CoAP (I’m not 100% sure), and they all work perfectly. All the shellies are in the same network.

 ![cap](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/2/d283438f706898313aa82b565d1949c18a922500.jpeg)

I have a ubiquiti AC-Pro and USG router. How can I see if there is coap traffic on my network?

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 14, 2021, 7:12pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1530 "2021-02-14T19:12:19Z")

</div>

> [@TheFops](#):
>
> I pressed the button 2 times for short push and after that 1 time for longpush

I’m only seeying one longpush here but it could be you did the two short pushes before the coap listener had started as it’s one of the first events in the log. So the messages are coming through. Have you actually updated your flows for these triggers as these need to be changed because of the re-pairing of the device and the adding of the second button?

> [@Eduardo\_Rodriguez](#):
>
> This is the Shelly EM log:

I’ll fix that. It’s a small type-o.

> [@Eduardo\_Rodriguez](#):
>
> shellys are communicating by CoAP (I’m not 100% sure)

It uses both poll (which is HTTP REST) and CoAP. If you are not seeying any other messages in the command line (similar to the post of TheFops which is from the same debug version) I’m pretty sure CoAP isnt working on your network.

> [@Eduardo\_Rodriguez](#):
>
> How can I see if there is coap traffic on my network?

Most simple way to confirm it has nothing to do with Homey or my app is:

1. install nodejs

2. `npm install -g shellies`

3. save the code below as shellies.js

4. from the folder where you saved shellies.js run `node shellies.js` and see if it give any data

---

<div class="post-metadata">

**Author:** ![TheFops](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@TheFops](https://community.homey.app/u/TheFops)\
**Post date:** [February 14, 2021, 7:33pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1531 "2021-02-14T19:33:26Z")

</div>

> [@Phuturist](#):
>
> you actually updated your flows for these triggers as these need to be changed because of the re-pairing of the device and the adding of the second button?

Yes actually made a new flow to test, see that one below:  
[https://homey.app/f/aN\_1yu](https://homey.app/f/aN_1yu)

Edit: also tried the same app with the other push actions, nothing happens.

---

<div class="post-metadata">

**Author:** ![Timo\_Rogier](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timo_rogier/32/18643_2.png) [@Timo\_Rogier](https://community.homey.app/u/Timo_Rogier)\
**Post date:** [February 14, 2021, 8:36pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1532 "2021-02-14T20:36:23Z")

</div>

I have a Gas sensor.  
I can added the device… But after 2 seconds the device is no longer available…

Can someone help me?

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 14, 2021, 9:10pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1533 "2021-02-14T21:10:50Z")

</div>

> [@TheFops](#):
>
> Edit: also tried the same app with the other push actions, nothing happens.

I have no clue. I have updated the debug branch with more debug logging. Could you re-download, run the app, wait a minute and try a long and short push.

> [@Timo\_Rogier](#):
>
> I have a Gas sensor.  
> I can added the device… But after 2 seconds the device is no longer available…
> 
> Can someone help me?

Can you restart the app and after a minute send me a crash report through the app settings.

---

<div class="post-metadata">

**Author:** ![TheFops](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@TheFops](https://community.homey.app/u/TheFops)\
**Post date:** [February 14, 2021, 9:21pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1534 "2021-02-14T21:21:40Z")

</div>

> [@Phuturist](#):
>
> Could you re-download, run the app, wait a minute and try a long and short push.

Here you go:  
─────────────── Logging stdout & stderr ───────────────  
2021-02-14 21:19:26 [log] [ShellyApp] Initializing Shelly App …  
2021-02-14 21:20:09 [log] [ShellyApp] Discovered device with ID 84CCA8AC9E33 and type SHSW-L on IP address 192.168.0.52  
2021-02-14 21:20:09 [log] [ShellyApp] Discovered device with ID 84CCA8ADAD68 and type SHSW-L on IP address 192.168.0.53  
2021-02-14 21:20:09 [log] [ShellyApp] Discovered device with ID 84CCA8AD58B0 and type SHSW-L on IP address 192.168.0.51  
2021-02-14 21:20:09 [log] [ShellyApp] Discovered device with ID 84CCA8ACD848 and type SHSW-L on IP address 192.168.0.50  
2021-02-14 21:20:46 [log] [ManagerDrivers] [shelly1L] [2] triggering action event for Shelly 1L Gang Plafondlamp and action event null  
2021-02-14 21:20:53 [log] [ManagerDrivers] [shelly1L] [2] triggering action event for Shelly 1L Gang Plafondlamp and action event null

---

<div class="post-metadata">

**Author:** ![Timo\_Rogier](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timo_rogier/32/18643_2.png) [@Timo\_Rogier](https://community.homey.app/u/Timo_Rogier)\
**Post date:** [February 14, 2021, 9:34pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1535 "2021-02-14T21:34:04Z")

</div>

Hierbij!

e6dde96f-5c42-48ce-a6b5-d85b5d2bebde

---

<div class="post-metadata">

**Author:** ![Eduardo\_Rodriguez](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eduardo_rodriguez/32/1902_2.png) [@Eduardo\_Rodriguez](https://community.homey.app/u/Eduardo_Rodriguez)\
**Post date:** [February 14, 2021, 10:56pm UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1536 "2021-02-14T22:56:57Z")

</div>

> [@Phuturist](#):
>
> from the folder where you saved shellies.js run `node shellies.js` and see if it give any data

This is what i get:  
C:\shelly\>node shellies.js  
C:\shelly\shellies.js:1  
(function (exports, require, module, \_\_filename, \_\_dirname) { const shellies = require(�shellies�)  
^

SyntaxError: Invalid or unexpected token  
at new Script (vm.js:80:7)  
at createScript (vm.js:264:10)  
at Object.runInThisContext (vm.js:316:10)  
at Module.\_compile (internal/modules/cjs/loader.js:670:28)  
at Object.Module.\_extensions…js (internal/modules/cjs/loader.js:718:10)  
at Module.load (internal/modules/cjs/loader.js:605:32)  
at tryModuleLoad (internal/modules/cjs/loader.js:544:12)  
at Function.Module.\_load (internal/modules/cjs/loader.js:536:3)  
at Function.Module.runMain (internal/modules/cjs/loader.js:760:12)  
at startup (internal/bootstrap/node.js:308:19)

😰

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 15, 2021, 8:11am UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1537 "2021-02-15T08:11:06Z")

</div>

> ## v3.0.13 - 2021-xx-xx
> 
> - Fixed another issue with the Shelly EM causing the device to appear offline
> - Fixed an issue with the Shelly Gas causing the device to appear offline

For more information on installing version 3.x see [[APP] Shelly - #1097 by Phuturist](https://community.homey.app/t/app-shelly/765/1097)

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [February 15, 2021, 8:13am UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1538 "2021-02-15T08:13:28Z")

</div>

> [@Eduardo\_Rodriguez](#):
>
> This is what i get:

Make sure you save the file in UTF-8 format (use a proper file editor).

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 15, 2021, 8:15am UTC](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765/1539 "2021-02-15T08:15:27Z")

</div>

The issue is that the piece of code you posted isn’t formatted using `</>`, so it contains “smart” quotes which JS cannot handle.

[Previous page](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765.md?page=75)

[Next page](https://community.homey.app/t/app-shelly-smart-solutions-for-every-home-and-office/765.md?page=77)
