API application does not change organizationID

Is this a bug or a feature request?
bug: yes
What did you expect?
I expect change organizationID to my defined
What happened?
problem is with PUT endpoint PUT /api/applications/{application.id}
example if I set an organizationID to something other than the one stored in the record and send it, all the other recordings will change to the one organizationID
What version are your using?
api version: 1.0.0
How can your issue be reproduced?
create an app in an organization via POST. Then create a second organization. And then try changing the application (PUT) in one organization to change the binding to another existing one by using the organizationID column

I wonder why this endpoint is missing when in the application (port 8080) this functionality is and in the API is not ???

It is not supported to move applications between organizations. The reason is that the service-profiles and device-profiles are also assigned to an organization and would need to be re-created.

@brocaar ok, thanks! but model description is incorrect:

organizationID (string, optional): ID of the organization to which the application belongs. ,

I have updated the api documentation, see the above commit.


Test "Rounding Inner Node Controversy Horizontal" fails because root.Height() returns Undefined value

	config := NewConfig()
	defer config.Free()

	root := NewNodeWithConfig(config)
	defer root.Free()
	root.Style().SetFlexDirection(FlexDirectionRow)
	root.Style().SetWidth(320)

	c0 := NewNodeWithConfig(config)
	defer c0.Free()
	c0.Style().SetFlexGrow(1)
	c0.Style().SetHeight(10)
	root.InsertChild(c0, 0)

	c1 := NewNodeWithConfig(config)
	defer c1.Free()
	c1.Style().SetFlexGrow(1)
	c1.Style().SetHeight(10)
	root.InsertChild(c1, 1)

	c1c0 := NewNodeWithConfig(config)
	defer c1c0.Free()
	c1c0.Style().SetFlexGrow(1)
	c1c0.Style().SetHeight(10)
	c1.InsertChild(c1c0, 0)

	c2 := NewNodeWithConfig(config)
	defer c2.Free()
	c2.Style().SetFlexGrow(1)
	c2.Style().SetHeight(10)
	root.InsertChild(c2, 2)
	root.Style().SetDirection(DirectionLTR)
	root.CalculateLayout(Undefined, Undefined, DirectionLTR)

	assert.EqualValues(t, 0, root.Layout().Left())
	assert.EqualValues(t, 0, root.Layout().Top())
	assert.EqualValues(t, 320, root.Layout().Width())
	assert.EqualValues(t, 10, root.Layout().Height())  <== Fails, expected: int(10) actual: float32(1e+21) which is Undefined

Shouldn't the root node's height be adjusted to the final layout height even if it was calculated without giving any size restrictions?
I have a lot of test cases failing in the same sense that root.Height() or root.Width() return Undefined instead of the expected layout result sizes.

Note: I'm using yoga lib from Go, the C tests seem to work... but why do I only get different results for the root node checks?

Note: I'm using yoga lib from Go, the C tests seem to work... but why do I only get different results for the root node checks?

The problem came from the Go bindings, which used a screwed up value for Undefined.


Test Intervention: Variation of Parameters over Time

Conduct tests involving interventions and observe variations in parameters over time.

I tried changing gamma over time. The results are wrong.
https://app.terarium.ai/app/#/projects/40/workflows/Workflow/bf5f14b8-237f-49da-bc27-790c9cf1ead4

Just writing this down as a reminder for when i look into this more
I will need to add interventions to payload:
{
  "engine": "ciemss",
  "model_config_id": "ba8da8d4-047d-11ee-be56",
  "timespan": {
    "start": 0,
    "end": 90
  },
  "interventions": [{"timestep":2,"name":"beta","value":0.4}],
  "extra": {
    "num_samples": 100
  }
}

https://github.com/DARPA-ASKEM/pyciemss-service/blob/6cfe408143b6505980d24b82ad0807c7a5499958/service/models.py#L105-L107


Pin yapf  for v1.1.x

problem this fixes just seen in
https://grpc-testing.appspot.com/job/gRPC_pull_requests_linux/2521/testReport/junit/(root)/sanity_linux_dbg/tools_distrib_yapf_code_sh/
pr #9589 against master


How can I output the command before it's executed?

sh's logging is not really an option, I think, because I'd like to customize the output to my liking.
I tried using _out with a callback, and it kinda works, but only if and when the command produces output.
Is there something like the _done hook but before execution?
Thank you 🙇

Why do you need the help of sh for this? You should already know which command you want to execute before invoking sh.

I'm using sh in my project's build script and I'd like to keep it as clean and concise as possible. Therefore I'd like to avoid duplication like:
print("poetry run pytest")
sh.poetry.run.pytest()

You can get the Command object before executing it, and use that for your print statement:
>>> cmd = sh.git.status
>>> print(f'Running {cmd}')
Running /usr/local/bin/git status
>>> cmd()
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

Ah, thanks! That should work well enough.


CSHARPFUNDAMENTAL: Set1-Task3

shri I accidentally delete the dotnet.yml file? what I have to do now? And I Also resolved the comment in person foundation PR.

shri I accidentally delete the dotnet.yml file? what I have to do now? And I Also resolved the comment in person foundation PR.

Add the file back


Publishing for scala 2.12 milestones.

Can you please publish for Scala 2.12 milestones?
We have already key projects published for that milestone, e.g. akka (http://akka.io/docs/). Would be very helpful to have this for scalatest as well. Looks like 2.2.4 is not yet published for M2, M3.
Since not all projects are quickly published for the latest release, it is helpful publishing for M2, not just M3, so that projects with multiple dependencies can stay on M2 until all their dependencies have been published for M3. Hopefully not too much trouble...
This would be immensely helpful for projects that need to catch up with 2.12 prior to its final release. Specifically for my case, I have wrangled a humble tree of projects cross-compiling for M2, where scalatest is the last one to nail. 2.2.5 for M2 would be awesome :+1:

@matanster not sure why we appended the M3 to the release version, seems to be the 2.12.0-M3 in the artifact group should already serve the purpose, shouldn't be a problem to release 2.2.5 for scala 2.12.0-M2, let's ask confirmation from @bvenners ?

@bvenners please see the comment this refers to, about artifact naming, in https://github.com/scalatest/scalatest/issues/749

@matanster sorry for the delay in responding to this issue. The reason I tack on a Mn suffix is because it isn't a real release, but a quicky release  to let people test out a Scala milestone releases. That does make it trickier for cross compiling, but I'm not sure how many rose compile against Scala milestone releases, as they are works in progress.
That said, are there any ScalaTest releases you lack at this point?


Complete base API Route and controller for User

Add the Next API Routes and create the controllers for UserProfile

GET user by ID
Create user
Add game to users games (Held back by Issue #7)

Managed to resolve the issue with NextAuth and the mongoDbAdapter as well


The introduction needs to be clearer about the breadth of the scope and goals

The introduction needs to explain that this intended to be independent of the particular claims format used to represent the verified claims.  For instance, it should explicitly say that both VCs and JWTs with verified claims can be requested with this spec.

Closed via merge of https://github.com/decentralized-identity/presentation-exchange/pull/83


Working CLI Wix installer

This also moves the new launcher exe code from https://github.com/keybase/kbrunquiet/pull/1.
Note the xml and scripts aren't hooked to anything yet. Building the CLI was kind of a prelude to the GUI installer, but this should be ready for shipping CLI too.
@maxtaco @gabriel

From the other, closed PR:
http://stackoverflow.com/questions/15952892/using-the-console-in-a-gui-app-in-windows-only-if-its-run-from-a-console?lq=1
An executable has to be marked as one or the other in Windows (console or windowing). If it is marked windows and tries to open a console after launching, there can be races getting the right stdin stream, or the invoking console not waiting for it to finish, etc. If it is marked console and switches to windows, we're back to the ugly flashing console window at launch, which was the original reason we went down this particular rabbit hole. The fact that programs like Visual Studio and Java use the 2-executable solution leads me to believe there probably isn't anything better.

maybe put this in go/tools/ since it's a small utility?
also i don't think you need kb in front... maybe just winrun or runquiet or something like that?

Can one of the admins verify this patch?

This has been superseded by https://github.com/keybase/client/pull/2885. Closing.


reorganise repo

Signed-off-by: Mohammad Shehar Yaar Tausif<EMAIL_ADDRESS>

completes #19


Update webhook.port to other value than kubelet

Fixes #1981

Hi @csantanapr ! Thanks for your PR and your interest in the project 🥳. We originally added the 10250 as a default because for many many clusters (GKE/EKS/AKS), there are some firewall rules/security group rules that are configured that prevent traffic on a sane default port like 9443. We eventually switched to 10250 to be more compatible through most of the environments.
Some contexts here https://github.com/external-secrets/external-secrets/issues/956 and here https://github.com/external-secrets/external-secrets/issues/1378.
Having said that, I'd be fine to change those defaults. @moolen any thoughts?

I'm a little hesitant changing the default here as it will likely break users. Port 10250 is by default allowed in the security groups provided by  GKE/EKS terraform modules. It depends on a couple of factors whether or not the webhook port is actually accessible from the control plane, e.g. which CNI is used.
The best we can do here IMHO is to document when the defaults setting works and when to move away from it.

@gusfcarvalho @moolen
I'm OK if the default port number is not changed, and instead docs are added to the chart like cert manager mentions the fact that the port 10250 could potential conflict with kubelet in hostNetwork: true which in case of Fargate the containers and kubelet share the same IP.

As decided in today's community meeting - we are updating the docs to reflect the default Fargate case, and will close this PR. Thanks again for the interest and contribution @csantanapr !

I cannot find a mention of the fargate port in the docs. Was it ever added?


Please add some additional documentation around the bind function

There seems to be virtually no documentation about how bind works.  It would be great if you incorporated some use cases into the demo.
Also, some additional clarification, such as:

Will setting the bound value to null or using clearAll cause the binding to get lost?
Where should the binding be defined (app.js > run for root scope, otherwise controller?)
Can you accidentally (or intentionally) register multiple bindings on a single property?
Is the $timeout function call in your example necessary?  If so, why?

Thanks

It also seems my assumption about being able to bind an object is wrong, as doing so seems to make the object inoperable in the angular app, and the bound property in localStorage gets set to null and not updated.


[go_router] GoRouteData object recreated multiple times during navigation execution

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
To reproduce the problem simply perform a navigation (both go and push method reproduce the problem)
Expected results
As my understanding from the code comment, the intention is to preserve the same GoRouteData instance to improve performances, so the expected result is not to create additional ones for redirect and build executions.
Actual results
Since PR #3005 everytime a go or push is performed, the GoRouteData object is created 3 times:

when performing the navigation ex.: MyGoRouteData().go(context)
when the GoRouteData redirect function is called
when the GoRouteData build or pageBuilder functions are called

In the previous implementation the GoRouteData itself was passed as the extra parameter, thus being returned by the T factoryImpl(GoRouterState state) function in GoRouteData.$route static method and mitigating the problem.
In the current implementation an Expando on GoRouterState is used to cache the GoRouteData instance, but the GoRouterState instance is recreated each time $route.build, $route.pageBuilder or $route.redirect are called resulting in multiple calls of the factory(state) instruction.
Code sample

main.dart
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';

part 'main.g.dart';

void main() {
  runApp(const MainApp());
}

final router = GoRouter(
  debugLogDiagnostics: true,
  routes: $appRoutes,
);

@TypedGoRoute<RootPageData>(
  path: '/',
  routes: [
    TypedGoRoute<LalleroPageData>(
      path: 'lallero',
    )
  ],
)
class RootPageData extends GoRouteData {
  RootPageData() {
    debugPrint('root page $hashCode');
  }

  @override
  Widget build(BuildContext context, GoRouterState state) => Scaffold(
        appBar: AppBar(),
        body: Center(
          child: ElevatedButton(
            child: const Text('Go to Lallero Page'),
            onPressed: () => LalleroPageData().go(context),
          ),
        ),
      );
}

class LalleroPageData extends GoRouteData {
  LalleroPageData() {
    debugPrint('lallero page $hashCode');
  }

  @override
  Widget build(BuildContext context, GoRouterState state) => Scaffold(
        appBar: AppBar(),
        body: Center(
          child: ElevatedButton(
            child: const Text('Go to Root Page'),
            onPressed: () => RootPageData().go(context),
          ),
        ),
      );
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      routerConfig: router,
    );
  }
}

main.g.dart
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'main.dart';

// **************************************************************************
// GoRouterGenerator
// **************************************************************************

List<RouteBase> get $appRoutes => [
      $rootPageData,
    ];

RouteBase get $rootPageData => GoRouteData.$route(
      path: '/',
      factory: $RootPageDataExtension._fromState,
      routes: [
        GoRouteData.$route(
          path: 'lallero',
          factory: $LalleroPageDataExtension._fromState,
        ),
      ],
    );

extension $RootPageDataExtension on RootPageData {
  static RootPageData _fromState(GoRouterState state) => RootPageData();

  String get location => GoRouteData.$location(
        '/',
      );

  void go(BuildContext context) => context.go(location);

  Future<T?> push<T>(BuildContext context) => context.push<T>(location);

  void pushReplacement(BuildContext context) =>
      context.pushReplacement(location);
}

extension $LalleroPageDataExtension on LalleroPageData {
  static LalleroPageData _fromState(GoRouterState state) => LalleroPageData();

  String get location => GoRouteData.$location(
        '/lallero',
      );

  void go(BuildContext context) => context.go(location);

  Future<T?> push<T>(BuildContext context) => context.push<T>(location);

  void pushReplacement(BuildContext context) =>
      context.pushReplacement(location);
}

Screenshots or Video
No response
Logs
Logs
Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
main.dart:1
✓  Built build/app/outputs/flutter-apk/app-debug.apk.
Connecting to VM Service at ws://<IP_ADDRESS>:61049/kcWYLQhE_WQ=/ws
[GoRouter] Full paths for routes:
             => /
             =>   /lallero
[GoRouter] setting initial location null
I/flutter (13439): root page 116147713
I/flutter (13439): root page 76135971
[GoRouter] Using MaterialApp configuration
I/router_data_bug(13439): Compiler allocated 4579KB to compile void android.view.ViewRootImpl.performTraversals()
E/SurfaceSyncer(13439): Failed to find sync for id=0
W/Parcel  (13439): Expecting binder but got null!
I/flutter (13439): lallero page 693854106
D/EGL_emulation(13439): app_time_stats: avg=1016.46ms min=5.49ms max=2027.43ms count=2
[GoRouter] going to /lallero
I/flutter (13439): root page 736197803
I/flutter (13439): lallero page<PHONE_NUMBER>
I/flutter (13439): root page<PHONE_NUMBER>

Flutter Doctor output
Doctor output
❯ fflutter doctor -v
[!] Flutter (Channel stable, 3.7.12, on macOS 13.3.1 22E261 darwin-arm64, locale scn-IT)
    • Flutter version 3.7.12 on channel stable at /Users/mmucaria/fvm/versions/stable
    ! Warning: `flutter` on your path resolves to /Library/Developer/mmucaria/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/mmucaria/fvm/versions/stable. Consider adding /Users/mmucaria/fvm/versions/stable/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Library/Developer/mmucaria/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/mmucaria/fvm/versions/stable. Consider adding /Users/mmucaria/fvm/versions/stable/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4d9e56e694 (2 weeks ago), 2023-04-17 21:47:46 -0400
    • Engine revision 1a65d409c7
    • Dart version 2.19.6
    • DevTools version 2.20.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/mmucaria/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • ANDROID_HOME = /Users/mmucaria/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.12.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[✓] VS Code (version 1.77.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.62.0

[✓] Connected device (3 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 13 (API 33) (emulator)
    • macOS (desktop)             • macos         • darwin-arm64   • macOS 13.3.1 22E261 darwin-arm64
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 113.0.5672.63

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

This is the piece of code I'm referring to: GoRouteData.$route
T factoryImpl(GoRouterState state) {
      final Object? extra = state.extra;

      // If the "extra" value is of type `T` then we know it's the source
      // instance of `GoRouteData`, so it doesn't need to be recreated.
      if (extra is T) {
        return extra;
      }

      return (_stateObjectExpando[state] ??= factory(state)) as T;
    }

This issue is reproducible on the latest package version go_router_builder: ^2.0.0 with provided sample code.
When navigating to next page (from root to lallero):
lallero page 261822312
root page 812869715
lallero page 434442571
[GoRouter] going to /lallero
root page 725406340
lallero page 212186620

And when back to root page:
root page 334364186
root page 635036597
[GoRouter] going to /
root page 756859466

Labeling the issue for more insights, thank you!

flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.7.12, on macOS 13.0.1 22A400 darwin-x64, locale en-VN)
    • Flutter version 3.7.12 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4d9e56e694 (2 days ago), 2023-04-17 21:47:46 -0400
    • Engine revision 1a65d409c7
    • Dart version 2.19.6
    • DevTools version 2.20.1

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 32.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[✓] IntelliJ IDEA Community Edition (version 2022.1.1)
    • IntelliJ at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.77.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.62.0

[✓] Connected device (3 available)
    • SM T225 (mobile) • R9JT3004VRJ • android-arm64  • Android 13 (API 33)
    • macOS (desktop)  • macos       • darwin-x64     • macOS 13.0.1 22A400 darwin-x64
    • Chrome (web)     • chrome      • web-javascript • Google Chrome 112.0.5615.137

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

[!] Flutter (Channel master, 3.11.0-1.0.pre.43, on macOS 13.0.1 22A400 darwin-x64, locale en-VN)
    • Flutter version 3.11.0-1.0.pre.43 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 15386d9d17 (21 minutes ago), 2023-05-03 21:35:35 -0400
    • Engine revision ee65be7d8f
    • Dart version 3.1.0 (build 3.1.0-70.0.dev)
    • DevTools version 2.23.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 32.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] IntelliJ IDEA Community Edition (version 2022.1.1)
    • IntelliJ at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.77.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.62.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 13.0.1 22A400 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 112.0.5615.137

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.


md-grid-list, md-grid-tile can't find the way how to align items to left/right

Bug, feature request, or proposal:
I can't find the way how to align md-grid-tile content to left/right.
Which versions of Angular, Material, OS, browsers are affected?
material ver: 2.0.0-alpha.8-1,
angular2 ver: 2.0.0-rc.6

@crisbeto Can we determine if there a bug here or if this is just a question?

@beatadelura could you post the code that you're using?

@crisbeto I decided, I will not use grid from material2 so I don't have the code. Anyway I tried to use the same code from here

the solution is to remove style.css from angular-cli.json


move plugin testing section to contributing.md

https://github.com/blog/1184-contributing-guidelines

Coverage remained the same at 100.0% when pulling c199c514e38f0ebcdf6745de9eb2797952095a20 on gaboesquivel:patch-1 into 971996f678d5c283b141724f1e51faa495d36901 on glennjones:master.


How to paginate in Flask-SQLAlchemy for two same struct tables?

class QL_ORDER_GROUP(BASE, db.Model):
    __tablename__ = 'ql_order_group'
    id = db.Column(db.Integer, primary_key=True)
    advertiser_id = db.Column(db.Integer)
    name = db.Column(db.String(255))

class QX_ORDER_GROUP(BASE, db.Model):
    __tablename__ = 'qx_order_group'
    id = db.Column(db.Integer, primary_key=True)
    advertiser_id = db.Column(db.Integer)
    name = db.Column(db.String(255))

Two tables have  same struct, how to query and paginate them with pageIndex and pageSize?
**one table**
QL_ORDER_GROUP.query.filter_by(advertiser_id=123).order_by(QL_ORDER_GROUP.id.desc()).paginate(pageIndex, pageSize, False).items

Please use Stack Overflow for questions about your own code. This tracker is for issues related to the project itself. Be sure to include a minimal, complete, and verifiable example.


原神文件校验BUG[Bug]

Description

校验100%时报错End of Central Directory record could not be found.重新校验无果
Reproduction Steps
校验原神游戏资源
Expected Behavior
No response
Screenshots
No response
Starward Version
0.8.2
Windows Version
Windows 11 23H2 25393.1 Dev Channel渠道
Log
[17:43:03.103] [INFO]
Welcome to Starward v0.8.2
System: Microsoft Windows NT 10.0.25393.0
Command Line: "D:\Mihoyo Games\Starward\app-0.8.2\Starward.dll" download --biz hk4e_cn --loc "D:\Mihoyo Games\Genshin Impact\Genshin Impact Game" --lang 1

[17:43:03.198] [INFO] Starward.Services.DatabaseService
Database path is 'D:\Mihoyo Games\Starward\StarwardDatabase.db'

[17:43:03.238] [INFO] Starward.Services.DatabaseService
Database version is 4, target version is 4.

[17:43:04.325] [INFO] Starward.Services.DownloadGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[17:43:04.325] [INFO] Starward.Services.DownloadGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.005"

[17:43:04.325] [INFO] Starward.Services.DownloadGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/Audio_Chinese_3.8.0.zip"

[17:43:04.326] [INFO] Starward.Services.DownloadGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.001"

[17:43:04.326] [INFO] Starward.Services.DownloadGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[17:43:04.326] [INFO] Starward.Services.DownloadGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.004"

[17:43:04.653] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.002.slice.001", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[17:43:04.653] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.002.slice.002", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[17:43:04.654] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.002.slice.003", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[17:43:04.654] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.002.slice.004", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[17:43:04.654] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.002.slice.000", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[17:43:04.655] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.002.slice.006", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[17:43:04.655] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.002.slice.005", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[17:43:04.655] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.003.slice.001", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[17:43:04.655] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.002.slice.008", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[17:43:04.655] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.002.slice.007", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[17:43:04.655] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.003.slice.000", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[17:43:04.655] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.002.slice.009", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[17:43:04.655] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.003.slice.002", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[17:43:04.656] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.003.slice.004", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[17:43:04.656] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.003.slice.003", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[17:43:04.656] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.003.slice.005", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[17:43:04.656] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.003.slice.006", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[17:43:04.656] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.003.slice.007", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[17:43:04.656] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.003.slice.008", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[17:43:04.656] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.003.slice.009", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[17:43:04.657] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.004.slice.000", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.004"

[17:43:04.657] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.004.slice.001", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.004"

[17:43:04.658] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.004.slice.002", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.004"

[17:43:04.658] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.004.slice.003", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.004"

[17:51:17.628] [EROR] Starward.Services.DownloadGameService
Download Slice
System.IO.IOException:  Received an unexpected EOF or 0 bytes from the transport stream.
   at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16)
   at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](Memory`1, CancellationToken)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16)
   at System.Net.Http.HttpConnection.ReadAsync(Memory`1)
   at System.Net.Http.HttpConnection.ContentLengthReadStream.ReadAsync(Memory`1, CancellationToken)
   at Starward.Services.DownloadGameService.<>c__DisplayClass56_0.<<DownloadAsync>b__0>d.MoveNext() in D:\a\Starward\Starward\Starward\Services\DownloadGameService.cs:line 744
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Parallel.<>c__50`1.<<ForEachAsync>b__50_0>d.MoveNext()
--- End of stack trace from previous location ---
   at Starward.Services.DownloadGameService.DownloadAsync(CancellationToken cancellationToken) in D:\a\Starward\Starward\Starward\Services\DownloadGameService.cs:line 709

[18:15:18.759] [INFO] Starward.Services.DownloadGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.001"

[18:15:18.759] [INFO] Starward.Services.DownloadGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[18:15:18.759] [INFO] Starward.Services.DownloadGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[18:15:18.760] [INFO] Starward.Services.DownloadGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.004"

[18:15:18.760] [INFO] Starward.Services.DownloadGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/Audio_Chinese_3.8.0.zip"

[18:15:18.760] [INFO] Starward.Services.DownloadGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.005"

[18:15:18.961] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.002.slice.000", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[18:15:18.961] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.002.slice.004", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[18:15:18.961] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.002.slice.002", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[18:15:18.961] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.002.slice.003", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[18:15:18.961] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.002.slice.001", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[18:15:18.961] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.002.slice.005", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[18:15:18.962] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.002.slice.006", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[18:15:18.962] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.002.slice.007", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[18:15:18.962] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.002.slice.009", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[18:15:18.962] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.002.slice.008", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[18:15:18.962] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.003.slice.000", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[18:15:18.963] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.003.slice.001", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[18:15:18.963] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.003.slice.002", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[18:15:18.963] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.003.slice.005", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[18:15:18.963] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.003.slice.003", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[18:15:18.963] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.003.slice.004", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[18:15:18.963] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.003.slice.006", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[18:15:18.964] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.003.slice.007", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[18:15:18.964] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.003.slice.008", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[18:15:18.965] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.003.slice.009", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[18:15:18.965] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.004.slice.000", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.004"

[18:15:18.965] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.004.slice.001", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.004"

[18:15:18.966] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.004.slice.002", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.004"

[18:15:18.966] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.004.slice.003", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.004"

[18:25:35.891] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.002.slice.008", Elapsed 00:10:16.9275876

[18:25:35.893] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.004.slice.004", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.004"

[18:25:46.471] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.003.slice.002", Elapsed 00:10:27.5071376

[18:25:46.471] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.004.slice.005", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.004"

[18:26:18.202] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.003.slice.006", Elapsed 00:10:59.2377874

[18:26:18.202] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.004.slice.006", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.004"

[18:26:22.705] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.004.slice.000", Elapsed 00:11:03.7396445

[18:26:22.710] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.004.slice.007", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.004"

[18:27:10.742] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.003.slice.000", Elapsed 00:11:51.7797382

[18:27:10.743] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.004.slice.008", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.004"

[18:30:41.218] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.003.slice.004", Elapsed 00:15:22.2544475

[18:30:41.219] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.004.slice.009", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.004"

[18:33:33.206] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.003.slice.003", Elapsed 00:18:14.2425403

[18:33:33.207] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.005.slice.000", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.005"

[18:36:29.320] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.002.slice.003", Elapsed 00:21:10.3586066

[18:36:29.321] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.005.slice.001", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.005"

[18:37:55.043] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.002.slice.006", Elapsed 00:22:36.0806329

[18:37:55.044] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.005.slice.002", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.005"

[18:40:33.757] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.002.slice.007", Elapsed 00:25:14.7941901

[18:40:33.768] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.005.slice.003", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.005"

[18:41:02.593] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.002.slice.001", Elapsed 00:25:43.6316978

[18:41:02.594] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.005.slice.004", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.005"

[18:41:18.697] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.003.slice.001", Elapsed 00:25:59.7336110

[18:41:18.698] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.005.slice.005", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.005"

[18:41:18.993] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.003.slice.005", Elapsed 00:26:00.0299760

[18:41:18.994] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.005.slice.006", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.005"

[18:42:40.279] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.002.slice.005", Elapsed 00:27:21.3169806

[18:42:40.279] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.005.slice.007", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.005"

[18:43:56.285] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.003.slice.008", Elapsed 00:28:37.3203277

[18:43:56.287] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "YuanShen_3.8.0.zip.005.slice.008", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.005"

[18:45:09.788] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.002.slice.002", Elapsed 00:29:50.8264414

[18:45:09.789] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "Audio_Chinese_3.8.0.zip.slice.000", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/Audio_Chinese_3.8.0.zip"

[18:49:22.247] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.004.slice.001", Elapsed 00:34:03.2814788

[18:49:22.250] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "Audio_Chinese_3.8.0.zip.slice.001", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/Audio_Chinese_3.8.0.zip"

[18:51:31.162] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.004.slice.002", Elapsed 00:36:12.1953853

[18:51:31.162] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "Audio_Chinese_3.8.0.zip.slice.002", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/Audio_Chinese_3.8.0.zip"

[18:52:04.006] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.002.slice.000", Elapsed 00:36:45.0447329

[18:52:04.008] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "Audio_Chinese_3.8.0.zip.slice.003", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/Audio_Chinese_3.8.0.zip"

[18:56:36.288] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.002.slice.009", Elapsed 00:41:17.3256303

[18:56:36.289] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "Audio_Chinese_3.8.0.zip.slice.004", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/Audio_Chinese_3.8.0.zip"

[18:58:09.219] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.003.slice.007", Elapsed 00:42:50.2552834

[18:58:09.220] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "Audio_Chinese_3.8.0.zip.slice.005", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/Audio_Chinese_3.8.0.zip"

[18:58:26.995] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.003.slice.009", Elapsed 00:43:08.0300437

[18:58:26.996] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "Audio_Chinese_3.8.0.zip.slice.006", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/Audio_Chinese_3.8.0.zip"

[19:02:00.540] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.004.slice.003", Elapsed 00:46:41.5737685

[19:02:00.541] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "Audio_Chinese_3.8.0.zip.slice.007", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/Audio_Chinese_3.8.0.zip"

[19:04:04.035] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.005.slice.008", Elapsed 00:20:07.7474242

[19:04:04.038] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "Audio_Chinese_3.8.0.zip.slice.008", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/Audio_Chinese_3.8.0.zip"

[19:06:11.421] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.002.slice.004", Elapsed 00:50:52.4597076

[19:06:11.424] [INFO] Starward.Services.DownloadGameService
Download Slice: FileName "Audio_Chinese_3.8.0.zip.slice.009", Url "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/Audio_Chinese_3.8.0.zip"

[19:10:40.519] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.004.slice.005", Elapsed 00:44:54.0473520

[19:26:39.454] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.004.slice.008", Elapsed 00:59:28.7102608

[19:31:38.762] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.004.slice.006", Elapsed 01:05:20.5592645

[19:34:24.611] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.005.slice.005", Elapsed 00:53:05.9131568

[19:34:31.292] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.004.slice.004", Elapsed 01:08:55.3982325

[19:35:32.043] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.005.slice.004", Elapsed 00:54:29.4482491

[19:38:06.585] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.004.slice.009", Elapsed 01:07:25.3665467

[19:39:02.672] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.005.slice.006", Elapsed 00:57:43.6771202

[19:39:18.282] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.005.slice.000", Elapsed 01:05:45.0749256

[19:39:42.146] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.004.slice.007", Elapsed 01:13:19.4360881

[19:41:20.295] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.005.slice.003", Elapsed 01:00:46.5273435

[19:42:21.679] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "Audio_Chinese_3.8.0.zip.slice.002", Elapsed 00:50:50.5169960

[19:42:55.743] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "Audio_Chinese_3.8.0.zip.slice.000", Elapsed 00:57:45.9534345

[19:44:10.664] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.005.slice.007", Elapsed 01:01:30.3844138

[19:45:24.299] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.005.slice.001", Elapsed 01:08:54.9774940

[19:45:30.339] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "YuanShen_3.8.0.zip.005.slice.002", Elapsed 01:07:35.2953611

[19:46:34.186] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "Audio_Chinese_3.8.0.zip.slice.006", Elapsed 00:48:07.1902984

[19:48:13.878] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "Audio_Chinese_3.8.0.zip.slice.009", Elapsed 00:42:02.4538270

[19:48:15.614] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "Audio_Chinese_3.8.0.zip.slice.004", Elapsed 00:51:39.3248692

[19:49:10.496] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "Audio_Chinese_3.8.0.zip.slice.001", Elapsed 00:59:48.2463521

[19:49:41.928] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "Audio_Chinese_3.8.0.zip.slice.003", Elapsed 00:57:37.9193729

[19:50:28.690] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "Audio_Chinese_3.8.0.zip.slice.008", Elapsed 00:46:24.6525635

[19:50:30.286] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "Audio_Chinese_3.8.0.zip.slice.007", Elapsed 00:48:29.7444695

[19:50:55.436] [INFO] Starward.Services.DownloadGameService
Download Successfully: FileName "Audio_Chinese_3.8.0.zip.slice.005", Elapsed 00:52:46.2155676

[19:50:55.542] [INFO] Starward.Services.DownloadGameService
Verify file "YuanShen_3.8.0.zip.001"

[19:51:22.042] [INFO] Starward.Services.DownloadGameService
Verify file "YuanShen_3.8.0.zip.002"

[19:51:48.121] [INFO] Starward.Services.DownloadGameService
Verify file "YuanShen_3.8.0.zip.003"

[19:52:14.424] [INFO] Starward.Services.DownloadGameService
Verify file "YuanShen_3.8.0.zip.004"

[19:52:40.742] [INFO] Starward.Services.DownloadGameService
Verify file "YuanShen_3.8.0.zip.005"

[19:53:02.633] [INFO] Starward.Services.DownloadGameService
Verify file "Audio_Chinese_3.8.0.zip"

[19:53:28.211] [INFO] Starward.Services.DownloadGameService
Decompress "YuanShen_3.8.0.zip.001"

[19:53:28.229] [EROR] Starward.Services.DownloadGameService
Decompress file
System.IO.InvalidDataException: End of Central Directory record could not be found.
   at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
   at System.IO.Compression.ZipArchive..ctor(Stream, ZipArchiveMode, Boolean, Encoding )
   at System.IO.Compression.ZipArchive..ctor(Stream, ZipArchiveMode, Boolean)
   at Starward.Services.DownloadGameService.<>c__DisplayClass62_0.<DecompressAsync>b__1() in D:\a\Starward\Starward\Starward\Services\DownloadGameService.cs:line 1205
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread, ExecutionContext, ContextCallback, Object)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread, ExecutionContext, ContextCallback, Object)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task&, Thread )
--- End of stack trace from previous location ---
   at Starward.Services.DownloadGameService.DecompressAsync(IEnumerable`1 files, Boolean use7zip) in D:\a\Starward\Starward\Starward\Services\DownloadGameService.cs:line 1202
   at Starward.Services.DownloadGameService.DecompressAsync() in D:\a\Starward\Starward\Starward\Services\DownloadGameService.cs:line 1091

[19:55:39.612] [INFO] Starward.Services.DownloadGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.002"

[19:55:39.612] [INFO] Starward.Services.DownloadGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.003"

[19:55:39.612] [INFO] Starward.Services.DownloadGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.001"

[19:55:39.613] [INFO] Starward.Services.DownloadGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.004"

[19:55:39.613] [INFO] Starward.Services.DownloadGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/YuanShen_3.8.0.zip.005"

[19:55:39.613] [INFO] Starward.Services.DownloadGameService
Request head: "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230625120029_C0NLGkC0fxSaNKnu/Audio_Chinese_3.8.0.zip"

[19:55:40.178] [INFO] Starward.Services.DownloadGameService
Verify file "YuanShen_3.8.0.zip.001"

[19:56:07.067] [INFO] Starward.Services.DownloadGameService
Verify file "YuanShen_3.8.0.zip.002"

[19:56:33.675] [INFO] Starward.Services.DownloadGameService
Verify file "YuanShen_3.8.0.zip.003"

[19:57:00.991] [INFO] Starward.Services.DownloadGameService
Verify file "YuanShen_3.8.0.zip.004"

[19:57:28.237] [INFO] Starward.Services.DownloadGameService
Verify file "YuanShen_3.8.0.zip.005"

[19:57:50.553] [INFO] Starward.Services.DownloadGameService
Verify file "Audio_Chinese_3.8.0.zip"

[19:58:16.625] [INFO] Starward.Services.DownloadGameService
Decompress "YuanShen_3.8.0.zip.001"

[19:58:16.633] [EROR] Starward.Services.DownloadGameService
Decompress file
System.IO.InvalidDataException: End of Central Directory record could not be found.
   at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
   at System.IO.Compression.ZipArchive..ctor(Stream, ZipArchiveMode, Boolean, Encoding )
   at System.IO.Compression.ZipArchive..ctor(Stream, ZipArchiveMode, Boolean)
   at Starward.Services.DownloadGameService.<>c__DisplayClass62_0.<DecompressAsync>b__1() in D:\a\Starward\Starward\Starward\Services\DownloadGameService.cs:line 1205
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread, ExecutionContext, ContextCallback, Object)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread, ExecutionContext, ContextCallback, Object)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task&, Thread )
--- End of stack trace from previous location ---
   at Starward.Services.DownloadGameService.DecompressAsync(IEnumerable`1 files, Boolean use7zip) in D:\a\Starward\Starward\Starward\Services\DownloadGameService.cs:line 1202
   at Starward.Services.DownloadGameService.DecompressAsync() in D:\a\Starward\Starward\Starward\Services\DownloadGameService.cs:line 1091

Additional Context
No response

请把游戏安装文件夹截个图，我需要看看里面有哪些文件

我推测可能是这样的情况：
你先使用官方启动器下载了一部分文件，最重要的是 YuanShen_3.8.0.zip.001 这个文件下载完成了，问题就出在这里。YuanShen_3.8.0.zip.001-005 是原神压缩包的五个部分，这五个部分合成一个整体才是完整的压缩包。Starward 检查到 YuanShen_3.8.0.zip.001 后误以为这个文件是一个单独的压缩包，解压过程中出现了问题。
解决方法是删除文件夹中不包含 slice 的文件，这样你只需要再下载 10GB 。

推测正确，我尝试一下，感谢


feat(dapp-console-api): add block timestamp column to transactions table

#248  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @tremarkley and the rest of your teammates on  Graphite


New Device: Sonoff B1 Bulb

Hi,
Thank you for your work on this. Is it possible to look at adding the Sonoff B1.
Sonoff-debug info attached
Thanks
Greg
sonoffB1.txt

Hi,
I have just recived the Sonoff L1 (light strip) and it shows up as a switch so I figured it may belong to this thread. If you need anything I am happy to help.
Thanks for making this!

@peterbuga Hi! Any reason why sonoff-bulb branch hasn't yet been merged into master? I've just tried it with my B1 and it works fine, along with my other sonoff switches. But it doesn't work if I'm on master (key error).

@stephanerosi it's not completed yet, i wanted to finish it instead of just patch-ing it into master

@gregcsw @max-rh @imjcube @stephanerosi @superjasiek
hi everyone, i've been doing some work regarding this issue (and hopefully i'll get the time to finish it too) if by any chance one of gets the time to do a quick test and let me know if even works i'll highly appreciate it.
please use this branch https://github.com/peterbuga/HASS-sonoff-ewelink/tree/sonoff-bulb (and if you have any kind of custom changed of sonoff component don't forget to backup it) the best way to install it is to completely remove the old sonoff files and this one (works only with HA0.88+)
i would like to mention that this is not complete (if it even works) and the bulb settings are not saved anywhere (i.e. between HA restarts the bulb's values will reset). just try to play with on-off/brightness/color temp/color and let me know how it behaves ps: keep an eye on HA logs too
thanks :)

Hey! Just tested new files and it seems to work perfect. I'm not at home but i have a preview from camera and all functions works fine. Thanks to this solution maybe i will use this bulb as a wake-up light - is dimming with automation possible now? . Thank you for your work and time!

@superjasiek ohh wow thanks! unbelievable great news (more for me than it might be for you) because i've done literally 0 testing of it due to not having the device 😅 so everything was just theoretical (also, i think i might've added new bugs due to refactoring so further testing needs to be done for all the device)
as i've said earlier the implementation is not complete and i'm relying on you guys to give me some feedback on it.
from what i gather the dimming is not supported by default on this (or any similar) device, but it could be simulated by sending progressing increasing/decreasing values over a defined amount of time, i'll probably create a service call for more-or-less power users willing to achieve this 😉 . because it's like an extra feature first i want to be sure all the basic functions work as intended and then i'll look into it (btw, i never played with a dimming/color bulb so i'm not sure if it'll have a flicker effect or not)
looking forward for more feedback! 🙌

So far i'm able to change color, and mode (color or white), change brightness up and down. Can't see if white color changes from warm to cool but i will check it and let you know. Also no errors in home assistant log - only standard warning about using custom components. Have a grate day!

another extra feature that i've just noticed based on one above comment of @gregcsw is that i might be able to use brightness on RGB mode also and/or combine warm-cool light with RGB in the same (with different brightness levels for both) if that makes any sense, i hope i'm not wrong believing this is currently missing from eWeLink app.
so if you guys want/need it i could implement it 💪

Hi Peter,
Was just busy testing and it works great. The features you mention below of using brightness with color would be much appreciated.
You are correct that this is missing from the app.
The current version on the component give the same functionality as the ewe link app.
Thanks
Greg

On Apr 8, 2019, at 12:12, Peter Buga<EMAIL_ADDRESS>wrote:
another extra feature that i've just noticed based on one above comment of @gregcsw https://github.com/gregcsw is that i might be able to use brightness on RGB mode also and/or combine warm-cool light with RGB in the same (with different brightness levels for both) if that makes any sense, i hope i'm not wrong believing this is currently missing from eWeLink app.
so if you guys want/need it i could implement it 💪
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/peterbuga/HASS-sonoff-ewelink/issues/34#issuecomment-480771245, or mute the thread https://github.com/notifications/unsubscribe-auth/Ap2-_liTTYA3Q7eem2PEdLrvsLB75A7Aks5vexYrgaJpZM4Z3Irq.

got a little excited and I quickly added support RGB brightness, just the light.py needs to be updated, let me know how it works.
just to be sure, because trust me i'm walking sort of blind here, someone please confirm or not these features work as intended:

turning ON / OFF
color temperature (100% brightness), the slider works like this:

100% left side = 100% cool + 0% warm,
75% left side = 75% cool + 25% warm
25% left side = 25% cool + 75% warm
middle = 100% cool + 100% warm
25% right side = 75% cool + 25% warm
75% right side = 25% cool + 75% warm
100% right side = 0% cool + 100% warm

color temperature + brightness levels
RGB colors (100% brightness)
RGB colors + brightness levels
restoring the state between warmcool and color modes

to mention that first time after you restart HA some values might have a default hardcoded value, please change some settings before testing the above list. this part it's still work in progress

This is great, Peter.
Please see my responses below.

On Apr 8, 2019, at 14:20, Peter Buga<EMAIL_ADDRESS>wrote:
got a little excited and I quickly added support RGB brightness, just the light.py needs to be updated, let me know how it works.
just to be sure, because trust me i'm walking sort of blind here, someone please confirm or not these features work as intended:
turning ON / OFF
color temperature (100% brightness), the slider works like this: YES
100% left side = 100% cool + 0% warm, YES
75% left side = 75% cool + 25% warm YES
25% left side = 25% cool + 75% warm YES
middle = 100% cool + 100% warm YES
25% right side = 75% cool + 25% warm YES
75% right side = 25% cool + 75% warm YES
100% right side = 0% cool + 100% warm YES
color temperature + brightness levels YES
RGB colors (100% brightness) YES, when switching to color mode, the bulb turns on to the last remembered color at 100% brightness, but the brightness slider shows 0%
RGB colors + brightness levels YES, you can change the brightness of the color, but if you change colors after setting brightness lower than 100%, the new color is at 100% and as above the brightness slider goes back to showing 0%.
restoring the state between warmcool and color modes YES
to mention that first time after you restart HA some values might have a default hardcoded value, please change some settings before testing the above list. this part it's still work in progress
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/peterbuga/HASS-sonoff-ewelink/issues/34#issuecomment-480808231, or mute the thread https://github.com/notifications/unsubscribe-auth/Ap2-_qZIbKHJv5cfItoQ0gCxHmjB5l42ks5vezPzgaJpZM4Z3Irq.

Tested a bit more, and if I look on the dev-state panel when the bulb is in color mode, the brightness value is 0, and doesn’t change when the slider is moved. The bulb gets brighter or dimmer but the brightness value in HA stays at 0.
If I do the same thing in CoolWarm mode, the brightness value in HA changes with the slider and the bulb.
I hope that makes sense.

On Apr 8, 2019, at 14:20, Peter Buga<EMAIL_ADDRESS>wrote:
got a little excited and I quickly added support RGB brightness, just the light.py needs to be updated, let me know how it works.
just to be sure, because trust me i'm walking sort of blind here, someone please confirm or not these features work as intended:
turning ON / OFF
color temperature (100% brightness), the slider works like this:
100% left side = 100% cool + 0% warm,
75% left side = 75% cool + 25% warm
25% left side = 25% cool + 75% warm
middle = 100% cool + 100% warm
25% right side = 75% cool + 25% warm
75% right side = 25% cool + 75% warm
100% right side = 0% cool + 100% warm
color temperature + brightness levels
RGB colors (100% brightness)
RGB colors + brightness levels
restoring the state between warmcool and color modes
to mention that first time after you restart HA some values might have a default hardcoded value, please change some settings before testing the above list. this part it's still work in progress
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/peterbuga/HASS-sonoff-ewelink/issues/34#issuecomment-480808231, or mute the thread https://github.com/notifications/unsubscribe-auth/Ap2-_qZIbKHJv5cfItoQ0gCxHmjB5l42ks5vezPzgaJpZM4Z3Irq.

thanks! that's a really good catch, i'll follow up and test it myself.
i was actually wondering why the brightness 0% problem occurs because i never change it in the code. too soon to tell but it might be a HA bug 😅 worst case scenario you'll be able to change it in automations only ¯_(ツ)_/¯
really appreciate the prompt replies!

Hi,
Changed Line 74 of light.py to:         return self._brightness
And now the brightness reads correctly in color mode.

On Apr 8, 2019, at 15:05, Greg Wrench<EMAIL_ADDRESS>wrote:
Tested a bit more, and if I look on the dev-state panel when the bulb is in color mode, the brightness value is 0, and doesn’t change when the slider is moved. The bulb gets brighter or dimmer but the brightness value in HA stays at 0.
If I do the same thing in CoolWarm mode, the brightness value in HA changes with the slider and the bulb.
I hope that makes sense.

On Apr 8, 2019, at 14:20, Peter Buga<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
got a little excited and I quickly added support RGB brightness, just the light.py needs to be updated, let me know how it works.
just to be sure, because trust me i'm walking sort of blind here, someone please confirm or not these features work as intended:
turning ON / OFF
color temperature (100% brightness), the slider works like this:
100% left side = 100% cool + 0% warm,
75% left side = 75% cool + 25% warm
25% left side = 25% cool + 75% warm
middle = 100% cool + 100% warm
25% right side = 75% cool + 25% warm
75% right side = 25% cool + 75% warm
100% right side = 0% cool + 100% warm
color temperature + brightness levels
RGB colors (100% brightness)
RGB colors + brightness levels
restoring the state between warmcool and color modes
to mention that first time after you restart HA some values might have a default hardcoded value, please change some settings before testing the above list. this part it's still work in progress
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/peterbuga/HASS-sonoff-ewelink/issues/34#issuecomment-480808231, or mute the thread https://github.com/notifications/unsubscribe-auth/Ap2-_qZIbKHJv5cfItoQ0gCxHmjB5l42ks5vezPzgaJpZM4Z3Irq.

haha my bad 😄 totally forgot about that!

That fixed the other problems i reported as well.

On Apr 8, 2019, at 15:14, Peter Buga<EMAIL_ADDRESS>wrote:
haha my bad 😄 totally forgot about that!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/peterbuga/HASS-sonoff-ewelink/issues/34#issuecomment-480826297, or mute the thread https://github.com/notifications/unsubscribe-auth/Ap2-_hPlmQG4NGDL6qMgDiMzv6ikQhaDks5ve0ClgaJpZM4Z3Irq.

Only 2 problems I am still having, but I don’t think either of them have to do with the component:

If I turn the bulb on with an automation, neither Ewelink or HA register the bulb as on, or if it is on and I change the color with an automation, neither Ewelink or HA register the change, although in both cases the bulb itself changes to settings called in the automation.

I can’t set the brightness from an automation.

Other than these 2 issues, it is working just like I want it too.
Thank you for the awesome work on this.

On Apr 8, 2019, at 15:14, Peter Buga<EMAIL_ADDRESS>wrote:
haha my bad 😄 totally forgot about that!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/peterbuga/HASS-sonoff-ewelink/issues/34#issuecomment-480826297, or mute the thread https://github.com/notifications/unsubscribe-auth/Ap2-_hPlmQG4NGDL6qMgDiMzv6ikQhaDks5ve0ClgaJpZM4Z3Irq.

Hi Peter,
So sorry i was a bit busy, just tested it and its Absolutely Amazing, incredible work; thanks alot.
Was reading the guys responses, looks like most of the bugs are fixed; i am not having any bugs so far, didn't test the automation bug that @gregcsw mentioned will try it soon.
but i have a little issue; i have an automation that monitors the state of all my switches in case any of them went offline, and i noticed that the automation sends that the sonoff switches went offline "Unavailable" from time to time, but when i check on them they seem online; does the code lose connectivity or state tracking from time to time ?
again, thanks alot, this just saved me alot of work in my automations.

@gregcsw i'll have to do some more testing on my side, just yesterday i've learned how to add a light to HA and even though it's similar to a switch it is a bit more complex
@max-rh thanks for follow up too! regarding the unavailable stuff, i'll prefer if we keep this in a separated thread. also i think it's better to start from scratch, use the latest code available and start reporting from there (i don't know if you used the polling version - that was more prone to errors - or websocket version)

Hi, thanks for the good work!
I've noticed a few inconsistencies in the color and slider (tested with a
sonoff B1)
1/ I think the brightness slider should be more logarithmic than linear
(eg. on the far left, a small change, makes a big change in the brightness
/ on the right this is the countrary)
2/ The color picker works, but the real color on the light is different
than the one chosen (eg. When chosing yellow, I get green)
I've attached a zip containing screenshots of HA interface and actual
color/brightness on the lamp to help you.
Bulb.zip
https://drive.google.com/file/d/187FlUHCLsvrcIbmLfZV7khBEgCavt0yi/view?usp=drivesdk
Otherwise, the rest works fine :-)
Le lun. 8 avr. 2019 à 16:05, Peter Buga<EMAIL_ADDRESS>a écrit :

@gregcsw https://github.com/gregcsw i'll have to do some more testing
on my side, just yesterday i've learned how to add a light to HA and even
though it's similar to a switch it is a bit more complex
@max-rh https://github.com/max-rh thanks for follow up too! regarding
the unavailable stuff, i'll prefer if we keep this in a separated thread.
also i think it's better to start from scratch, use the latest code
available and start reporting from there (i don't know if you used the
polling version - that was more prone to errors - or websocket version)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/peterbuga/HASS-sonoff-ewelink/issues/34#issuecomment-480845619,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-g9DWlCbXHmbkwkVRG80fE5AVFPMo7ks5ve0yQgaJpZM4Z3Irq
.

@gregcsw regarding the mentioned problems above:

i pushed an update regarding this but i have to admit, without a testing bulb i feel like i'm becoming the victim of my own creation :((. i did create a basic automation so that my dummy-test light to copy the state of another switch and it works on my side when I toggle the parent switch from inside HA or the mobile app
i really don't know why this doesn't work - maybe the 1) fixed this too. have you tried to define the automation like here https://community.home-assistant.io/t/individual-brightness-in-automation/15105/2 ? again, i tried it on my side same setup as 1) and the brightness value changes accordingly and the request that changes the bulb is executed also
ps: right now the brightness/color temp is not sent back from ewelink app to HA, i'm aware of this but i'm tired & hungry right now, will be fixed ;)

@stephanerosi

i think the variation in the light are due to inconsistencies in the leds power, code-wise as you mentioned everything is linear (no testing device can't tell what's the output :P). right now i'm focused on having everything working as expected and then we'll work out the finishing touches later
i literally have no idea what i'm sending here :)) i'm using a conversion function of values provided by HA on hoped for the best. just like 1) i will later send some instructions over on how to provided some needed data to sync them.
ps: cannot access the files, can you make them public? or just post them somewhere else with a password, like https://send.firefox.com

Here is the link :
https://drive.google.com/file/d/187FlUHCLsvrcIbmLfZV7khBEgCavt0yi/view?usp=drivesdk
Happy to help when you'll fine-tune everything :-)
Le lun. 8 avr. 2019 à 22:02, Peter Buga<EMAIL_ADDRESS>a écrit :

@gregcsw https://github.com/gregcsw regarding the mentioned problems
above:

i pushed an update regarding this but i have to admit, without a
testing bulb i feel like i'm becoming the victim of my own creation :((. i
did create a basic automation so that my dummy-test light to copy
the state of another switch and it works on my side when I toggle the
parent switch from inside HA or the mobile app
i really don't know why this doesn't work - maybe the 1) fixed this
too. have you tried to define the automation like here
https://community.home-assistant.io/t/individual-brightness-in-automation/15105/2
? again, i tried it on my side same setup as 1) and the brightness value
changes accordingly and the request that changes the bulb is executed also
ps: right now the brightness/color temp is not sent back from
ewelink app to HA, i'm aware of this but i'm tired & hungry right now, will
be fixed ;)

@stephanerosi https://github.com/stephanerosi

i think the variation in the light are due to inconsistencies in
the leds power, code-wise as you mentioned everything is linear (no testing
device can't tell what's the output :P). right now i'm focused on having
everything working as expected and then we'll work out the finishing
touches later
i literally have no idea what i'm sending here :)) i'm using a
conversion function of values provided by HA on hoped for the best. just
like 1) i will later send some instructions over on how to provided some
needed data to sync them.
ps: cannot access the files, can you make them public? or just post
them somewhere else with a password, like https://send.firefox.com

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/peterbuga/HASS-sonoff-ewelink/issues/34#issuecomment-480985205,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-g9CUBMOLamK7FFaPA9lo0vAOQOushks5ve6BOgaJpZM4Z3Irq
.

@stephanerosi i got to look at the photos, nicely done 👍 it really gives me a real life view of what's happening. what i can say right now is that i have no idea how to quickly fix the colour offset, as it implies some type of conversion from hue/saturation + offset to RGB and i must admit i'm not quite in the mood to figure it out right now 😅 but for sure it'll be fixed!

@stephanerosi i see that you're quite into helping soo regarding the rgb-offset problem do you think you can generate a more detailed debug log file for me?
here's what i need you to do:

download and install the latest master branch version, this will not have the sonoff b1 listed as a light (but as the old style as a switch, simply just ignore it for now)
in the project's documentation there's a new section regarding a new flag debug: True, read carefully the explanation and it'll be perfect if could use the shared sonoff device to a 2nd account setup.
after everything above is setup here comes the tricky part: i need you to execute an action on eWeLink app and right after that to take a screenshot of the colour represented on mobile app. it's very important that you execute 1 action and take 1 screenshot for it otherwise the log gets desynced. this way i will be able to match the expected colour with the data sent by mobile app and calculate the HA offset.

redo the same steps (a different log) for the brightness part on warm/cold lightning... if you want obviously!
thanks

@peter love your suggestion of using 2nd account (I have been doing that)
however if someone doesn't want to do that and you still want the debug,
you could maybe ask them to use Google Home/Alexa to change things on
sonoff devices. :)
Just a suggestion for those who are unable to create multiple accounts.
On Tue, Apr 9, 2019 at 9:30 PM Peter Buga<EMAIL_ADDRESS>wrote:

@stephanerosi https://github.com/stephanerosi i see that you're quite
into helping soo regarding the rgb-offset problem do you think you can
generate a more detailed debug log file for me?
here's what i need you to do:

download and install the latest master branch version, this will not
have the sonoff b1 listed as a light (but as the old style as a switch,
simply just ignore it for now)
in the project's documentation there's a new section regarding a new
flag debug: True, read carefully the explanation and it'll be perfect
if could use the shared sonoff device to a 2nd account setup.
after everything above is setup here comes the tricky part: i need
you to execute an action on eWeLink app and right after that to take a
screenshot of the colour represented on mobile app. it's very important
that you execute 1 action and take 1 screenshot for it otherwise the log
gets desynced. this way i will be able to match the expected colour with
the data sent by mobile app and calculate the HA offset.

redo the same steps (a different log) for the brightness part on warm/cold
lightning... if you want obviously!
thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/peterbuga/HASS-sonoff-ewelink/issues/34#issuecomment-481314223,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AqJgbFHIMHl4NgeQvd6WOpaEq4hnV-Ltks5vfLkRgaJpZM4Z3Irq
.

@peterbuga Yes, I will do it and send the log/pictures.
One question : I'm not sure I understand what the 2nd account is for. Is it to limit the debug output to the bulb only ?
Thanks

yes, limiting the log to only 1 device is one part of making the log lighter to read.
long story short-ish the 2nd account is to be able to control and query the device with HA and mobile application in the same time. due to a stupid limitation you can either connect to HA or to eWeLink app with the same account (you might've noticed that you need to login all the time into the app, that's because HA keep re-login in :P and kicking you out of the app, with shared devices you can be stay all the time logged in the app ;) )

Ahah, I was wondering why the ewelink app was so buggy ;-)
Nevertheless, the following link contains the screenshots and the corresponding logs : https://drive.google.com/file/d/13UIm6bd4W6qdnXlAyCNGZzbJHCI9fpxQ/view?usp=drivesdk

@stephanerosi the logs are good but you didn't follow the steps as I mentioned them :P it would've been much easier for you + a richer log i'm highly interested in the websocket messages sent back by coolkit servers to communicate with the app (might be my lack of properly explaining it, i'll try to make it somehow clear 😓) for the record I was talking about this part from documentation:
debug if enabled this will give you the ability to generate a log of messages from ewelink that can be easily posted here to debug/implement new devices. it works by creating a pseudo switch switch.sonoff_debug (notice it won't show up automatically in frontend in lovelace you have to manually add it or toggle it manually from Developer tools > Services section).
to generate a sonoff debug log toggle the pseudo-switch ON, the capture of messages starts in the background. now pick up the phone -> open eWeLink app and start changing settings of your Sonoff device but not faster than 10 seconds, when you finish, toggle the pseudo-switch OFF and a new (very long) persistent notification will show up, go to Developer tools > States section and look for a persistent_notification.notification entity (impossible to miss) and copy the message from there (to remove this notifications and others Dismiss them from main HA notifications area and you can restart the process if needed).
INFORMATION: it'll be better if you share the device-to-debugged to a 2nd eWeLink account and use this in HA and main one in mobile app
NOTICE: you should NOT leave debug-mode enabled for everyday use, please just please don't!

@peterbuga M'y mistake, I wasn't the right debug section (I was reading the one in sonoff-debug...)
 I'll take a swing to it these days, I'm curious to see if I can sort it out 😅
@gregcsw could you please retry to test the bugs you reported above on the https://github.com/peterbuga/HASS-sonoff-ewelink/issues/34#issuecomment-480831044 they should be fixed by now... should

Hi Peter, been away from setup for a few days, tried it now and still have the same issues reported in  #34 (comment) https://github.com/peterbuga/HASS-sonoff-ewelink/issues/34#issuecomment-480831044.
Thanks

On Apr 11, 2019, at 11:24, Peter Buga<EMAIL_ADDRESS>wrote:
Perfect, thanks! I'll take a swing to it these days, I'm curious to see if I can sort it out 😅
@gregcsw https://github.com/gregcsw could you please retry to test the bugs you reported above on the #34 (comment) https://github.com/peterbuga/HASS-sonoff-ewelink/issues/34#issuecomment-480831044 they should be fixed by now... should
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/peterbuga/HASS-sonoff-ewelink/issues/34#issuecomment-482038988, or mute the thread https://github.com/notifications/unsubscribe-auth/Ap2-_t0e7Rx-WzykXWB99nu0JHnyQaynks5vfv9QgaJpZM4Z3Irq.

@gregcsw terrible sorry to hear that :( i was really hoping for a positive reply...
this will sound extremely stupid but have you updated component with the latest code from sonoff-bulb branch (i'm asking just to be sure)? i'm a bit confused of what might be actually happening, especially the automation-brightness part which should work just fine as long as the brightness-slider works on frontend (they literally execute the same instructions!).
i might be extremely wrong but it might be a super small possibility that something goes wrong on your side so i will wait out and see if anyone else is willing to do the same tests and confirm/deny the bugs, otherwise i'm pretty clueless of what's happening ¯_(ツ)_/¯

Hi Peter,
Yes I have updated the component from the sonoff-bulb branch, and am still
having the same issues.
If someone else can report wether they are having the same problems or
wether it works for them, then I can tell if the problem is on my side.
Thanks
Greg
On Thu, Apr 11, 2019 at 8:08 PM Peter Buga<EMAIL_ADDRESS>wrote:

@gregcsw https://github.com/gregcsw terrible sorry to hear that :( i
was really hoping for a positive reply...
this will sound extremely stupid but have you updated component with the
latest code from sonoff-bulb branch (i'm asking just to be sure)? i'm a
bit confused of what might be actually happening, especially the
automation-brightness part which should work just fine as long as the
brightness-slider works on frontend (they literally execute the same
instructions!).
i might be extremely wrong but it might be a super small possibility that
something goes wrong on your side so i will wait out and see if anyone else
is willing to do the same tests and confirm/deny the bugs, otherwise i'm
pretty clueless of what's happening ¯_(ツ)_/¯
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/peterbuga/HASS-sonoff-ewelink/issues/34#issuecomment-482232046,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ap2-_r0kse6wYDCvtDD5Af3RbCzQiTJDks5vf3oogaJpZM4Z3Irq
.

@gregcsw
I haven't tried with color/brightness, but light.turn_on works for me in an automation, and HA status is updated as well.

@gregcsw But I just tried with color, and I confirm the bug: the light turns on with the selected color, but it doesn't show up on HA.
Doesn't need to be inside an automation, it also happens if I use the service light.turn_on with color_name parameter.

some good news: i think i might've isolated the the problem! but then again i might not... it's a real challenge to debug it without a device 🙈
can you please @stephanerosi @gregcsw post the EXACT settings you used above to do the tests?
i need the exact yaml entry in automation (just the light part not whole automation) and / or the json used in developer tools > service area that instructs the change of the light. you can obviously obfuscate the entity_id value, i'm not interested in that and let's hope it'll shed some light (pun intended :P) sorry to keep asking for tests/info but as I said above no device available
bad news: i started to completetly rewrite the whole component to hopefully make it compatible with the official HA rules 🤞 so if it this error cannot be fixed by this request i really don't know where more to debug :/

Hi,
Here is what I do in services.
Works fine

Turn the light on, but nothing in HA nor in ewelink app

Here is the automation:
The light turns on to the specified color, but the brightness doesn't change, stays on the last set brightness in the ui. HA and Ewelink don't update the status of the entity.
- id: '16'   alias: Nursery Night Light Bed Time (Pink)   initial_state: true    trigger:     platform: time     at: '20:00:00'   action:     - service: light.turn_on       data:         entity_id: light.sonoff_1234567890         rgb_color: [255,0,127]         brightness: 125
Also tested, If I turn the bulb on using the HA UI, and then turn the bulb off using an automation, the ui updates accordingly.

ok ok as a result of what seems to be a more than needed long thread i think i isolated the problem, but more than that the logic got a bit more complicated than i was expecting 😞!
@gregcsw your information confirms one of my findings: in the current code (to be fixed!) you cannot physically turn on the light with the automation pasted above. (if you try) you'll have to first basic light.turn_on the entity (no extra settings) and then progressively one by one send the rgb_color value followed by brightness (basically having 3x light.turn_on actions, with hopefully some delay between them). but don't update your automations just yet because it's a bug and it'll be fixed. the reason for this bug is that i believed HA is sending this information one-by-one too, not all at once...
also, i tend to believe that in example above you were trying to change the color from with previous warmcool mode + (possible)50% brightness to color mode + 100% brightness which accordingly to current buggy code should in: NOT updating the HA state, updating physical light to mentioned rgb_color and no brightness change + update to eWeLink app (not sure why this one doesn't happen, i suspect some new message-rules for this device vs. what i've been encountering so far)
@stephanerosi the 2nd not working example from you, it's more or less a subset-bug of what @gregcsw reported. right now, i sort of believe that the command should not turn on the physical light, but god knows what's happening on coolkit servers :|
ps: as a small reminder for the future, any color + brightness HA setting will be reseted to 100% brightness + chosen color if updated with eWeLink app. i might be able to stop this kind of reset but involves even more logic... argh (maybe one day if i secure enough funding to buy sonoff devices and test them myself 😅 )

Tested it like you said above with 3 automations.

Tried with various brightness settings, and it works as expected. The bulb changes to correct color then brightness, and the HA UI updates accordingly with the changes.

@gregcsw aaaaand i pushed another fix. I really hope it's among the last ones cuz' i'm really getting tired of this bug 😩
based on my (basic) tests you should be able to set all the light type (color/warmcool) + brightness in the same action entry just like you did before (no need for separate entries) but don't add in the same time color_name / rgb_color with color_temp as they are different settings (in theory i could light up all the LEDs but i'm not sure if itead allows this and i'm lazy to test it)
one other missing feature that i'm aware and i'm not going to add it now, is that color/brightness changes sourcing from eWeLink app won't update HA instantly, they will update in about <60sec when the fallback of polling completes
happy testing ;)!

🎉 🎉 🎉 🎉 🎉 🎉 🎉
PERFECT THANK YOU!
It is working just as I want it to!

hi @gregcsw @stephanerosi and everyone else,
any news/bugs related to this device and its implementation? if everything works decent-ish i would like to (finally) close this issue because it's getting too long already and open separated issues (like the color offset problem or maybe a transition service or whatever might be next) that are easier to maintain.
thanks!

Hi Peter
I am very happy with the way it is working now.
Thank you for your effort with this.
Cheers
Greg

On Apr 18, 2019, at 14:27, Peter Buga<EMAIL_ADDRESS>wrote:
hi @gregcsw https://github.com/gregcsw @stephanerosi https://github.com/stephanerosi and everyone else,
any news/bugs related to this device and its implementation? if everything works decent-ish i would like to (finally) close this issue because it's getting too long already and open separated issues (like the color offset problem or maybe a transition service or whatever might be next) that are easier to maintain.
thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/peterbuga/HASS-sonoff-ewelink/issues/34#issuecomment-484484473, or mute the thread https://github.com/notifications/unsubscribe-auth/AKO357VMSPUVZMYK6LXUCK3PRBSMFANCNFSM4GO4RLVA.

Hello, yes, happy with it too :-)

He guys,
I am a total GitHub noob, so first of all; I am sorry for my ignorance. I have just installed the SonOff custom component in HASS, but also want to add my Sonoff Bulb B1 Light. In this issue, you refer to light.py , but I just can't find this.
Can you please help out a my-first-github guy?


cluster always be Provisioned instead of running state

What steps did you take and what happened:
[A clear and concise description on how to REPRODUCE the bug.]
What did you expect to happen:
follow the guide of CAPN,  ,everything is fine except cluster is provisioned instead of running
https://github.com/kubernetes-sigs/cluster-api/blob/master/docs/book/src/images/bootstrap-controller.png
cloudusr@jitest19:~$ kubectl get nestedcontrolplanes
NAME                           READY   AGE
cluster-sample-control-plane   true    39m
cloudusr@jitest19:~$ kubectl get nestedcontrollermanagers
NAME                                     PHASE   AGE
cluster-sample-nestedcontrollermanager   Ready   40m
cloudusr@jitest19:~$ kubectl get nestedapiservers
NAME                             PHASE   AGE
cluster-sample-nestedapiserver   Ready   40m
cloudusr@jitest19:~$ kubectl get cluster
NAME             PHASE
cluster-sample   Provisioned

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:

cluster-api-provider-nested version:
Minikube/KIND version:
Kubernetes version: (use kubectl version):
OS (e.g. from /etc/os-release):

/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api-provider-nested/labels?q=area for the list of labels]

/assign

I think this might be because we're not watching instead polling check out - #137

this is a wrong report
I read the wrong picture and only machine has Running phase while cluster doesn't
https://github.com/kubernetes-sigs/cluster-api/blob/master/api/v1alpha4/cluster_phase_types.go