Good barebone with dual 2.5gbps nic?
Good barebone with dual 2.5gbps nic?
Want to create custom humidifier integration - need help
Hi, I am looking for an easypeasy newbie proof guide/description/manual on how to develop a custom humidifier integration. So far, I have the python code working with pyscript but want to rather create an integration. Have never done this before - thus would be thankful about any help here
Looking for Garmin Dashboard/Automation Inspiration
Hi all, does anybody of you use the garmin integration actively for tracking steps, sedentary time, floors and other things? Maybe compare your data with your better half etc.? I am looking for inspiration regarding dashboards in homeassistant, automations etc. Any idea is highly welcome :)
corne wireless 36 keys. Keyboard layouts?
What exciting times, I just ordered all parts for my very first custom keyboard, it is going to be corne wireless with 36 keys and these little screens. Hope my soldering skills will be good enough. I now have started to read a lot about layouts and the more I read the more confused I get. Dvorak, querty…layers…any tips for an absolute beginner who wants to improve discipline with typing texts and be faster with the new little thing? Any websites you recommend? Thanks
Experience Dreame W10 and valetudo
Experience Dreame W10 and valetudo
Not able to post
Time To Share Config: Sonos TTS Announcements via script
Hi, want to share my script how you make a good tts announcement on sonos. How it works: - triggered by an automation like this - service: script.turn_on entity_id: script.jarvis_speak data: variables: mymessage: | {{ state_attr('sensor.notification_message', 'msg') }} myplayer: media_player.sonos_bedroom - the script is using an input_boolean to flip so that one announcement is done at a time, that’s why I have the “jarvis_announcement_wait” boolean - it uses "input_number.jarvis_<<room>>_volume to be able to adjust the volume per room for the announcements - it uses a little “ding” sound prior to the announcement - it uses piper and with trial end error I figured out how many word per minute “ryan” is speaking so that the script ends exactly at the time when the tts announcement has finished in case there are multiple announcements to be made per room alias: jarvis_speak sequence: - repeat: while: - condition: state entity_id: input_boolean.jarvis_announcement_wait state: "on" sequence: - delay: hours: 0 minutes: 0 seconds: 1 milliseconds: 0 - service: input_boolean.turn_on target: entity_id: - input_boolean.jarvis_announcement_wait data: {} - service: media_player.play_media data: media_content_id: /local/jarvis-chime.wav media_content_type: music announce: true extra: volume: >- {{ states('input_number.jarvis_' + myplayer | replace('media_player.','') + '_volume') }} target: entity_id: "{{ myplayer }}" - delay: seconds: 1 - service: media_player.play_media data: media_content_type: music announce: true media_content_id: >- media-source://tts/tts.piper?message={{ mymessage | replace('&', 'and') }} extra: volume: >- {{ states('input_number.jarvis_' + myplayer | replace('media_player.','') + '_volume') }} target: entity_id: "{{ myplayer }}" - delay: seconds: > {% set text = mymessage | replace('&', 'and') %} {{ (text.split(' ') | length * 60 / 150) | round(0, 'ceil') }} - service: input_boolean.turn_off target: entity_id: - input_boolean.jarvis_announcement_wait data: {} mode: queued max: 10
Time To Share Config: Sonos Playlists in Dashboard
Want to share my config to make sonos playlist buttons in dashboard as the picture shows: [https://lemmy.world/pictrs/image/01019c07-0f52-4517-8cca-2f1ace91ef69.png] How to? - enable “sonos_favorites” sensor in settings > devices > entities - goto hacs and install frontend auto-entities card - goto hacs and install button-card - put the below in your dashboard - type: custom:auto-entities view_layout: grid-area: mb card: square: true type: grid columns: 5 card_param: cards sort: method: state filter: template: > {% for item in state_attr('sensor.sonos_favorites', 'items').values() %} {{ { 'entity': 'null', 'name': item, 'icon' : 'mdi:music', 'type': 'custom:button-card', 'template': 'base_music_switch', 'tap_action' : { 'action': 'call-service', 'service': 'script.multimedia_sonos_play_selected_playlist', 'service_data': { 'media_player': 'media_player.sonos_livingroom', 'source': item } } } }}, {% endfor %} - put a template for the custom button in your lovelace file to format the button base_music_switch: show_icon: false show_state: false show_name: true aspect_ratio: 1/1 tap_action: haptic: success styles: card: - border: transparent - border-radius: 8px - box-shadow: | [[[ if (states['sensor.theme_style'].state == 'light') { return ' -3px -3px 3px rgb(255, 255, 255, 0.5), 3px 3px 3px rgb(0,0,0,0.05), inset 1px 1px 2px rgb(255, 255, 255, 0.8), inset -1px -1px 2px rgb(0,0,0,0.05)'; } else { return ' -2px -2px 3px rgb(102, 102, 102, 0.1), 3px 3px 3px rgb(0,0,0,0.9), inset 1px 1px 2px rgb(102, 102, 102, 0.3), inset -1px -1px 2px rgb(0,0,0,0.35)'; } ]]] lock: - height: 10px - width: 10px - justify-content: flex-end - align-items: flex-end grid: - grid-template-areas: | "n" - grid-template-columns: 1fr - grid-template-rows: auto name: - padding-left: 5px - padding-right: 5px - width: 90% - word-break: break-word - overflow: hidden - line-height: 1.3 - display: block;/* or inline-block */ - text-overflow: ellipsis - max-height: 3.9em - white-space: normal - color: var(--divider-color) extra_styles: > @media (min-width: 1800px) { #name{ font-size: 60%; } } @media (max-width: 1800px) { #name{ font-size: 60%; } } @media (max-width: 1000px) { #name{ font-size: 60%; } } - when you click an icon a script is started - add a script, my example is highly customized to my auto follow feature that I implemented alias: multimedia_sonos_play_selected_playlist sequence: - choose: - conditions: - condition: template value_template: > {{ states('input_boolean.multimedia_' + media_player | replace('media_player.sonos_','') + '_automusic') == 'on' }} sequence: - service: input_boolean.turn_off data: {} target: entity_id: input_boolean.multimedia_sonos_autofollow - service: media_player.shuffle_set data: shuffle: true target: entity_id: | {{ media_player }} - service: media_player.select_source data: source: | {{ source }} target: entity_id: | {{ media_player }} - delay: hours: 0 minutes: 0 seconds: 4 milliseconds: 0 - service: input_boolean.turn_on data: {} target: entity_id: input_boolean.multimedia_sonos_autofollow default: - service: media_player.shuffle_set data: shuffle: true target: entity_id: | {{ media_player }} - service: media_player.select_source data: source: | {{ source }} target: entity_id: | {{ media_player }} mode: single