[Pro][Dashboard] SmartDash - a dashboard for Homey

I’ll write a complete article on how to install a Sonoff NSPanel Pro with Homey via Smartdash after testing !

It will be a nice way to summerize all the tests done in this topic

2 Likes

Beautiful thing :blush:

I can translate in french if you want :slight_smile: let me know how to process if you’re interessed !

Hi, sure! I’ll send you a message with the text to translate

v 0.240206.3

  • added French language (testing)

v 0.240207.1

  • Fixed bug when locking widget: now it work
  • Database preparation for multiple slide in screensaver @Joel_Larsson

v 0.240207.2

  • Now you can set slides on ScreenSaver: they change every minutes @Joel_Larsson

@diapolon , shall I do a Dutch translation?

It would be nice!

The SmartDash is working on my phone now, with automatic token retrieval. Very nice!

Only the insight data is empty. @Julien_Moors do you see something in combination with a HP2019?

Wow, fast. Thanks a lot, will try it out ASAP! :slight_smile:

What type of insight is it? I tested temperature, humidity, power and simple number.
What resolution is it?

I tested with different things. I have luminance (Licht Sensor) for the last 24h.
The one below is power. I changed almost every setting, so it’s a little strange now…

I try to check if they are some regression.
Maybe there is some strange data that corrupts the graph.
Try with only one insight if it show.
Maybe it the same problem with timestamp formatting!

MFA is causing this error. I made a separate account for my Dashboard without MFA. This account is also in the BearerToken script.

What is MFA? :thinking:
edit, Multi-Factor Authentication :slight_smile:

@Ralf_Groot ,
try this homeyscript with your device and check results:

let uri = 'homey:device:9d2e9a13-fb7c-4619-83e0-a00f56bcf5d7';
let insight = 'measure_current.number4';
let resolution = 'today';
logs = await Homey.insights.getLogEntries({ 'uri': uri, 'id': uri +':'+ insight, 'resolution': resolution});
log(logs.values);

replace uri and insight with your device info, it should return something like this:

[
  { t: '2024-02-07T23:00:00.000Z', v: 100 },
  { t: '2024-02-07T23:05:00.000Z', v: 100 },
  { t: '2024-02-07T23:10:00.000Z', v: 99.98333333333333 },
  { t: '2024-02-07T23:15:00.000Z', v: 99.01666666666667 },
  { t: '2024-02-07T23:20:00.000Z', v: 100 },
  { t: '2024-02-07T23:25:00.000Z', v: 99.98333333333333 },
  { t: '2024-02-07T23:30:00.000Z', v: 99 },
  { t: '2024-02-07T23:35:00.000Z', v: 98.98333333333333 },
  { t: '2024-02-07T23:40:00.000Z', v: 98 },
  { t: '2024-02-07T23:45:00.000Z', v: 98.03333333333333 },
  { t: '2024-02-07T23:50:00.000Z', v: 99.98333333333333 },
  { t: '2024-02-07T23:55:00.000Z', v: 98.98333333333333 },
  { t: '2024-02-08T00:00:00.000Z', v: 98.03333333333333 },
  { t: '2024-02-08T00:05:00.000Z', v: 100 },
  ... 
]

It works great @diapolon , thanks! When you got time you could perhaps add so that you can have a title shown, because its hard to know what is current weather or forcast otherwise in the screensaver!

Also, I would happily translate your app to Swedish if you want to add Swedish?

all languages are welcome, i sent you a text list to translate :slight_smile:

ok for add title!
Is the device name okay? Or you prefer a custom title?