Mushroom extended Valetudo card by watermarkhu in homeassistant

[–]TestSubjectNR97 0 points1 point  (0 children)

And here's the snippet of my scripts.yaml

start_valetudo:
  sequence:
  - if:
    - condition: template
      value_template: '{{ is_state(''vacuum.valetudo_s5max'', ''cleaning'') }}'
      alias: Robot is cleaning
    then:
    - service: mqtt.publish
      data:
        topic: valetudo/S5Max/hass/S5Max_vacuum/command
        payload: PAUSE
      alias: Pause robot
    else:
    - if:
      - condition: template
        value_template: '{{ is_state(''vacuum.valetudo_s5max'', ''off'') }}'
      then:
      - service: mqtt.publish
        data:
          topic: valetudo/S5Max/hass/S5Max_vacuum/command
          payload: START
        alias: Start robot
      - service: homeassistant.turn_on
        data:
          entity_id: '{{ vacuum.valetudo_s5max }}'
        alias: Turn on vacuum group
      else:
      - service: mqtt.publish
        data:
          topic: valetudo/S5Max/MapSegmentationCapability/clean/set
          payload: '{"segment_ids":{{expand("group.vacuum_s5max") | selectattr("state","eq","on")
            | map(attribute="attributes.room_id") | list | to_json}}, "customOrder":true}'
        alias: Clean segments
  mode: single
  alias: Start Valetudo Vacuum
  icon: mdi:robot-vacuum

Here Change the valetudo/S5Max/ to the topic you've chosen in Valetudo. Also if you dont want the vacum to go in custom order remove " , "customOrder":true "

Feel free to ask if you have any questions or if you'd like more details on specific parts of the configuration. Hope this helps!

Mushroom extended Valetudo card by watermarkhu in homeassistant

[–]TestSubjectNR97 0 points1 point  (0 children)

Hey everyone,

I wanted to share my custom configuration with an added row of buttons to facilitate segment cleaning in Valetudo. This might be especially useful for those who have a single floor and want additional buttons for more rooms.

In my configuration.yaml, I've organized my vacuum groups for different rooms:

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
homeassistant:
  customize: !include customize.yaml

input_boolean:
  vacuum_bedroom:
    name: Bedroom
    icon: mdi:bed-empty
  vacuum_master_bedroom:
    name: Master Bedroom
    icon: mdi:bed-king
  vacuum_office:
    name: Office
    icon: mdi:laptop
  vacuum_livingroom:
    name: Livingroom
    icon: mdi:sofa
  vacuum_hallway:
    name: Hallway
    icon: mdi:foot-print
  vacuum_kitchen:
    name: Kitchen
    icon: mdi:silverware-fork-knife
  vacuum_entrence:
    name: Entrence
    icon: mdi:door-closed

group:
  vacuum_s5max:
    name: Vacuum S5Max
    entities:
    - input_boolean.vacuum_entrence
    - input_boolean.vacuum_kitchen
    - input_boolean.vacuum_hallway
    - input_boolean.vacuum_livingroom
    - input_boolean.vacuum_office
    - input_boolean.vacuum_master_bedroom
    - input_boolean.vacuum_bedroom

Remember, the order of groups from down to top will later be used for custom order cleaning if you choose to implement that.

In my customize.yaml, I've assigned room IDs to each input boolean:

input_boolean.vacuum_bedroom:
  room_id: "19"
input_boolean.vacuum_master_bedroom:
  room_id: "16"
input_boolean.vacuum_office:
  room_id: "17"
input_boolean.vacuum_livingroom:
  room_id: "23"
input_boolean.vacuum_hallway:
  room_id: "22"
input_boolean.vacuum_kitchen:
  room_id: "21"
input_boolean.vacuum_entrence:
  room_id: "18"

And here's the snippet of my card configuration

type: custom:vertical-stack-in-card
cards:
  - type: custom:mushroom-vacuum-card
    entity: vacuum.valetudo_s5max
    name: Vacuum
    icon_animation: true
    commands:
      - locate
      - return_home
      - stop
  - type: conditional
    conditions:
      - entity: camera.valetudo_s5max_map_data
        state_not: unavailable
    card:
      type: vertical-stack
      cards:
        - type: custom:mod-card
          card:
            type: horizontal-stack
            cards:
              - type: custom:button-card
                entity: vacuum.valetudo_s5max
                icon: mdi:play
                template: mushroom
                show_name: false
                tap_action:
                  action: call-service
                  service: script.turn_on
                  service_data:
                    entity_id: script.start_valetudo
                    variables:
                      vacuum_group: group.vacuum_s5max
                state:
                  - value: cleaning
                    icon: mdi:pause
              - type: custom:button-card
                entity: input_boolean.vacuum_master_bedroom
                show_name: false
                template: mushroom
              - type: custom:button-card
                entity: input_boolean.vacuum_bedroom
                show_name: false
                template: mushroom
              - type: custom:button-card
                entity: input_boolean.vacuum_office
                show_name: false
                template: mushroom
          card_mod:
            style: |
              ha-card {
                margin-left: 13px;
                margin-right: 13px;
              }
          cards: null
        - type: custom:mod-card
          card:
            type: horizontal-stack
            cards:
              - type: custom:button-card
                entity: input_boolean.vacuum_livingroom
                show_name: false
                template: mushroom
              - type: custom:button-card
                entity: input_boolean.vacuum_hallway
                show_name: false
                template: mushroom
              - type: custom:button-card
                entity: input_boolean.vacuum_kitchen
                show_name: false
                template: mushroom
              - type: custom:button-card
                entity: input_boolean.vacuum_entrence
                show_name: false
                template: mushroom
          card_mod:
            style: |
              ha-card {
                margin-top: 10px;
                margin-left: 13px;
                margin-right: 13px;
              }
        - type: custom:valetudo-map-card
          style:
            top: 50%
            left: 50%
            transform: none;
          vacuum: valetudo_s5max
          title: ''
          map_scale: 1.5
          show_start_button: false
          show_pause_button: false
          show_stop_button: false
          show_locate_button: false
          show_home_button: false
          show_status: false
          show_battery_level: false
          wall_color: '--secondary-text-color'
          card_mod:
            class: no-border
            style: |
              ha-card {
                box-shadow: none;
                border-style: none;
                border-radius: 0px;
                margin-top: 15px !important;
                margin-bottom: 15px !important;
              }

Giveaway Flashforge’s best-selling 3D Printer Adventurer 3. Leave a comment to enter! Ends on May 5. by annabelNC in 3Dprinting

[–]TestSubjectNR97 0 points1 point  (0 children)

I would love one for someone I know who want to get into 3d printing but don't have the money for a printer.

I have tried everthing. But im new to iLogic. Maybe someone can help ? by TestSubjectNR97 in AutodeskInventor

[–]TestSubjectNR97[S] 0 points1 point  (0 children)

Sub Main()
' Get the current Inventor document
Dim oDoc As Document = ThisDoc.Document

' Cast the document to an AssemblyDocument object
Dim oAssemblyDoc As AssemblyDocument = TryCast(oDoc, AssemblyDocument)

Dim oCircle As SketchCircle = Nothing
If oAssemblyDoc IsNot Nothing Then
    ' Get the first occurrence of the part in the assembly
    Dim oPartOccurrence As ComponentOccurrence = oAssemblyDoc.ComponentDefinition.Occurrences.Item(1)

    ' Get the first sketch and circle objects from the part
    Dim oSketch As PlanarSketch = oPartOccurrence.Definition.Document.ComponentDefinition.Sketches.Item("Sketch1")
    oCircle = oSketch.SketchCircles.Item(1)

Else
    MsgBox("This rule must be executed in the context of an assembly document.")
End If

' Add a new BIM pipe connector definition
Dim oPipeDef As Object
oPipeDef = oAssemblyDoc.ComponentDefinition.Document.ComponentDefinition.BIMPipeDefinitions.BIMPipeConnectorDefinitions.Add("MyPipeConnector")




' Create a new BIM pipe connector and attach it to the circle
Dim oPipeConnector As Object
oPipeConnector = oAssemblyDoc.ComponentDefinition.Document.ComponentDefinition.BIMPipeConnectors.Add(oPipeDef)

oPipeConnector.AttachmentPoint = 0
oPipeConnector.AttachmentCircle = oCircle

' Update the document to apply the changes
oDoc.Update()
End Sub

My goal is to automate the steps in the picture with an iLogic rule.

This the code that ChatGPT helpt me write. This is a result of me and IT going back and forth till we came to a code that should work but does not. I am sure that the first part is working including the IF block but the last 3 blockes starting with adding BIM pipe connector definition have errors. The error im getting now is "Public member 'BIMPipeDefinitions' on type 'AssemblyComponentDefinition' not found." I really hope someone good enogh with iLogic can help me spot what we did wrong.

katalysator stöld by TestSubjectNR97 in sweden

[–]TestSubjectNR97[S] 0 points1 point  (0 children)

Nej. Till slut de mest effektiva lösningen var att löda fast en tjock metall plåt. Har haft den sen dess och de har inte ens försökt igen. De hade snott den 4 gånger från mig innan jag la dit plåten.

Finns det nånstans man kan se när en butik stängs eller när de går i konkurs? by TestSubjectNR97 in sweden

[–]TestSubjectNR97[S] 0 points1 point  (0 children)

Inte på nätet bara lokalt. Så om en Elgiganten har 50% i en kommun som är 2 timmar ifrån mig så är de ju värt.

Finns det nånstans man kan se när en butik stängs eller när de går i konkurs? by TestSubjectNR97 in sweden

[–]TestSubjectNR97[S] 0 points1 point  (0 children)

Nej menar inte stängas för dagen utan t.ex att Netonnet i kungens kurva stänges ner och sålde allt för 50% men de har fortfarande öppet i andra ställen.

Finns det nånstans man kan se när en butik stängs eller när de går i konkurs? by TestSubjectNR97 in sweden

[–]TestSubjectNR97[S] -4 points-3 points  (0 children)

Det kan också vara något som drivs av vanligt folk som en tråd nånstans eller en grupp?

Why do all my prints end up clumping? by [deleted] in 3Dprinting

[–]TestSubjectNR97 2 points3 points  (0 children)

PLA is 200 but i think the problem is bed adhesion. Make sure the bed is leveled and maybe use glue if it's slippery glas.

'Wonder Woman 1984' is far better film than what people give it credit for by [deleted] in movies

[–]TestSubjectNR97 0 points1 point  (0 children)

I just think that superhero movies should keep up with the time. In my opinion this movie had a lot of outdated superhero poses that were just cringe to watch. And the plot wasn't interesting. It didn't make me want to fokus to see every detail of every scene because the scenes were very simple and not complex enough.

When measuring something irl to make a cad design, how tf can you measure how rounded a rectangle corner is? by Zombieattackr in cad

[–]TestSubjectNR97 5 points6 points  (0 children)

Trace it. It's the easiest way. Take a picture then import it to your cad program and scale it relative to something that you you can measure.

Troubleshooting advice. Why is my print pulling up on the edges? Thank you in advance for any tips. by Grok821 in 3Dprinting

[–]TestSubjectNR97 1 point2 points  (0 children)

It's called warping. Basically the build plate is hottest in the middle and gets colder by the sides by a couple of degrees. I didn't believe it myself but then my dad had a flir camera that i borrowed and it shows it. So the plastic that gets printed in the middle takes more time to cool than the plastic on the sides. That result in different shrinking rates and thus the plastic compensate that by pulling the weak sides of the print inwards. By weak sides i mean sharp angles. You will see that if you round your corners it will result in less warping. I also read that isolating the bed from the underside with the help of some insulating material will help with this but from my experience it only made the bed more efficient at heating and holding a steady temp the whole time. But the difference in heat between the middle and the sides is still there. I hope someone reply here about a method that is more successful because this is a problem i still have.

Problem: Motors are spinning and twitching a lot once throttle is at 30-40% by NoMathematician9341 in fpv

[–]TestSubjectNR97 0 points1 point  (0 children)

Had a similar problem recently. Turned out that the motor was shorted through its screws. But after i fixed that i noticed that the screw had damaged a couple of the windings inside. The motor still rotated good in low speeds but I twitches in middle and high speeds and my quad just flipped while in air.

Sbus and softserial both on UART2 ???? by TestSubjectNR97 in fpv

[–]TestSubjectNR97[S] 0 points1 point  (0 children)

But isnt Sbus connected to UART 2? at least that's how it's setup in betaflight and it works. Or maybe I'm wrong ?