Device Error, I cannot edit inputs. Bit of a show stopper HELP!

I would have thought that would crash the page entirely, as the json string might not parse?
Interesting that you get it on a numerical node… I wonder if it might be the javascript getting in a mix as to whether its a associative array or a index…

If that’s the case this might help? but probably not for @ian as the OpenEvse nodeid is definetly a string already…

I don’t know if it might be significant but 2 days ago I got the “maximum inputs reached, input ??? Ignored”
I immediately edited settings to raise limit from 32 to 64.

Image is emonSD-17Oct19

New update

Log

LAST ENTRIES ON THE LOG FILE
Starting update via service-runner-update.sh (v3.0) >
- emonSD version: emonSD-17Oct19
- supported images: emonSD-24Jul20 emonSD-02Oct19 emonSD-17Oct19
- emonSD base image check passed...continue update
git pull /opt/openenergymonitor/EmonScripts
master
* stable
On branch stable
Your branch is up to date with 'origin/stable'.

nothing to commit, working tree clean
Already up to date.
-------------------------------------------------------------
Main Update Script
-------------------------------------------------------------
Date: Tue 15 Sep 19:53:09 BST 2020
EUID: 1000
openenergymonitor_dir: /opt/openenergymonitor
type: emoncms
firmware: none
Hardware detected: rfm2pi
Start emoncms update:
-------------------------------------------------------------
Update Emoncms Core
-------------------------------------------------------------


Checking status of /var/www/emoncms git repository
- git branch: stable
- no local changes
- running: git pull origin stable

Fetching origin
From https://github.com/emoncms/emoncms
f781bed0..7124d6e0 master -> origin/master
From https://github.com/emoncms/emoncms
* branch stable -> FETCH_HEAD
Already up to date.

Update Emoncms database
[]

-------------------------------------------------------------
Update Emoncms Services
-------------------------------------------------------------
emoncms_mqtt.service already installed
feedwriter.service already installed
service-runner.service already installed

Reloading systemctl deamon
Restarting Services...
- sudo systemctl restart feedwriter.service
--- ActiveState=active ---
- sudo systemctl restart emoncms_mqtt.service
--- ActiveState=active ---
- sudo systemctl restart emonhub.service
--- ActiveState=active ---
/opt/openenergymonitor/EmonScripts/sudoers.d/emoncms-rebootbutton: parsed OK
emonPi emoncms admin reboot button sudoers updated

-------------------------------------------------------------
Update Emoncms Modules
-------------------------------------------------------------
------------------------------------------
Updating /var/www/emoncms/Modules/app module
------------------------------------------
- git branch: stable
- git tags: 2.1.6-3-gfe9183e
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/config module
------------------------------------------
- git branch: stable
- git tags: 2.0.5-6-gd28ff1e
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/dashboard module
------------------------------------------
- git branch: stable
- git tags: 2.0.8
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/device module
------------------------------------------
- git branch: stable
- git tags: 2.0.6
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/graph module
------------------------------------------
- git branch: stable
- git tags: 2.0.9-3-g6c18b0c
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/setup module
------------------------------------------
- git branch: stable
fatal: No names found, cannot describe anything.
- git tags:
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/wifi module
------------------------------------------
- git branch: stable
- git tags: 2.0.3
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

/opt/openenergymonitor/EmonScripts/sudoers.d/wifi-sudoers: parsed OK
wifi sudoers entry updated
------------------------------------------
Updating /opt/emoncms/modules/backup module
------------------------------------------
- git branch: stable
- git tags: 2.2.4
- no local changes
- running: git pull origin stable

Already up to date.
Already on 'stable'
Your branch is up to date with 'origin/stable'.

------------------------------------------
Updating /opt/emoncms/modules/demandshaper module
------------------------------------------
- git branch: stable
- git tags: 1.2.6
- no local changes
- running: git pull origin stable

From https://github.com/emoncms/demandshaper
1eaa3ef..fca5cc6 stable -> origin/stable
9338e5f..1451312 master -> origin/master
0ab8fe0..b4d678e v2_remote_access -> origin/v2_remote_access
Updating 1eaa3ef..fca5cc6
Fast-forward
.gitignore | 1 +
cli/cli_combine_forecasts.php | 57 ++
cli/cli_combine_forecasts_schedule.php | 96 +++
cli/cli_combine_forecasts_schedule_config.php | 109 +++
cli/cli_schedule.php | 85 ++
cli/cli_test_forecast.php | 94 +++
.../{view.php => Views/add_device.php} | 146 +---
demandshaper-module/Views/forecast_test.php | 183 +++++
demandshaper-module/Views/main.php | 211 +++++
demandshaper-module/default.json | 21 +
demandshaper-module/demandshaper.css | 37 +-
demandshaper-module/demandshaper_controller.php | 250 ++----
demandshaper-module/demandshaper_menu.php | 13 +-
demandshaper-module/demandshaper_model.php | 316 ++++++--
demandshaper-module/general.js | 880 ---------------------
demandshaper-module/general.php | 177 -----
demandshaper-module/{ => img}/ajax-loader.gif | Bin
demandshaper-module/{ => img}/checkbox_active.png | Bin
.../{ => img}/checkbox_inactive.png | Bin
demandshaper-module/{ => img}/day-enabled.png | Bin
demandshaper-module/{ => img}/day.png | Bin
demandshaper-module/{ => js}/battery.js | 25 +-
demandshaper-module/js/forecast_builder.js | 132 ++++
demandshaper-module/js/get_device_state.js | 73 ++
demandshaper-module/js/hpmon.js | 56 ++
demandshaper-module/js/main.js | 440 +++++++++++
demandshaper-module/js/openevse.js | 303 +++++++
demandshaper-module/module.json | 2 +-
demandshaper-module/scheduler.js | 245 ------
demandshaper_run.php | 577 ++++----------
devices/Control/openevse.json | 41 -
devices/Control/smartplug.json | 41 -
devices/Control/wifirelay.json | 41 -
devices/emonesp.php | 185 +++++
devices/hpmon.php | 26 +
devices/openevse.php | 182 +++++
devices/smartplug.php | 1 +
devices/wifirelay.php | 1 +
docs/forecasts/carbonintensity.md | 72 ++
docs/forecasts/climacell.md | 95 +++
docs/forecasts/energylocal.md | 123 +++
docs/forecasts/intro.md | 17 +
docs/forecasts/nordpool.md | 107 +++
docs/forecasts/octopusagile.md | 176 +++++
docs/readme.md | 231 ++++++
emoncms_remote_cache.php | 3 -
forecasts/carbonintensity.php | 63 ++
forecasts/economy7.php | 31 +
forecasts/energylocal.php | 79 ++
forecasts/nordpool.php | 121 +++
forecasts/octopusagile.php | 95 +++
forecasts/solarclimacell.php | 86 ++
forecasts/solcast.php | 80 ++
lib/misc.php | 53 ++
scheduler.php => lib/scheduler.php | 242 ++----
lib/scheduler2.php | 246 ++++++
readme.md | 81 +-
tests/openevse.py | 92 +++
tests/smartplug_sim.py | 1 -
59 files changed, 4719 insertions(+), 2422 deletions(-)
create mode 100644 .gitignore
create mode 100644 cli/cli_combine_forecasts.php
create mode 100644 cli/cli_combine_forecasts_schedule.php
create mode 100644 cli/cli_combine_forecasts_schedule_config.php
create mode 100644 cli/cli_schedule.php
create mode 100644 cli/cli_test_forecast.php
rename demandshaper-module/{view.php => Views/add_device.php} (78%)
create mode 100644 demandshaper-module/Views/forecast_test.php
create mode 100644 demandshaper-module/Views/main.php
create mode 100644 demandshaper-module/default.json
delete mode 100644 demandshaper-module/general.js
delete mode 100644 demandshaper-module/general.php
rename demandshaper-module/{ => img}/ajax-loader.gif (100%)
rename demandshaper-module/{ => img}/checkbox_active.png (100%)
rename demandshaper-module/{ => img}/checkbox_inactive.png (100%)
rename demandshaper-module/{ => img}/day-enabled.png (100%)
rename demandshaper-module/{ => img}/day.png (100%)
rename demandshaper-module/{ => js}/battery.js (87%)
create mode 100644 demandshaper-module/js/forecast_builder.js
create mode 100644 demandshaper-module/js/get_device_state.js
create mode 100644 demandshaper-module/js/hpmon.js
create mode 100644 demandshaper-module/js/main.js
create mode 100644 demandshaper-module/js/openevse.js
delete mode 100644 demandshaper-module/scheduler.js
delete mode 100644 devices/Control/openevse.json
delete mode 100644 devices/Control/smartplug.json
delete mode 100644 devices/Control/wifirelay.json
create mode 100644 devices/emonesp.php
create mode 100644 devices/hpmon.php
create mode 100644 devices/openevse.php
create mode 100644 devices/smartplug.php
create mode 100644 devices/wifirelay.php
create mode 100644 docs/forecasts/carbonintensity.md
create mode 100644 docs/forecasts/climacell.md
create mode 100644 docs/forecasts/energylocal.md
create mode 100644 docs/forecasts/intro.md
create mode 100644 docs/forecasts/nordpool.md
create mode 100644 docs/forecasts/octopusagile.md
create mode 100644 docs/readme.md
create mode 100644 forecasts/carbonintensity.php
create mode 100644 forecasts/economy7.php
create mode 100644 forecasts/energylocal.php
create mode 100644 forecasts/nordpool.php
create mode 100644 forecasts/octopusagile.php
create mode 100644 forecasts/solarclimacell.php
create mode 100644 forecasts/solcast.php
create mode 100644 lib/misc.php
rename scheduler.php => lib/scheduler.php (55%)
create mode 100644 lib/scheduler2.php
create mode 100644 tests/openevse.py
Already on 'stable'
Your branch is up to date with 'origin/stable'.

------------------------------------------
Updating /opt/emoncms/modules/postprocess module
------------------------------------------
- git branch: stable
- git tags: 2.1.4
- no local changes
- running: git pull origin stable

Already up to date.
Already on 'stable'
Your branch is up to date with 'origin/stable'.

------------------------------------------
Updating /opt/emoncms/modules/sync module
------------------------------------------
- git branch: stable
- git tags: 2.0.5-3-g109816f
- no local changes
- running: git pull origin stable

Already up to date.
Already on 'stable'
Your branch is up to date with 'origin/stable'.

------------------------------------------
Updating /opt/emoncms/modules/usefulscripts module
------------------------------------------
- git branch: stable
fatal: No names found, cannot describe anything.
- git tags:
- no local changes
- running: git pull origin stable

Already up to date.
Already on 'stable'
Your branch is up to date with 'origin/stable'.

--------------------------------------------
Backup module installation and update script
--------------------------------------------
- Loading EmonScripts config.ini
- Copying default.config.cfg to config.cfg
- Setting config.cfg settings
- Backup module symlink already exists
- PHP Version: 7.3
- Creating /etc/php/7.3/mods-available/emoncmsbackup.ini
post_max_size = 3G
upload_max_filesize = 3G
upload_tmp_dir = /var/opt/emoncms/backup/uploads
- phpenmod emoncmsbackup
- /var/opt/emoncms/backup already exists
- /var/opt/emoncms/backup/uploads already exists
- restarting apache

Update Emoncms database
[]


-------------------------------------------------------------
emonPi update done: Tue 15 Sep 19:53:41 BST 2020
-------------------------------------------------------------
restarting service-runner

A progress report.

The last update had a number of changes in demandshaper.
This morning I went into demandshaper and only 2 devices were showing called Default but http://192.168.1.22/demandshaper/clearall restored them to original names.

OpenEVSE has now disappeared from the list of devices.

Thanks @ian, has that made any difference to the input list? I imagine you are seeing the same error?
Device module looks up to date in the log, so that’s fine.

@TrystanLea

Difficult to see any changes on the input list with the error popping up so quickly I cannot scroll completely down the list.

As a last resort I have just upgraded to emonSD-24Jul20 (Stable) image.

USB import worked perfectly.

Bad news is the problem remains when I switch to inputs page!

There was an error creating device: nodeid=openevse message=Device already exists

And as I reported in an earlier post OpenEVSE disappeared from Demandshaper although that may be the result of the demandshaper updates I pulled in on the last update.

Should I now try all the delete methods I tried before? I haven’t taken any action so far in case there is any reports I can obtain and post to help track the issue.

Also what process should I follow to get OpenEVSE into demandshaper? Again I have done nothing since switching to the latest image apart from running an update.

LAST ENTRIES ON THE LOG FILE
Starting update via service-runner-update.sh (v3.0) >
- emonSD version: emonSD-24Jul20
- supported images: emonSD-24Jul20 emonSD-02Oct19 emonSD-17Oct19
- emonSD base image check passed...continue update
git pull /opt/openenergymonitor/EmonScripts
master
* stable
On branch stable
Your branch is up to date with 'origin/stable'.

nothing to commit, working tree clean
Already up to date.
-------------------------------------------------------------
Main Update Script
-------------------------------------------------------------
Date: Wed 16 Sep 16:13:37 BST 2020
EUID: 1000
openenergymonitor_dir: /opt/openenergymonitor
type: emoncms
firmware: none
Hardware detected: rfm2pi
Start emoncms update:
-------------------------------------------------------------
Update Emoncms Core
-------------------------------------------------------------


Checking status of /var/www/emoncms git repository
- git branch: stable
- no local changes
- running: git pull origin stable

Fetching origin
From https://github.com/emoncms/emoncms
* branch stable -> FETCH_HEAD
Already up to date.

Update Emoncms database
[]

-------------------------------------------------------------
Update Emoncms Services
-------------------------------------------------------------
emoncms_mqtt.service already installed
feedwriter.service already installed
service-runner.service already installed

Reloading systemctl deamon
Restarting Services...
- sudo systemctl restart feedwriter.service
--- ActiveState=active ---
- sudo systemctl restart emoncms_mqtt.service
--- ActiveState=active ---
- sudo systemctl restart emonhub.service
--- ActiveState=active ---
/opt/openenergymonitor/EmonScripts/sudoers.d/emoncms-rebootbutton: parsed OK
emonPi emoncms admin reboot button sudoers updated

-------------------------------------------------------------
Update Emoncms Modules
-------------------------------------------------------------
------------------------------------------
Updating /var/www/emoncms/Modules/app module
------------------------------------------
- git branch: stable
- git tags: 2.1.6-3-gfe9183e
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/config module
------------------------------------------
- git branch: stable
- git tags: 2.0.5-6-gd28ff1e
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/dashboard module
------------------------------------------
- git branch: stable
- git tags: 2.0.8
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/device module
------------------------------------------
- git branch: stable
- git tags: 2.0.6
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/graph module
------------------------------------------
- git branch: stable
- git tags: 2.0.9-3-g6c18b0c
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/setup module
------------------------------------------
- git branch: stable
fatal: No names found, cannot describe anything.
- git tags:
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

------------------------------------------
Updating /var/www/emoncms/Modules/wifi module
------------------------------------------
- git branch: stable
- git tags: 2.0.3
- no local changes
- running: git pull origin stable

Fetching origin
Already on 'stable'
Your branch is up to date with 'origin/stable'.
Already up to date.

/opt/openenergymonitor/EmonScripts/sudoers.d/wifi-sudoers: parsed OK
wifi sudoers entry updated
------------------------------------------
Updating /opt/emoncms/modules/backup module
------------------------------------------
- git branch: stable
- git tags: 2.2.4
- no local changes
- running: git pull origin stable

Already up to date.
Already on 'stable'
Your branch is up to date with 'origin/stable'.

------------------------------------------
Updating /opt/emoncms/modules/demandshaper module
------------------------------------------
- git branch: stable
- git tags: 1.2.6-60-gfca5cc6
- no local changes
- running: git pull origin stable

From https://github.com/emoncms/demandshaper
c20a456..bcfb1ff master -> origin/master
Already up to date.
Already on 'stable'
Your branch is up to date with 'origin/stable'.

------------------------------------------
Updating /opt/emoncms/modules/postprocess module
------------------------------------------
- git branch: stable
- git tags: 2.1.4
- no local changes
- running: git pull origin stable

Already up to date.
Already on 'stable'
Your branch is up to date with 'origin/stable'.

------------------------------------------
Updating /opt/emoncms/modules/sync module
------------------------------------------
- git branch: stable
- git tags: 2.0.5-3-g109816f
- no local changes
- running: git pull origin stable

Already up to date.
Already on 'stable'
Your branch is up to date with 'origin/stable'.

------------------------------------------
Updating /opt/emoncms/modules/usefulscripts module
------------------------------------------
- git branch: stable
fatal: No names found, cannot describe anything.
- git tags:
- no local changes
- running: git pull origin stable

Already up to date.
Already on 'stable'
Your branch is up to date with 'origin/stable'.

--------------------------------------------
Backup module installation and update script
--------------------------------------------
- Loading EmonScripts config.ini
- Copying default.config.cfg to config.cfg
- Setting config.cfg settings
- Backup module symlink already exists
- PHP Version: 7.3
- Creating /etc/php/7.3/mods-available/emoncmsbackup.ini
post_max_size = 3G
upload_max_filesize = 3G
upload_tmp_dir = /var/opt/emoncms/backup/uploads
- phpenmod emoncmsbackup
- /var/opt/emoncms/backup already exists
- /var/opt/emoncms/backup/uploads already exists
- restarting apache

Update Emoncms database
[]


-------------------------------------------------------------
emonPi update done: Wed 16 Sep 16:14:09 BST 2020
-------------------------------------------------------------
restarting service-runner

I did manage to get a screenshot of openevse.
Do the details looks correct?

Agh how frustrating, sorry about this.

do you see the device openevse in your device list, if you look at it manually?

/device/list.json

I think I’ve found what’s causing the issue, I think it’s a capitalisation issue, If you have a device in the device list that is capitalised differently from the nodeid in the input list it’s causing this error, I’ve just been able to replicate it here.

Can you check if there is a device called openevse with different capitalisation on the hidden device page:

/device/view

If there is, you can delete it from there safely without affecting your inputs.

I’ve pushed a fix for this to the device module, if you would like to run the updater instead it should fix it for you.

Yes I’ve just released v2! I will be doing a forum post on it shortly :slight_smile:

Fixed!
Thanks very much.
What do I need to do to reinstate OpenEVSE in demandshaper?

Great, you need to select the OpenEVSE device template by clicking on the cog icon on the inputs page, see screenshots in the guide here Smart Charge your Electric Vehicle - Guide | OpenEnergyMonitor. You dont need to initialize at the end, just save and then cancel

Thanks.

I had understood those instructions first time round but wasn’t sure I could safely do it again.

I am still puzzling how I got the wrong device name. I am pretty sure I followed the instructions correctly.

One thing I have noticed now I can see all the inputs is that I have two sets of openevse inputs.

Both updating. Is this normal? Could this be a clue to the incorrect device name I created?

I also have demandshaper Unresponsive errors.

I will pursue those on the other thread.

Do you have the OpenEvse configured to send data to emoncms using both the HTTP (Energy Monitoring: Enable Emoncms) and MQTT? I see that its a bit confusing, the MQTT actually replaces that other route…

I am still seeing the error

image

Hi everyone,

I have a similar issue.
image
The emonpi was set up by someone else previously and I have limited understanding on how they set the inputs up etc. I noticed that there is an input tab called msgMbus that hasn’t got any inputs attached to it. Could this be the issue? Would deleting this solve the issue?


or is the problem the msg.Mbus nodeid having a capital letter for example?

At the moment the inputs are getting readings and I am able to create new feeds. However, is a very time consuming process as the message keeps popping up. I would like to try solve this issue however I am worried I will loose data/ data will not be plotted in the apps for a while since my project relies on these readings.
Thank you in advance for your help!

Hello @Rolop it looks like this is a bug being created by having two nodes with similar names, the first called msgMBus and the second msg.MBus. I’ve now fixed this error in the device module, are you able to update the system via the updater on the admin page?

Hi @TrystanLea I can’t see the admin ribbon on emmoncms


I can only log into emoncms.org as I only have remote access, is there any way to update through remote access? Would the error get fixed if I delete the input msgMbus?
Otherwise I will try to get someone to access emoncms locally.

Thanks a lot!

Aha it was me that needed to update emoncms.org! I’ve done that now, could you check your account again?