1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
2 |
DENIED
|
moderate
|
App\Entity\Entry {#2479
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+magazine: App\Entity\Magazine {#260
+icon: Proxies\__CG__\App\Entity\Image {#240 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#271
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#231 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#227 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …}
+entries: Doctrine\ORM\PersistentCollection {#174 …}
+posts: Doctrine\ORM\PersistentCollection {#132 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#194 …}
+bans: Doctrine\ORM\PersistentCollection {#111 …}
+reports: Doctrine\ORM\PersistentCollection {#97 …}
+badges: Doctrine\ORM\PersistentCollection {#75 …}
+logs: Doctrine\ORM\PersistentCollection {#65 …}
+awards: Doctrine\ORM\PersistentCollection {#1822 …}
+categories: Doctrine\ORM\PersistentCollection {#1850 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#270
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#276
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1932 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1901 …}
+slug: "Try-to-create-an-absence-event-log-Card"
+title: "Try to create an absence event log Card"
+url: "https://lemmy.world/pictrs/image/8580aa34-9960-4955-af97-8171a6c9906a.png"
+body: """
Im trying to create an event log Card that will show important events during absence, like shown in the attached screenshot.\n
\n
The decision, what is relevant and how its displayed, can be done by node red (i already started to create the flows)\n
\n
Node Red puts the events in a .txt file. To show this Log on my Dashboard, i tried the following: A command sensor is putting the content of the .txt in a sensor.\n
\n
```\n
\n
<span style="color:#323232;">command_line:\n
</span><span style="color:#323232;"> - sensor:\n
</span><span style="color:#323232;"> command: 'cat /share/test.txt'\n
</span><span style="color:#323232;"> name: awaylog\n
</span><span style="color:#323232;">\n
</span>\n
```\n
\n
The .txt file already includs the formating for the text to be shown as alert-types (colored row with related icon). The sensor is then used in a Markdown Card.\n
\n
Problem is, the sensor only seems to be capable of storing 255 characters. This limit exeeds quickly. (one alert-type command is already >50 characters) . If it is exeeded the result is shown as “unknown” (screenshot at the top)\n
\n
Is anybody aware of a solution to avoid this chracter limit. Any other ideas to achiev such an event log ?\n
\n
#**Edit/Solution**: Thanks to @m_randall@sh.itjust.works I just put the log entries in the json_attributes of the sensor and used the actual sensor value (because only this is limited to 255 char.) to just count up the number of log entries. Also i skipped the step creating a command sensor in Home assistant config.yaml, instead i used the sensor node to change it directly with node red.\n
\n
**Node-red sensor node config:**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">state = msg.logcount\n
</span><span style="color:#323232;">json_attributes = msg.payload (formated log entry list)\n
</span>\n
```\n
\n
**Markdown card**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">type: markdown\n
</span><span style="color:#323232;">entity_id:\n
</span><span style="color:#323232;"> - sensor.absencelog_2\n
</span><span style="color:#323232;">content: |\n
</span><span style="color:#323232;"> ## Absence Events\n
</span><span style="color:#323232;"> {{state_attr('sensor.absencelog_2', 'json_attributes')}}\n
</span><span style="color:#323232;"> \n
</span><span style="color:#323232;"> *This list will be deleted when Marge is home again*\n
</span>\n
```\n
\n
*ps. Marge got a new phonenumber :P*
"""
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 5
+favouriteCount: 40
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1723163604 {#1828
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@m_randall@sh.itjust.works"
]
+comments: Doctrine\ORM\PersistentCollection {#1864 …}
+votes: Doctrine\ORM\PersistentCollection {#1390 …}
+reports: Doctrine\ORM\PersistentCollection {#1373 …}
+favourites: Doctrine\ORM\PersistentCollection {#1378 …}
+notifications: Doctrine\ORM\PersistentCollection {#2355 …}
+badges: Doctrine\ORM\PersistentCollection {#2476 …}
+children: []
-id: 29672
-titleTs: "'absenc':5 'card':8 'creat':3 'event':6 'log':7 'tri':1"
-bodyTs: "'/share/test.txt':82 '2':264,271 '255':127,205 '50':140 'absenc':15,266 'achiev':171 'actual':196 'alert':100,135 'alert-typ':99,134 'alreadi':38,88,139 'also':216 'anybodi':157 'assist':227 'attach':20 'attr':269 'attribut':189,251,273 'avoid':163 'awar':158 'awaylog':84 'capabl':124 'card':8,115,258 'cat':81 'chang':236 'char':206 'charact':128,141 'chracter':165 'color':102 'command':65,77,80,137,223 'config':247 'config.yaml':228 'content':70,265 'count':209 'creat':4,41,221 'dashboard':59 'decis':23 'delet':278 'direct':238 'display':30 'done':33 'edit/solution':176 'entiti':261 'entri':185,215,255 'event':6,13,48,174,267 'exe':131 'exeed':145 'file':52,87 'flow':43 'follow':63 'format':91,253 'got':286 'home':226,282 'icon':106 'id':262 'idea':169 'im':1 'import':12 'includ':89 'instead':229 'json':188,250,272 'like':16 'limit':130,166,203 'line':78 'list':256,275 'log':7,56,175,184,214,254 'm_randall@sh.itjust.works':179 'marg':280,285 'markdown':114,257,260 'msg.logcount':249 'msg.payload':252 'name':83 'new':288 'node':35,44,234,240,243,246 'node-r':242 'number':212 'one':133 'p':290 'phonenumb':289 'problem':116 'ps':284 'put':46,68,182 'quick':132 'red':36,45,241,244 'relat':105 'relev':26 'result':147 'row':103 'screenshot':21,152 'seem':121 'sensor':66,76,79,108,119,192,197,224,233,245 'sensor.absencelog':263,270 'show':11,54 'shown':17,97,149 'skip':218 'solut':161 'start':39 'state':248,268 'step':220 'store':126 'text':94 'thank':177 'top':155 'tri':2,61 'txt':51,73,86 'type':101,136,259 'unknown':151 'use':111,194,231 'valu':198"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705236764
+visibility: "visible "
+apId: "https://lemmy.world/post/10659194"
+editedAt: DateTimeImmutable @1723165817 {#2388
date: 2024-08-09 03:10:17.0 +02:00
}
+createdAt: DateTimeImmutable @1705150364 {#1684
date: 2024-01-13 13:52:44.0 +01:00
}
} |
|
Show voter details
|
3 |
DENIED
|
edit
|
App\Entity\Entry {#2479
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+magazine: App\Entity\Magazine {#260
+icon: Proxies\__CG__\App\Entity\Image {#240 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#271
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#231 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#227 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …}
+entries: Doctrine\ORM\PersistentCollection {#174 …}
+posts: Doctrine\ORM\PersistentCollection {#132 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#194 …}
+bans: Doctrine\ORM\PersistentCollection {#111 …}
+reports: Doctrine\ORM\PersistentCollection {#97 …}
+badges: Doctrine\ORM\PersistentCollection {#75 …}
+logs: Doctrine\ORM\PersistentCollection {#65 …}
+awards: Doctrine\ORM\PersistentCollection {#1822 …}
+categories: Doctrine\ORM\PersistentCollection {#1850 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#270
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#276
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1932 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1901 …}
+slug: "Try-to-create-an-absence-event-log-Card"
+title: "Try to create an absence event log Card"
+url: "https://lemmy.world/pictrs/image/8580aa34-9960-4955-af97-8171a6c9906a.png"
+body: """
Im trying to create an event log Card that will show important events during absence, like shown in the attached screenshot.\n
\n
The decision, what is relevant and how its displayed, can be done by node red (i already started to create the flows)\n
\n
Node Red puts the events in a .txt file. To show this Log on my Dashboard, i tried the following: A command sensor is putting the content of the .txt in a sensor.\n
\n
```\n
\n
<span style="color:#323232;">command_line:\n
</span><span style="color:#323232;"> - sensor:\n
</span><span style="color:#323232;"> command: 'cat /share/test.txt'\n
</span><span style="color:#323232;"> name: awaylog\n
</span><span style="color:#323232;">\n
</span>\n
```\n
\n
The .txt file already includs the formating for the text to be shown as alert-types (colored row with related icon). The sensor is then used in a Markdown Card.\n
\n
Problem is, the sensor only seems to be capable of storing 255 characters. This limit exeeds quickly. (one alert-type command is already >50 characters) . If it is exeeded the result is shown as “unknown” (screenshot at the top)\n
\n
Is anybody aware of a solution to avoid this chracter limit. Any other ideas to achiev such an event log ?\n
\n
#**Edit/Solution**: Thanks to @m_randall@sh.itjust.works I just put the log entries in the json_attributes of the sensor and used the actual sensor value (because only this is limited to 255 char.) to just count up the number of log entries. Also i skipped the step creating a command sensor in Home assistant config.yaml, instead i used the sensor node to change it directly with node red.\n
\n
**Node-red sensor node config:**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">state = msg.logcount\n
</span><span style="color:#323232;">json_attributes = msg.payload (formated log entry list)\n
</span>\n
```\n
\n
**Markdown card**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">type: markdown\n
</span><span style="color:#323232;">entity_id:\n
</span><span style="color:#323232;"> - sensor.absencelog_2\n
</span><span style="color:#323232;">content: |\n
</span><span style="color:#323232;"> ## Absence Events\n
</span><span style="color:#323232;"> {{state_attr('sensor.absencelog_2', 'json_attributes')}}\n
</span><span style="color:#323232;"> \n
</span><span style="color:#323232;"> *This list will be deleted when Marge is home again*\n
</span>\n
```\n
\n
*ps. Marge got a new phonenumber :P*
"""
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 5
+favouriteCount: 40
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1723163604 {#1828
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@m_randall@sh.itjust.works"
]
+comments: Doctrine\ORM\PersistentCollection {#1864 …}
+votes: Doctrine\ORM\PersistentCollection {#1390 …}
+reports: Doctrine\ORM\PersistentCollection {#1373 …}
+favourites: Doctrine\ORM\PersistentCollection {#1378 …}
+notifications: Doctrine\ORM\PersistentCollection {#2355 …}
+badges: Doctrine\ORM\PersistentCollection {#2476 …}
+children: []
-id: 29672
-titleTs: "'absenc':5 'card':8 'creat':3 'event':6 'log':7 'tri':1"
-bodyTs: "'/share/test.txt':82 '2':264,271 '255':127,205 '50':140 'absenc':15,266 'achiev':171 'actual':196 'alert':100,135 'alert-typ':99,134 'alreadi':38,88,139 'also':216 'anybodi':157 'assist':227 'attach':20 'attr':269 'attribut':189,251,273 'avoid':163 'awar':158 'awaylog':84 'capabl':124 'card':8,115,258 'cat':81 'chang':236 'char':206 'charact':128,141 'chracter':165 'color':102 'command':65,77,80,137,223 'config':247 'config.yaml':228 'content':70,265 'count':209 'creat':4,41,221 'dashboard':59 'decis':23 'delet':278 'direct':238 'display':30 'done':33 'edit/solution':176 'entiti':261 'entri':185,215,255 'event':6,13,48,174,267 'exe':131 'exeed':145 'file':52,87 'flow':43 'follow':63 'format':91,253 'got':286 'home':226,282 'icon':106 'id':262 'idea':169 'im':1 'import':12 'includ':89 'instead':229 'json':188,250,272 'like':16 'limit':130,166,203 'line':78 'list':256,275 'log':7,56,175,184,214,254 'm_randall@sh.itjust.works':179 'marg':280,285 'markdown':114,257,260 'msg.logcount':249 'msg.payload':252 'name':83 'new':288 'node':35,44,234,240,243,246 'node-r':242 'number':212 'one':133 'p':290 'phonenumb':289 'problem':116 'ps':284 'put':46,68,182 'quick':132 'red':36,45,241,244 'relat':105 'relev':26 'result':147 'row':103 'screenshot':21,152 'seem':121 'sensor':66,76,79,108,119,192,197,224,233,245 'sensor.absencelog':263,270 'show':11,54 'shown':17,97,149 'skip':218 'solut':161 'start':39 'state':248,268 'step':220 'store':126 'text':94 'thank':177 'top':155 'tri':2,61 'txt':51,73,86 'type':101,136,259 'unknown':151 'use':111,194,231 'valu':198"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705236764
+visibility: "visible "
+apId: "https://lemmy.world/post/10659194"
+editedAt: DateTimeImmutable @1723165817 {#2388
date: 2024-08-09 03:10:17.0 +02:00
}
+createdAt: DateTimeImmutable @1705150364 {#1684
date: 2024-01-13 13:52:44.0 +01:00
}
} |
|
Show voter details
|
4 |
DENIED
|
moderate
|
App\Entity\Entry {#2479
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+magazine: App\Entity\Magazine {#260
+icon: Proxies\__CG__\App\Entity\Image {#240 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#271
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#231 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#227 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …}
+entries: Doctrine\ORM\PersistentCollection {#174 …}
+posts: Doctrine\ORM\PersistentCollection {#132 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#194 …}
+bans: Doctrine\ORM\PersistentCollection {#111 …}
+reports: Doctrine\ORM\PersistentCollection {#97 …}
+badges: Doctrine\ORM\PersistentCollection {#75 …}
+logs: Doctrine\ORM\PersistentCollection {#65 …}
+awards: Doctrine\ORM\PersistentCollection {#1822 …}
+categories: Doctrine\ORM\PersistentCollection {#1850 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#270
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#276
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1932 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1901 …}
+slug: "Try-to-create-an-absence-event-log-Card"
+title: "Try to create an absence event log Card"
+url: "https://lemmy.world/pictrs/image/8580aa34-9960-4955-af97-8171a6c9906a.png"
+body: """
Im trying to create an event log Card that will show important events during absence, like shown in the attached screenshot.\n
\n
The decision, what is relevant and how its displayed, can be done by node red (i already started to create the flows)\n
\n
Node Red puts the events in a .txt file. To show this Log on my Dashboard, i tried the following: A command sensor is putting the content of the .txt in a sensor.\n
\n
```\n
\n
<span style="color:#323232;">command_line:\n
</span><span style="color:#323232;"> - sensor:\n
</span><span style="color:#323232;"> command: 'cat /share/test.txt'\n
</span><span style="color:#323232;"> name: awaylog\n
</span><span style="color:#323232;">\n
</span>\n
```\n
\n
The .txt file already includs the formating for the text to be shown as alert-types (colored row with related icon). The sensor is then used in a Markdown Card.\n
\n
Problem is, the sensor only seems to be capable of storing 255 characters. This limit exeeds quickly. (one alert-type command is already >50 characters) . If it is exeeded the result is shown as “unknown” (screenshot at the top)\n
\n
Is anybody aware of a solution to avoid this chracter limit. Any other ideas to achiev such an event log ?\n
\n
#**Edit/Solution**: Thanks to @m_randall@sh.itjust.works I just put the log entries in the json_attributes of the sensor and used the actual sensor value (because only this is limited to 255 char.) to just count up the number of log entries. Also i skipped the step creating a command sensor in Home assistant config.yaml, instead i used the sensor node to change it directly with node red.\n
\n
**Node-red sensor node config:**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">state = msg.logcount\n
</span><span style="color:#323232;">json_attributes = msg.payload (formated log entry list)\n
</span>\n
```\n
\n
**Markdown card**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">type: markdown\n
</span><span style="color:#323232;">entity_id:\n
</span><span style="color:#323232;"> - sensor.absencelog_2\n
</span><span style="color:#323232;">content: |\n
</span><span style="color:#323232;"> ## Absence Events\n
</span><span style="color:#323232;"> {{state_attr('sensor.absencelog_2', 'json_attributes')}}\n
</span><span style="color:#323232;"> \n
</span><span style="color:#323232;"> *This list will be deleted when Marge is home again*\n
</span>\n
```\n
\n
*ps. Marge got a new phonenumber :P*
"""
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 5
+favouriteCount: 40
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1723163604 {#1828
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@m_randall@sh.itjust.works"
]
+comments: Doctrine\ORM\PersistentCollection {#1864 …}
+votes: Doctrine\ORM\PersistentCollection {#1390 …}
+reports: Doctrine\ORM\PersistentCollection {#1373 …}
+favourites: Doctrine\ORM\PersistentCollection {#1378 …}
+notifications: Doctrine\ORM\PersistentCollection {#2355 …}
+badges: Doctrine\ORM\PersistentCollection {#2476 …}
+children: []
-id: 29672
-titleTs: "'absenc':5 'card':8 'creat':3 'event':6 'log':7 'tri':1"
-bodyTs: "'/share/test.txt':82 '2':264,271 '255':127,205 '50':140 'absenc':15,266 'achiev':171 'actual':196 'alert':100,135 'alert-typ':99,134 'alreadi':38,88,139 'also':216 'anybodi':157 'assist':227 'attach':20 'attr':269 'attribut':189,251,273 'avoid':163 'awar':158 'awaylog':84 'capabl':124 'card':8,115,258 'cat':81 'chang':236 'char':206 'charact':128,141 'chracter':165 'color':102 'command':65,77,80,137,223 'config':247 'config.yaml':228 'content':70,265 'count':209 'creat':4,41,221 'dashboard':59 'decis':23 'delet':278 'direct':238 'display':30 'done':33 'edit/solution':176 'entiti':261 'entri':185,215,255 'event':6,13,48,174,267 'exe':131 'exeed':145 'file':52,87 'flow':43 'follow':63 'format':91,253 'got':286 'home':226,282 'icon':106 'id':262 'idea':169 'im':1 'import':12 'includ':89 'instead':229 'json':188,250,272 'like':16 'limit':130,166,203 'line':78 'list':256,275 'log':7,56,175,184,214,254 'm_randall@sh.itjust.works':179 'marg':280,285 'markdown':114,257,260 'msg.logcount':249 'msg.payload':252 'name':83 'new':288 'node':35,44,234,240,243,246 'node-r':242 'number':212 'one':133 'p':290 'phonenumb':289 'problem':116 'ps':284 'put':46,68,182 'quick':132 'red':36,45,241,244 'relat':105 'relev':26 'result':147 'row':103 'screenshot':21,152 'seem':121 'sensor':66,76,79,108,119,192,197,224,233,245 'sensor.absencelog':263,270 'show':11,54 'shown':17,97,149 'skip':218 'solut':161 'start':39 'state':248,268 'step':220 'store':126 'text':94 'thank':177 'top':155 'tri':2,61 'txt':51,73,86 'type':101,136,259 'unknown':151 'use':111,194,231 'valu':198"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705236764
+visibility: "visible "
+apId: "https://lemmy.world/post/10659194"
+editedAt: DateTimeImmutable @1723165817 {#2388
date: 2024-08-09 03:10:17.0 +02:00
}
+createdAt: DateTimeImmutable @1705150364 {#1684
date: 2024-01-13 13:52:44.0 +01:00
}
} |
|
Show voter details
|
5 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
6 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4097
+user: App\Entity\User {#4045 …}
+entry: App\Entity\Entry {#2479
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+magazine: App\Entity\Magazine {#260
+icon: Proxies\__CG__\App\Entity\Image {#240 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#271
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#231 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#227 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …}
+entries: Doctrine\ORM\PersistentCollection {#174 …}
+posts: Doctrine\ORM\PersistentCollection {#132 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#194 …}
+bans: Doctrine\ORM\PersistentCollection {#111 …}
+reports: Doctrine\ORM\PersistentCollection {#97 …}
+badges: Doctrine\ORM\PersistentCollection {#75 …}
+logs: Doctrine\ORM\PersistentCollection {#65 …}
+awards: Doctrine\ORM\PersistentCollection {#1822 …}
+categories: Doctrine\ORM\PersistentCollection {#1850 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#270
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#276
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1932 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1901 …}
+slug: "Try-to-create-an-absence-event-log-Card"
+title: "Try to create an absence event log Card"
+url: "https://lemmy.world/pictrs/image/8580aa34-9960-4955-af97-8171a6c9906a.png"
+body: """
Im trying to create an event log Card that will show important events during absence, like shown in the attached screenshot.\n
\n
The decision, what is relevant and how its displayed, can be done by node red (i already started to create the flows)\n
\n
Node Red puts the events in a .txt file. To show this Log on my Dashboard, i tried the following: A command sensor is putting the content of the .txt in a sensor.\n
\n
```\n
\n
<span style="color:#323232;">command_line:\n
</span><span style="color:#323232;"> - sensor:\n
</span><span style="color:#323232;"> command: 'cat /share/test.txt'\n
</span><span style="color:#323232;"> name: awaylog\n
</span><span style="color:#323232;">\n
</span>\n
```\n
\n
The .txt file already includs the formating for the text to be shown as alert-types (colored row with related icon). The sensor is then used in a Markdown Card.\n
\n
Problem is, the sensor only seems to be capable of storing 255 characters. This limit exeeds quickly. (one alert-type command is already >50 characters) . If it is exeeded the result is shown as “unknown” (screenshot at the top)\n
\n
Is anybody aware of a solution to avoid this chracter limit. Any other ideas to achiev such an event log ?\n
\n
#**Edit/Solution**: Thanks to @m_randall@sh.itjust.works I just put the log entries in the json_attributes of the sensor and used the actual sensor value (because only this is limited to 255 char.) to just count up the number of log entries. Also i skipped the step creating a command sensor in Home assistant config.yaml, instead i used the sensor node to change it directly with node red.\n
\n
**Node-red sensor node config:**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">state = msg.logcount\n
</span><span style="color:#323232;">json_attributes = msg.payload (formated log entry list)\n
</span>\n
```\n
\n
**Markdown card**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">type: markdown\n
</span><span style="color:#323232;">entity_id:\n
</span><span style="color:#323232;"> - sensor.absencelog_2\n
</span><span style="color:#323232;">content: |\n
</span><span style="color:#323232;"> ## Absence Events\n
</span><span style="color:#323232;"> {{state_attr('sensor.absencelog_2', 'json_attributes')}}\n
</span><span style="color:#323232;"> \n
</span><span style="color:#323232;"> *This list will be deleted when Marge is home again*\n
</span>\n
```\n
\n
*ps. Marge got a new phonenumber :P*
"""
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 5
+favouriteCount: 40
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1723163604 {#1828
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@m_randall@sh.itjust.works"
]
+comments: Doctrine\ORM\PersistentCollection {#1864 …}
+votes: Doctrine\ORM\PersistentCollection {#1390 …}
+reports: Doctrine\ORM\PersistentCollection {#1373 …}
+favourites: Doctrine\ORM\PersistentCollection {#1378 …}
+notifications: Doctrine\ORM\PersistentCollection {#2355 …}
+badges: Doctrine\ORM\PersistentCollection {#2476 …}
+children: []
-id: 29672
-titleTs: "'absenc':5 'card':8 'creat':3 'event':6 'log':7 'tri':1"
-bodyTs: "'/share/test.txt':82 '2':264,271 '255':127,205 '50':140 'absenc':15,266 'achiev':171 'actual':196 'alert':100,135 'alert-typ':99,134 'alreadi':38,88,139 'also':216 'anybodi':157 'assist':227 'attach':20 'attr':269 'attribut':189,251,273 'avoid':163 'awar':158 'awaylog':84 'capabl':124 'card':8,115,258 'cat':81 'chang':236 'char':206 'charact':128,141 'chracter':165 'color':102 'command':65,77,80,137,223 'config':247 'config.yaml':228 'content':70,265 'count':209 'creat':4,41,221 'dashboard':59 'decis':23 'delet':278 'direct':238 'display':30 'done':33 'edit/solution':176 'entiti':261 'entri':185,215,255 'event':6,13,48,174,267 'exe':131 'exeed':145 'file':52,87 'flow':43 'follow':63 'format':91,253 'got':286 'home':226,282 'icon':106 'id':262 'idea':169 'im':1 'import':12 'includ':89 'instead':229 'json':188,250,272 'like':16 'limit':130,166,203 'line':78 'list':256,275 'log':7,56,175,184,214,254 'm_randall@sh.itjust.works':179 'marg':280,285 'markdown':114,257,260 'msg.logcount':249 'msg.payload':252 'name':83 'new':288 'node':35,44,234,240,243,246 'node-r':242 'number':212 'one':133 'p':290 'phonenumb':289 'problem':116 'ps':284 'put':46,68,182 'quick':132 'red':36,45,241,244 'relat':105 'relev':26 'result':147 'row':103 'screenshot':21,152 'seem':121 'sensor':66,76,79,108,119,192,197,224,233,245 'sensor.absencelog':263,270 'show':11,54 'shown':17,97,149 'skip':218 'solut':161 'start':39 'state':248,268 'step':220 'store':126 'text':94 'thank':177 'top':155 'tri':2,61 'txt':51,73,86 'type':101,136,259 'unknown':151 'use':111,194,231 'valu':198"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705236764
+visibility: "visible "
+apId: "https://lemmy.world/post/10659194"
+editedAt: DateTimeImmutable @1723165817 {#2388
date: 2024-08-09 03:10:17.0 +02:00
}
+createdAt: DateTimeImmutable @1705150364 {#1684
date: 2024-01-13 13:52:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: null
+root: null
+body: "Door was opened*"
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1722857049 {#4106
date: 2024-08-05 13:24:09.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4095 …}
+nested: Doctrine\ORM\PersistentCollection {#4093 …}
+votes: Doctrine\ORM\PersistentCollection {#4091 …}
+reports: Doctrine\ORM\PersistentCollection {#4089 …}
+favourites: Doctrine\ORM\PersistentCollection {#4057 …}
+notifications: Doctrine\ORM\PersistentCollection {#4061 …}
-id: 305330
-bodyTs: "'door':1 'open':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6645544"
+editedAt: null
+createdAt: DateTimeImmutable @1705156936 {#4042
date: 2024-01-13 15:42:16.0 +01:00
}
} |
|
Show voter details
|
7 |
DENIED
|
edit
|
App\Entity\EntryComment {#4097
+user: App\Entity\User {#4045 …}
+entry: App\Entity\Entry {#2479
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+magazine: App\Entity\Magazine {#260
+icon: Proxies\__CG__\App\Entity\Image {#240 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#271
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#231 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#227 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …}
+entries: Doctrine\ORM\PersistentCollection {#174 …}
+posts: Doctrine\ORM\PersistentCollection {#132 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#194 …}
+bans: Doctrine\ORM\PersistentCollection {#111 …}
+reports: Doctrine\ORM\PersistentCollection {#97 …}
+badges: Doctrine\ORM\PersistentCollection {#75 …}
+logs: Doctrine\ORM\PersistentCollection {#65 …}
+awards: Doctrine\ORM\PersistentCollection {#1822 …}
+categories: Doctrine\ORM\PersistentCollection {#1850 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#270
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#276
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1932 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1901 …}
+slug: "Try-to-create-an-absence-event-log-Card"
+title: "Try to create an absence event log Card"
+url: "https://lemmy.world/pictrs/image/8580aa34-9960-4955-af97-8171a6c9906a.png"
+body: """
Im trying to create an event log Card that will show important events during absence, like shown in the attached screenshot.\n
\n
The decision, what is relevant and how its displayed, can be done by node red (i already started to create the flows)\n
\n
Node Red puts the events in a .txt file. To show this Log on my Dashboard, i tried the following: A command sensor is putting the content of the .txt in a sensor.\n
\n
```\n
\n
<span style="color:#323232;">command_line:\n
</span><span style="color:#323232;"> - sensor:\n
</span><span style="color:#323232;"> command: 'cat /share/test.txt'\n
</span><span style="color:#323232;"> name: awaylog\n
</span><span style="color:#323232;">\n
</span>\n
```\n
\n
The .txt file already includs the formating for the text to be shown as alert-types (colored row with related icon). The sensor is then used in a Markdown Card.\n
\n
Problem is, the sensor only seems to be capable of storing 255 characters. This limit exeeds quickly. (one alert-type command is already >50 characters) . If it is exeeded the result is shown as “unknown” (screenshot at the top)\n
\n
Is anybody aware of a solution to avoid this chracter limit. Any other ideas to achiev such an event log ?\n
\n
#**Edit/Solution**: Thanks to @m_randall@sh.itjust.works I just put the log entries in the json_attributes of the sensor and used the actual sensor value (because only this is limited to 255 char.) to just count up the number of log entries. Also i skipped the step creating a command sensor in Home assistant config.yaml, instead i used the sensor node to change it directly with node red.\n
\n
**Node-red sensor node config:**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">state = msg.logcount\n
</span><span style="color:#323232;">json_attributes = msg.payload (formated log entry list)\n
</span>\n
```\n
\n
**Markdown card**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">type: markdown\n
</span><span style="color:#323232;">entity_id:\n
</span><span style="color:#323232;"> - sensor.absencelog_2\n
</span><span style="color:#323232;">content: |\n
</span><span style="color:#323232;"> ## Absence Events\n
</span><span style="color:#323232;"> {{state_attr('sensor.absencelog_2', 'json_attributes')}}\n
</span><span style="color:#323232;"> \n
</span><span style="color:#323232;"> *This list will be deleted when Marge is home again*\n
</span>\n
```\n
\n
*ps. Marge got a new phonenumber :P*
"""
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 5
+favouriteCount: 40
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1723163604 {#1828
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@m_randall@sh.itjust.works"
]
+comments: Doctrine\ORM\PersistentCollection {#1864 …}
+votes: Doctrine\ORM\PersistentCollection {#1390 …}
+reports: Doctrine\ORM\PersistentCollection {#1373 …}
+favourites: Doctrine\ORM\PersistentCollection {#1378 …}
+notifications: Doctrine\ORM\PersistentCollection {#2355 …}
+badges: Doctrine\ORM\PersistentCollection {#2476 …}
+children: []
-id: 29672
-titleTs: "'absenc':5 'card':8 'creat':3 'event':6 'log':7 'tri':1"
-bodyTs: "'/share/test.txt':82 '2':264,271 '255':127,205 '50':140 'absenc':15,266 'achiev':171 'actual':196 'alert':100,135 'alert-typ':99,134 'alreadi':38,88,139 'also':216 'anybodi':157 'assist':227 'attach':20 'attr':269 'attribut':189,251,273 'avoid':163 'awar':158 'awaylog':84 'capabl':124 'card':8,115,258 'cat':81 'chang':236 'char':206 'charact':128,141 'chracter':165 'color':102 'command':65,77,80,137,223 'config':247 'config.yaml':228 'content':70,265 'count':209 'creat':4,41,221 'dashboard':59 'decis':23 'delet':278 'direct':238 'display':30 'done':33 'edit/solution':176 'entiti':261 'entri':185,215,255 'event':6,13,48,174,267 'exe':131 'exeed':145 'file':52,87 'flow':43 'follow':63 'format':91,253 'got':286 'home':226,282 'icon':106 'id':262 'idea':169 'im':1 'import':12 'includ':89 'instead':229 'json':188,250,272 'like':16 'limit':130,166,203 'line':78 'list':256,275 'log':7,56,175,184,214,254 'm_randall@sh.itjust.works':179 'marg':280,285 'markdown':114,257,260 'msg.logcount':249 'msg.payload':252 'name':83 'new':288 'node':35,44,234,240,243,246 'node-r':242 'number':212 'one':133 'p':290 'phonenumb':289 'problem':116 'ps':284 'put':46,68,182 'quick':132 'red':36,45,241,244 'relat':105 'relev':26 'result':147 'row':103 'screenshot':21,152 'seem':121 'sensor':66,76,79,108,119,192,197,224,233,245 'sensor.absencelog':263,270 'show':11,54 'shown':17,97,149 'skip':218 'solut':161 'start':39 'state':248,268 'step':220 'store':126 'text':94 'thank':177 'top':155 'tri':2,61 'txt':51,73,86 'type':101,136,259 'unknown':151 'use':111,194,231 'valu':198"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705236764
+visibility: "visible "
+apId: "https://lemmy.world/post/10659194"
+editedAt: DateTimeImmutable @1723165817 {#2388
date: 2024-08-09 03:10:17.0 +02:00
}
+createdAt: DateTimeImmutable @1705150364 {#1684
date: 2024-01-13 13:52:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: null
+root: null
+body: "Door was opened*"
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1722857049 {#4106
date: 2024-08-05 13:24:09.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4095 …}
+nested: Doctrine\ORM\PersistentCollection {#4093 …}
+votes: Doctrine\ORM\PersistentCollection {#4091 …}
+reports: Doctrine\ORM\PersistentCollection {#4089 …}
+favourites: Doctrine\ORM\PersistentCollection {#4057 …}
+notifications: Doctrine\ORM\PersistentCollection {#4061 …}
-id: 305330
-bodyTs: "'door':1 'open':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6645544"
+editedAt: null
+createdAt: DateTimeImmutable @1705156936 {#4042
date: 2024-01-13 15:42:16.0 +01:00
}
} |
|
Show voter details
|
8 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4097
+user: App\Entity\User {#4045 …}
+entry: App\Entity\Entry {#2479
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+magazine: App\Entity\Magazine {#260
+icon: Proxies\__CG__\App\Entity\Image {#240 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#271
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#231 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#227 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …}
+entries: Doctrine\ORM\PersistentCollection {#174 …}
+posts: Doctrine\ORM\PersistentCollection {#132 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#194 …}
+bans: Doctrine\ORM\PersistentCollection {#111 …}
+reports: Doctrine\ORM\PersistentCollection {#97 …}
+badges: Doctrine\ORM\PersistentCollection {#75 …}
+logs: Doctrine\ORM\PersistentCollection {#65 …}
+awards: Doctrine\ORM\PersistentCollection {#1822 …}
+categories: Doctrine\ORM\PersistentCollection {#1850 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#270
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#276
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1932 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1901 …}
+slug: "Try-to-create-an-absence-event-log-Card"
+title: "Try to create an absence event log Card"
+url: "https://lemmy.world/pictrs/image/8580aa34-9960-4955-af97-8171a6c9906a.png"
+body: """
Im trying to create an event log Card that will show important events during absence, like shown in the attached screenshot.\n
\n
The decision, what is relevant and how its displayed, can be done by node red (i already started to create the flows)\n
\n
Node Red puts the events in a .txt file. To show this Log on my Dashboard, i tried the following: A command sensor is putting the content of the .txt in a sensor.\n
\n
```\n
\n
<span style="color:#323232;">command_line:\n
</span><span style="color:#323232;"> - sensor:\n
</span><span style="color:#323232;"> command: 'cat /share/test.txt'\n
</span><span style="color:#323232;"> name: awaylog\n
</span><span style="color:#323232;">\n
</span>\n
```\n
\n
The .txt file already includs the formating for the text to be shown as alert-types (colored row with related icon). The sensor is then used in a Markdown Card.\n
\n
Problem is, the sensor only seems to be capable of storing 255 characters. This limit exeeds quickly. (one alert-type command is already >50 characters) . If it is exeeded the result is shown as “unknown” (screenshot at the top)\n
\n
Is anybody aware of a solution to avoid this chracter limit. Any other ideas to achiev such an event log ?\n
\n
#**Edit/Solution**: Thanks to @m_randall@sh.itjust.works I just put the log entries in the json_attributes of the sensor and used the actual sensor value (because only this is limited to 255 char.) to just count up the number of log entries. Also i skipped the step creating a command sensor in Home assistant config.yaml, instead i used the sensor node to change it directly with node red.\n
\n
**Node-red sensor node config:**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">state = msg.logcount\n
</span><span style="color:#323232;">json_attributes = msg.payload (formated log entry list)\n
</span>\n
```\n
\n
**Markdown card**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">type: markdown\n
</span><span style="color:#323232;">entity_id:\n
</span><span style="color:#323232;"> - sensor.absencelog_2\n
</span><span style="color:#323232;">content: |\n
</span><span style="color:#323232;"> ## Absence Events\n
</span><span style="color:#323232;"> {{state_attr('sensor.absencelog_2', 'json_attributes')}}\n
</span><span style="color:#323232;"> \n
</span><span style="color:#323232;"> *This list will be deleted when Marge is home again*\n
</span>\n
```\n
\n
*ps. Marge got a new phonenumber :P*
"""
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 5
+favouriteCount: 40
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1723163604 {#1828
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@m_randall@sh.itjust.works"
]
+comments: Doctrine\ORM\PersistentCollection {#1864 …}
+votes: Doctrine\ORM\PersistentCollection {#1390 …}
+reports: Doctrine\ORM\PersistentCollection {#1373 …}
+favourites: Doctrine\ORM\PersistentCollection {#1378 …}
+notifications: Doctrine\ORM\PersistentCollection {#2355 …}
+badges: Doctrine\ORM\PersistentCollection {#2476 …}
+children: []
-id: 29672
-titleTs: "'absenc':5 'card':8 'creat':3 'event':6 'log':7 'tri':1"
-bodyTs: "'/share/test.txt':82 '2':264,271 '255':127,205 '50':140 'absenc':15,266 'achiev':171 'actual':196 'alert':100,135 'alert-typ':99,134 'alreadi':38,88,139 'also':216 'anybodi':157 'assist':227 'attach':20 'attr':269 'attribut':189,251,273 'avoid':163 'awar':158 'awaylog':84 'capabl':124 'card':8,115,258 'cat':81 'chang':236 'char':206 'charact':128,141 'chracter':165 'color':102 'command':65,77,80,137,223 'config':247 'config.yaml':228 'content':70,265 'count':209 'creat':4,41,221 'dashboard':59 'decis':23 'delet':278 'direct':238 'display':30 'done':33 'edit/solution':176 'entiti':261 'entri':185,215,255 'event':6,13,48,174,267 'exe':131 'exeed':145 'file':52,87 'flow':43 'follow':63 'format':91,253 'got':286 'home':226,282 'icon':106 'id':262 'idea':169 'im':1 'import':12 'includ':89 'instead':229 'json':188,250,272 'like':16 'limit':130,166,203 'line':78 'list':256,275 'log':7,56,175,184,214,254 'm_randall@sh.itjust.works':179 'marg':280,285 'markdown':114,257,260 'msg.logcount':249 'msg.payload':252 'name':83 'new':288 'node':35,44,234,240,243,246 'node-r':242 'number':212 'one':133 'p':290 'phonenumb':289 'problem':116 'ps':284 'put':46,68,182 'quick':132 'red':36,45,241,244 'relat':105 'relev':26 'result':147 'row':103 'screenshot':21,152 'seem':121 'sensor':66,76,79,108,119,192,197,224,233,245 'sensor.absencelog':263,270 'show':11,54 'shown':17,97,149 'skip':218 'solut':161 'start':39 'state':248,268 'step':220 'store':126 'text':94 'thank':177 'top':155 'tri':2,61 'txt':51,73,86 'type':101,136,259 'unknown':151 'use':111,194,231 'valu':198"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705236764
+visibility: "visible "
+apId: "https://lemmy.world/post/10659194"
+editedAt: DateTimeImmutable @1723165817 {#2388
date: 2024-08-09 03:10:17.0 +02:00
}
+createdAt: DateTimeImmutable @1705150364 {#1684
date: 2024-01-13 13:52:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: null
+root: null
+body: "Door was opened*"
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1722857049 {#4106
date: 2024-08-05 13:24:09.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4095 …}
+nested: Doctrine\ORM\PersistentCollection {#4093 …}
+votes: Doctrine\ORM\PersistentCollection {#4091 …}
+reports: Doctrine\ORM\PersistentCollection {#4089 …}
+favourites: Doctrine\ORM\PersistentCollection {#4057 …}
+notifications: Doctrine\ORM\PersistentCollection {#4061 …}
-id: 305330
-bodyTs: "'door':1 'open':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6645544"
+editedAt: null
+createdAt: DateTimeImmutable @1705156936 {#4042
date: 2024-01-13 15:42:16.0 +01:00
}
} |
|
Show voter details
|
9 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
10 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4241
+user: Proxies\__CG__\App\Entity\User {#4242 …}
+entry: App\Entity\Entry {#2479
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+magazine: App\Entity\Magazine {#260
+icon: Proxies\__CG__\App\Entity\Image {#240 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#271
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#231 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#227 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …}
+entries: Doctrine\ORM\PersistentCollection {#174 …}
+posts: Doctrine\ORM\PersistentCollection {#132 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#194 …}
+bans: Doctrine\ORM\PersistentCollection {#111 …}
+reports: Doctrine\ORM\PersistentCollection {#97 …}
+badges: Doctrine\ORM\PersistentCollection {#75 …}
+logs: Doctrine\ORM\PersistentCollection {#65 …}
+awards: Doctrine\ORM\PersistentCollection {#1822 …}
+categories: Doctrine\ORM\PersistentCollection {#1850 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#270
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#276
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1932 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1901 …}
+slug: "Try-to-create-an-absence-event-log-Card"
+title: "Try to create an absence event log Card"
+url: "https://lemmy.world/pictrs/image/8580aa34-9960-4955-af97-8171a6c9906a.png"
+body: """
Im trying to create an event log Card that will show important events during absence, like shown in the attached screenshot.\n
\n
The decision, what is relevant and how its displayed, can be done by node red (i already started to create the flows)\n
\n
Node Red puts the events in a .txt file. To show this Log on my Dashboard, i tried the following: A command sensor is putting the content of the .txt in a sensor.\n
\n
```\n
\n
<span style="color:#323232;">command_line:\n
</span><span style="color:#323232;"> - sensor:\n
</span><span style="color:#323232;"> command: 'cat /share/test.txt'\n
</span><span style="color:#323232;"> name: awaylog\n
</span><span style="color:#323232;">\n
</span>\n
```\n
\n
The .txt file already includs the formating for the text to be shown as alert-types (colored row with related icon). The sensor is then used in a Markdown Card.\n
\n
Problem is, the sensor only seems to be capable of storing 255 characters. This limit exeeds quickly. (one alert-type command is already >50 characters) . If it is exeeded the result is shown as “unknown” (screenshot at the top)\n
\n
Is anybody aware of a solution to avoid this chracter limit. Any other ideas to achiev such an event log ?\n
\n
#**Edit/Solution**: Thanks to @m_randall@sh.itjust.works I just put the log entries in the json_attributes of the sensor and used the actual sensor value (because only this is limited to 255 char.) to just count up the number of log entries. Also i skipped the step creating a command sensor in Home assistant config.yaml, instead i used the sensor node to change it directly with node red.\n
\n
**Node-red sensor node config:**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">state = msg.logcount\n
</span><span style="color:#323232;">json_attributes = msg.payload (formated log entry list)\n
</span>\n
```\n
\n
**Markdown card**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">type: markdown\n
</span><span style="color:#323232;">entity_id:\n
</span><span style="color:#323232;"> - sensor.absencelog_2\n
</span><span style="color:#323232;">content: |\n
</span><span style="color:#323232;"> ## Absence Events\n
</span><span style="color:#323232;"> {{state_attr('sensor.absencelog_2', 'json_attributes')}}\n
</span><span style="color:#323232;"> \n
</span><span style="color:#323232;"> *This list will be deleted when Marge is home again*\n
</span>\n
```\n
\n
*ps. Marge got a new phonenumber :P*
"""
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 5
+favouriteCount: 40
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1723163604 {#1828
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@m_randall@sh.itjust.works"
]
+comments: Doctrine\ORM\PersistentCollection {#1864 …}
+votes: Doctrine\ORM\PersistentCollection {#1390 …}
+reports: Doctrine\ORM\PersistentCollection {#1373 …}
+favourites: Doctrine\ORM\PersistentCollection {#1378 …}
+notifications: Doctrine\ORM\PersistentCollection {#2355 …}
+badges: Doctrine\ORM\PersistentCollection {#2476 …}
+children: []
-id: 29672
-titleTs: "'absenc':5 'card':8 'creat':3 'event':6 'log':7 'tri':1"
-bodyTs: "'/share/test.txt':82 '2':264,271 '255':127,205 '50':140 'absenc':15,266 'achiev':171 'actual':196 'alert':100,135 'alert-typ':99,134 'alreadi':38,88,139 'also':216 'anybodi':157 'assist':227 'attach':20 'attr':269 'attribut':189,251,273 'avoid':163 'awar':158 'awaylog':84 'capabl':124 'card':8,115,258 'cat':81 'chang':236 'char':206 'charact':128,141 'chracter':165 'color':102 'command':65,77,80,137,223 'config':247 'config.yaml':228 'content':70,265 'count':209 'creat':4,41,221 'dashboard':59 'decis':23 'delet':278 'direct':238 'display':30 'done':33 'edit/solution':176 'entiti':261 'entri':185,215,255 'event':6,13,48,174,267 'exe':131 'exeed':145 'file':52,87 'flow':43 'follow':63 'format':91,253 'got':286 'home':226,282 'icon':106 'id':262 'idea':169 'im':1 'import':12 'includ':89 'instead':229 'json':188,250,272 'like':16 'limit':130,166,203 'line':78 'list':256,275 'log':7,56,175,184,214,254 'm_randall@sh.itjust.works':179 'marg':280,285 'markdown':114,257,260 'msg.logcount':249 'msg.payload':252 'name':83 'new':288 'node':35,44,234,240,243,246 'node-r':242 'number':212 'one':133 'p':290 'phonenumb':289 'problem':116 'ps':284 'put':46,68,182 'quick':132 'red':36,45,241,244 'relat':105 'relev':26 'result':147 'row':103 'screenshot':21,152 'seem':121 'sensor':66,76,79,108,119,192,197,224,233,245 'sensor.absencelog':263,270 'show':11,54 'shown':17,97,149 'skip':218 'solut':161 'start':39 'state':248,268 'step':220 'store':126 'text':94 'thank':177 'top':155 'tri':2,61 'txt':51,73,86 'type':101,136,259 'unknown':151 'use':111,194,231 'valu':198"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705236764
+visibility: "visible "
+apId: "https://lemmy.world/post/10659194"
+editedAt: DateTimeImmutable @1723165817 {#2388
date: 2024-08-09 03:10:17.0 +02:00
}
+createdAt: DateTimeImmutable @1705150364 {#1684
date: 2024-01-13 13:52:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: App\Entity\EntryComment {#4097
+user: App\Entity\User {#4045 …}
+entry: App\Entity\Entry {#2479}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: null
+root: null
+body: "Door was opened*"
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1722857049 {#4106
date: 2024-08-05 13:24:09.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4095 …}
+nested: Doctrine\ORM\PersistentCollection {#4093 …}
+votes: Doctrine\ORM\PersistentCollection {#4091 …}
+reports: Doctrine\ORM\PersistentCollection {#4089 …}
+favourites: Doctrine\ORM\PersistentCollection {#4057 …}
+notifications: Doctrine\ORM\PersistentCollection {#4061 …}
-id: 305330
-bodyTs: "'door':1 'open':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6645544"
+editedAt: null
+createdAt: DateTimeImmutable @1705156936 {#4042
date: 2024-01-13 15:42:16.0 +01:00
}
}
+root: App\Entity\EntryComment {#4097}
+body: "Nah the door daemon was set to OpenD"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1705159399 {#4239
date: 2024-01-13 16:23:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
"@LazaroFilm@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4243 …}
+nested: Doctrine\ORM\PersistentCollection {#4245 …}
+votes: Doctrine\ORM\PersistentCollection {#4247 …}
+reports: Doctrine\ORM\PersistentCollection {#4249 …}
+favourites: Doctrine\ORM\PersistentCollection {#4251 …}
+notifications: Doctrine\ORM\PersistentCollection {#4253 …}
-id: 305438
-bodyTs: "'daemon':4 'door':3 'nah':1 'opend':8 'set':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://infosec.pub/comment/5650925"
+editedAt: null
+createdAt: DateTimeImmutable @1705159399 {#4240
date: 2024-01-13 16:23:19.0 +01:00
}
} |
|
Show voter details
|
11 |
DENIED
|
edit
|
App\Entity\EntryComment {#4241
+user: Proxies\__CG__\App\Entity\User {#4242 …}
+entry: App\Entity\Entry {#2479
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+magazine: App\Entity\Magazine {#260
+icon: Proxies\__CG__\App\Entity\Image {#240 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#271
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#231 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#227 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …}
+entries: Doctrine\ORM\PersistentCollection {#174 …}
+posts: Doctrine\ORM\PersistentCollection {#132 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#194 …}
+bans: Doctrine\ORM\PersistentCollection {#111 …}
+reports: Doctrine\ORM\PersistentCollection {#97 …}
+badges: Doctrine\ORM\PersistentCollection {#75 …}
+logs: Doctrine\ORM\PersistentCollection {#65 …}
+awards: Doctrine\ORM\PersistentCollection {#1822 …}
+categories: Doctrine\ORM\PersistentCollection {#1850 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#270
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#276
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1932 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1901 …}
+slug: "Try-to-create-an-absence-event-log-Card"
+title: "Try to create an absence event log Card"
+url: "https://lemmy.world/pictrs/image/8580aa34-9960-4955-af97-8171a6c9906a.png"
+body: """
Im trying to create an event log Card that will show important events during absence, like shown in the attached screenshot.\n
\n
The decision, what is relevant and how its displayed, can be done by node red (i already started to create the flows)\n
\n
Node Red puts the events in a .txt file. To show this Log on my Dashboard, i tried the following: A command sensor is putting the content of the .txt in a sensor.\n
\n
```\n
\n
<span style="color:#323232;">command_line:\n
</span><span style="color:#323232;"> - sensor:\n
</span><span style="color:#323232;"> command: 'cat /share/test.txt'\n
</span><span style="color:#323232;"> name: awaylog\n
</span><span style="color:#323232;">\n
</span>\n
```\n
\n
The .txt file already includs the formating for the text to be shown as alert-types (colored row with related icon). The sensor is then used in a Markdown Card.\n
\n
Problem is, the sensor only seems to be capable of storing 255 characters. This limit exeeds quickly. (one alert-type command is already >50 characters) . If it is exeeded the result is shown as “unknown” (screenshot at the top)\n
\n
Is anybody aware of a solution to avoid this chracter limit. Any other ideas to achiev such an event log ?\n
\n
#**Edit/Solution**: Thanks to @m_randall@sh.itjust.works I just put the log entries in the json_attributes of the sensor and used the actual sensor value (because only this is limited to 255 char.) to just count up the number of log entries. Also i skipped the step creating a command sensor in Home assistant config.yaml, instead i used the sensor node to change it directly with node red.\n
\n
**Node-red sensor node config:**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">state = msg.logcount\n
</span><span style="color:#323232;">json_attributes = msg.payload (formated log entry list)\n
</span>\n
```\n
\n
**Markdown card**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">type: markdown\n
</span><span style="color:#323232;">entity_id:\n
</span><span style="color:#323232;"> - sensor.absencelog_2\n
</span><span style="color:#323232;">content: |\n
</span><span style="color:#323232;"> ## Absence Events\n
</span><span style="color:#323232;"> {{state_attr('sensor.absencelog_2', 'json_attributes')}}\n
</span><span style="color:#323232;"> \n
</span><span style="color:#323232;"> *This list will be deleted when Marge is home again*\n
</span>\n
```\n
\n
*ps. Marge got a new phonenumber :P*
"""
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 5
+favouriteCount: 40
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1723163604 {#1828
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@m_randall@sh.itjust.works"
]
+comments: Doctrine\ORM\PersistentCollection {#1864 …}
+votes: Doctrine\ORM\PersistentCollection {#1390 …}
+reports: Doctrine\ORM\PersistentCollection {#1373 …}
+favourites: Doctrine\ORM\PersistentCollection {#1378 …}
+notifications: Doctrine\ORM\PersistentCollection {#2355 …}
+badges: Doctrine\ORM\PersistentCollection {#2476 …}
+children: []
-id: 29672
-titleTs: "'absenc':5 'card':8 'creat':3 'event':6 'log':7 'tri':1"
-bodyTs: "'/share/test.txt':82 '2':264,271 '255':127,205 '50':140 'absenc':15,266 'achiev':171 'actual':196 'alert':100,135 'alert-typ':99,134 'alreadi':38,88,139 'also':216 'anybodi':157 'assist':227 'attach':20 'attr':269 'attribut':189,251,273 'avoid':163 'awar':158 'awaylog':84 'capabl':124 'card':8,115,258 'cat':81 'chang':236 'char':206 'charact':128,141 'chracter':165 'color':102 'command':65,77,80,137,223 'config':247 'config.yaml':228 'content':70,265 'count':209 'creat':4,41,221 'dashboard':59 'decis':23 'delet':278 'direct':238 'display':30 'done':33 'edit/solution':176 'entiti':261 'entri':185,215,255 'event':6,13,48,174,267 'exe':131 'exeed':145 'file':52,87 'flow':43 'follow':63 'format':91,253 'got':286 'home':226,282 'icon':106 'id':262 'idea':169 'im':1 'import':12 'includ':89 'instead':229 'json':188,250,272 'like':16 'limit':130,166,203 'line':78 'list':256,275 'log':7,56,175,184,214,254 'm_randall@sh.itjust.works':179 'marg':280,285 'markdown':114,257,260 'msg.logcount':249 'msg.payload':252 'name':83 'new':288 'node':35,44,234,240,243,246 'node-r':242 'number':212 'one':133 'p':290 'phonenumb':289 'problem':116 'ps':284 'put':46,68,182 'quick':132 'red':36,45,241,244 'relat':105 'relev':26 'result':147 'row':103 'screenshot':21,152 'seem':121 'sensor':66,76,79,108,119,192,197,224,233,245 'sensor.absencelog':263,270 'show':11,54 'shown':17,97,149 'skip':218 'solut':161 'start':39 'state':248,268 'step':220 'store':126 'text':94 'thank':177 'top':155 'tri':2,61 'txt':51,73,86 'type':101,136,259 'unknown':151 'use':111,194,231 'valu':198"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705236764
+visibility: "visible "
+apId: "https://lemmy.world/post/10659194"
+editedAt: DateTimeImmutable @1723165817 {#2388
date: 2024-08-09 03:10:17.0 +02:00
}
+createdAt: DateTimeImmutable @1705150364 {#1684
date: 2024-01-13 13:52:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: App\Entity\EntryComment {#4097
+user: App\Entity\User {#4045 …}
+entry: App\Entity\Entry {#2479}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: null
+root: null
+body: "Door was opened*"
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1722857049 {#4106
date: 2024-08-05 13:24:09.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4095 …}
+nested: Doctrine\ORM\PersistentCollection {#4093 …}
+votes: Doctrine\ORM\PersistentCollection {#4091 …}
+reports: Doctrine\ORM\PersistentCollection {#4089 …}
+favourites: Doctrine\ORM\PersistentCollection {#4057 …}
+notifications: Doctrine\ORM\PersistentCollection {#4061 …}
-id: 305330
-bodyTs: "'door':1 'open':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6645544"
+editedAt: null
+createdAt: DateTimeImmutable @1705156936 {#4042
date: 2024-01-13 15:42:16.0 +01:00
}
}
+root: App\Entity\EntryComment {#4097}
+body: "Nah the door daemon was set to OpenD"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1705159399 {#4239
date: 2024-01-13 16:23:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
"@LazaroFilm@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4243 …}
+nested: Doctrine\ORM\PersistentCollection {#4245 …}
+votes: Doctrine\ORM\PersistentCollection {#4247 …}
+reports: Doctrine\ORM\PersistentCollection {#4249 …}
+favourites: Doctrine\ORM\PersistentCollection {#4251 …}
+notifications: Doctrine\ORM\PersistentCollection {#4253 …}
-id: 305438
-bodyTs: "'daemon':4 'door':3 'nah':1 'opend':8 'set':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://infosec.pub/comment/5650925"
+editedAt: null
+createdAt: DateTimeImmutable @1705159399 {#4240
date: 2024-01-13 16:23:19.0 +01:00
}
} |
|
Show voter details
|
12 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4241
+user: Proxies\__CG__\App\Entity\User {#4242 …}
+entry: App\Entity\Entry {#2479
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+magazine: App\Entity\Magazine {#260
+icon: Proxies\__CG__\App\Entity\Image {#240 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#271
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#231 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#227 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …}
+entries: Doctrine\ORM\PersistentCollection {#174 …}
+posts: Doctrine\ORM\PersistentCollection {#132 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#194 …}
+bans: Doctrine\ORM\PersistentCollection {#111 …}
+reports: Doctrine\ORM\PersistentCollection {#97 …}
+badges: Doctrine\ORM\PersistentCollection {#75 …}
+logs: Doctrine\ORM\PersistentCollection {#65 …}
+awards: Doctrine\ORM\PersistentCollection {#1822 …}
+categories: Doctrine\ORM\PersistentCollection {#1850 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#270
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#276
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1932 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1901 …}
+slug: "Try-to-create-an-absence-event-log-Card"
+title: "Try to create an absence event log Card"
+url: "https://lemmy.world/pictrs/image/8580aa34-9960-4955-af97-8171a6c9906a.png"
+body: """
Im trying to create an event log Card that will show important events during absence, like shown in the attached screenshot.\n
\n
The decision, what is relevant and how its displayed, can be done by node red (i already started to create the flows)\n
\n
Node Red puts the events in a .txt file. To show this Log on my Dashboard, i tried the following: A command sensor is putting the content of the .txt in a sensor.\n
\n
```\n
\n
<span style="color:#323232;">command_line:\n
</span><span style="color:#323232;"> - sensor:\n
</span><span style="color:#323232;"> command: 'cat /share/test.txt'\n
</span><span style="color:#323232;"> name: awaylog\n
</span><span style="color:#323232;">\n
</span>\n
```\n
\n
The .txt file already includs the formating for the text to be shown as alert-types (colored row with related icon). The sensor is then used in a Markdown Card.\n
\n
Problem is, the sensor only seems to be capable of storing 255 characters. This limit exeeds quickly. (one alert-type command is already >50 characters) . If it is exeeded the result is shown as “unknown” (screenshot at the top)\n
\n
Is anybody aware of a solution to avoid this chracter limit. Any other ideas to achiev such an event log ?\n
\n
#**Edit/Solution**: Thanks to @m_randall@sh.itjust.works I just put the log entries in the json_attributes of the sensor and used the actual sensor value (because only this is limited to 255 char.) to just count up the number of log entries. Also i skipped the step creating a command sensor in Home assistant config.yaml, instead i used the sensor node to change it directly with node red.\n
\n
**Node-red sensor node config:**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">state = msg.logcount\n
</span><span style="color:#323232;">json_attributes = msg.payload (formated log entry list)\n
</span>\n
```\n
\n
**Markdown card**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">type: markdown\n
</span><span style="color:#323232;">entity_id:\n
</span><span style="color:#323232;"> - sensor.absencelog_2\n
</span><span style="color:#323232;">content: |\n
</span><span style="color:#323232;"> ## Absence Events\n
</span><span style="color:#323232;"> {{state_attr('sensor.absencelog_2', 'json_attributes')}}\n
</span><span style="color:#323232;"> \n
</span><span style="color:#323232;"> *This list will be deleted when Marge is home again*\n
</span>\n
```\n
\n
*ps. Marge got a new phonenumber :P*
"""
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 5
+favouriteCount: 40
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1723163604 {#1828
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@m_randall@sh.itjust.works"
]
+comments: Doctrine\ORM\PersistentCollection {#1864 …}
+votes: Doctrine\ORM\PersistentCollection {#1390 …}
+reports: Doctrine\ORM\PersistentCollection {#1373 …}
+favourites: Doctrine\ORM\PersistentCollection {#1378 …}
+notifications: Doctrine\ORM\PersistentCollection {#2355 …}
+badges: Doctrine\ORM\PersistentCollection {#2476 …}
+children: []
-id: 29672
-titleTs: "'absenc':5 'card':8 'creat':3 'event':6 'log':7 'tri':1"
-bodyTs: "'/share/test.txt':82 '2':264,271 '255':127,205 '50':140 'absenc':15,266 'achiev':171 'actual':196 'alert':100,135 'alert-typ':99,134 'alreadi':38,88,139 'also':216 'anybodi':157 'assist':227 'attach':20 'attr':269 'attribut':189,251,273 'avoid':163 'awar':158 'awaylog':84 'capabl':124 'card':8,115,258 'cat':81 'chang':236 'char':206 'charact':128,141 'chracter':165 'color':102 'command':65,77,80,137,223 'config':247 'config.yaml':228 'content':70,265 'count':209 'creat':4,41,221 'dashboard':59 'decis':23 'delet':278 'direct':238 'display':30 'done':33 'edit/solution':176 'entiti':261 'entri':185,215,255 'event':6,13,48,174,267 'exe':131 'exeed':145 'file':52,87 'flow':43 'follow':63 'format':91,253 'got':286 'home':226,282 'icon':106 'id':262 'idea':169 'im':1 'import':12 'includ':89 'instead':229 'json':188,250,272 'like':16 'limit':130,166,203 'line':78 'list':256,275 'log':7,56,175,184,214,254 'm_randall@sh.itjust.works':179 'marg':280,285 'markdown':114,257,260 'msg.logcount':249 'msg.payload':252 'name':83 'new':288 'node':35,44,234,240,243,246 'node-r':242 'number':212 'one':133 'p':290 'phonenumb':289 'problem':116 'ps':284 'put':46,68,182 'quick':132 'red':36,45,241,244 'relat':105 'relev':26 'result':147 'row':103 'screenshot':21,152 'seem':121 'sensor':66,76,79,108,119,192,197,224,233,245 'sensor.absencelog':263,270 'show':11,54 'shown':17,97,149 'skip':218 'solut':161 'start':39 'state':248,268 'step':220 'store':126 'text':94 'thank':177 'top':155 'tri':2,61 'txt':51,73,86 'type':101,136,259 'unknown':151 'use':111,194,231 'valu':198"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705236764
+visibility: "visible "
+apId: "https://lemmy.world/post/10659194"
+editedAt: DateTimeImmutable @1723165817 {#2388
date: 2024-08-09 03:10:17.0 +02:00
}
+createdAt: DateTimeImmutable @1705150364 {#1684
date: 2024-01-13 13:52:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: App\Entity\EntryComment {#4097
+user: App\Entity\User {#4045 …}
+entry: App\Entity\Entry {#2479}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: null
+root: null
+body: "Door was opened*"
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1722857049 {#4106
date: 2024-08-05 13:24:09.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4095 …}
+nested: Doctrine\ORM\PersistentCollection {#4093 …}
+votes: Doctrine\ORM\PersistentCollection {#4091 …}
+reports: Doctrine\ORM\PersistentCollection {#4089 …}
+favourites: Doctrine\ORM\PersistentCollection {#4057 …}
+notifications: Doctrine\ORM\PersistentCollection {#4061 …}
-id: 305330
-bodyTs: "'door':1 'open':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6645544"
+editedAt: null
+createdAt: DateTimeImmutable @1705156936 {#4042
date: 2024-01-13 15:42:16.0 +01:00
}
}
+root: App\Entity\EntryComment {#4097}
+body: "Nah the door daemon was set to OpenD"
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1705159399 {#4239
date: 2024-01-13 16:23:19.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
"@LazaroFilm@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4243 …}
+nested: Doctrine\ORM\PersistentCollection {#4245 …}
+votes: Doctrine\ORM\PersistentCollection {#4247 …}
+reports: Doctrine\ORM\PersistentCollection {#4249 …}
+favourites: Doctrine\ORM\PersistentCollection {#4251 …}
+notifications: Doctrine\ORM\PersistentCollection {#4253 …}
-id: 305438
-bodyTs: "'daemon':4 'door':3 'nah':1 'opend':8 'set':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://infosec.pub/comment/5650925"
+editedAt: null
+createdAt: DateTimeImmutable @1705159399 {#4240
date: 2024-01-13 16:23:19.0 +01:00
}
} |
|
Show voter details
|
13 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
14 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4258
+user: Proxies\__CG__\App\Entity\User {#4259 …}
+entry: App\Entity\Entry {#2479
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+magazine: App\Entity\Magazine {#260
+icon: Proxies\__CG__\App\Entity\Image {#240 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#271
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#231 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#227 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …}
+entries: Doctrine\ORM\PersistentCollection {#174 …}
+posts: Doctrine\ORM\PersistentCollection {#132 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#194 …}
+bans: Doctrine\ORM\PersistentCollection {#111 …}
+reports: Doctrine\ORM\PersistentCollection {#97 …}
+badges: Doctrine\ORM\PersistentCollection {#75 …}
+logs: Doctrine\ORM\PersistentCollection {#65 …}
+awards: Doctrine\ORM\PersistentCollection {#1822 …}
+categories: Doctrine\ORM\PersistentCollection {#1850 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#270
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#276
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1932 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1901 …}
+slug: "Try-to-create-an-absence-event-log-Card"
+title: "Try to create an absence event log Card"
+url: "https://lemmy.world/pictrs/image/8580aa34-9960-4955-af97-8171a6c9906a.png"
+body: """
Im trying to create an event log Card that will show important events during absence, like shown in the attached screenshot.\n
\n
The decision, what is relevant and how its displayed, can be done by node red (i already started to create the flows)\n
\n
Node Red puts the events in a .txt file. To show this Log on my Dashboard, i tried the following: A command sensor is putting the content of the .txt in a sensor.\n
\n
```\n
\n
<span style="color:#323232;">command_line:\n
</span><span style="color:#323232;"> - sensor:\n
</span><span style="color:#323232;"> command: 'cat /share/test.txt'\n
</span><span style="color:#323232;"> name: awaylog\n
</span><span style="color:#323232;">\n
</span>\n
```\n
\n
The .txt file already includs the formating for the text to be shown as alert-types (colored row with related icon). The sensor is then used in a Markdown Card.\n
\n
Problem is, the sensor only seems to be capable of storing 255 characters. This limit exeeds quickly. (one alert-type command is already >50 characters) . If it is exeeded the result is shown as “unknown” (screenshot at the top)\n
\n
Is anybody aware of a solution to avoid this chracter limit. Any other ideas to achiev such an event log ?\n
\n
#**Edit/Solution**: Thanks to @m_randall@sh.itjust.works I just put the log entries in the json_attributes of the sensor and used the actual sensor value (because only this is limited to 255 char.) to just count up the number of log entries. Also i skipped the step creating a command sensor in Home assistant config.yaml, instead i used the sensor node to change it directly with node red.\n
\n
**Node-red sensor node config:**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">state = msg.logcount\n
</span><span style="color:#323232;">json_attributes = msg.payload (formated log entry list)\n
</span>\n
```\n
\n
**Markdown card**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">type: markdown\n
</span><span style="color:#323232;">entity_id:\n
</span><span style="color:#323232;"> - sensor.absencelog_2\n
</span><span style="color:#323232;">content: |\n
</span><span style="color:#323232;"> ## Absence Events\n
</span><span style="color:#323232;"> {{state_attr('sensor.absencelog_2', 'json_attributes')}}\n
</span><span style="color:#323232;"> \n
</span><span style="color:#323232;"> *This list will be deleted when Marge is home again*\n
</span>\n
```\n
\n
*ps. Marge got a new phonenumber :P*
"""
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 5
+favouriteCount: 40
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1723163604 {#1828
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@m_randall@sh.itjust.works"
]
+comments: Doctrine\ORM\PersistentCollection {#1864 …}
+votes: Doctrine\ORM\PersistentCollection {#1390 …}
+reports: Doctrine\ORM\PersistentCollection {#1373 …}
+favourites: Doctrine\ORM\PersistentCollection {#1378 …}
+notifications: Doctrine\ORM\PersistentCollection {#2355 …}
+badges: Doctrine\ORM\PersistentCollection {#2476 …}
+children: []
-id: 29672
-titleTs: "'absenc':5 'card':8 'creat':3 'event':6 'log':7 'tri':1"
-bodyTs: "'/share/test.txt':82 '2':264,271 '255':127,205 '50':140 'absenc':15,266 'achiev':171 'actual':196 'alert':100,135 'alert-typ':99,134 'alreadi':38,88,139 'also':216 'anybodi':157 'assist':227 'attach':20 'attr':269 'attribut':189,251,273 'avoid':163 'awar':158 'awaylog':84 'capabl':124 'card':8,115,258 'cat':81 'chang':236 'char':206 'charact':128,141 'chracter':165 'color':102 'command':65,77,80,137,223 'config':247 'config.yaml':228 'content':70,265 'count':209 'creat':4,41,221 'dashboard':59 'decis':23 'delet':278 'direct':238 'display':30 'done':33 'edit/solution':176 'entiti':261 'entri':185,215,255 'event':6,13,48,174,267 'exe':131 'exeed':145 'file':52,87 'flow':43 'follow':63 'format':91,253 'got':286 'home':226,282 'icon':106 'id':262 'idea':169 'im':1 'import':12 'includ':89 'instead':229 'json':188,250,272 'like':16 'limit':130,166,203 'line':78 'list':256,275 'log':7,56,175,184,214,254 'm_randall@sh.itjust.works':179 'marg':280,285 'markdown':114,257,260 'msg.logcount':249 'msg.payload':252 'name':83 'new':288 'node':35,44,234,240,243,246 'node-r':242 'number':212 'one':133 'p':290 'phonenumb':289 'problem':116 'ps':284 'put':46,68,182 'quick':132 'red':36,45,241,244 'relat':105 'relev':26 'result':147 'row':103 'screenshot':21,152 'seem':121 'sensor':66,76,79,108,119,192,197,224,233,245 'sensor.absencelog':263,270 'show':11,54 'shown':17,97,149 'skip':218 'solut':161 'start':39 'state':248,268 'step':220 'store':126 'text':94 'thank':177 'top':155 'tri':2,61 'txt':51,73,86 'type':101,136,259 'unknown':151 'use':111,194,231 'valu':198"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705236764
+visibility: "visible "
+apId: "https://lemmy.world/post/10659194"
+editedAt: DateTimeImmutable @1723165817 {#2388
date: 2024-08-09 03:10:17.0 +02:00
}
+createdAt: DateTimeImmutable @1705150364 {#1684
date: 2024-01-13 13:52:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: App\Entity\EntryComment {#4097
+user: App\Entity\User {#4045 …}
+entry: App\Entity\Entry {#2479}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: null
+root: null
+body: "Door was opened*"
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1722857049 {#4106
date: 2024-08-05 13:24:09.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4095 …}
+nested: Doctrine\ORM\PersistentCollection {#4093 …}
+votes: Doctrine\ORM\PersistentCollection {#4091 …}
+reports: Doctrine\ORM\PersistentCollection {#4089 …}
+favourites: Doctrine\ORM\PersistentCollection {#4057 …}
+notifications: Doctrine\ORM\PersistentCollection {#4061 …}
-id: 305330
-bodyTs: "'door':1 'open':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6645544"
+editedAt: null
+createdAt: DateTimeImmutable @1705156936 {#4042
date: 2024-01-13 15:42:16.0 +01:00
}
}
+root: App\Entity\EntryComment {#4097}
+body: "Marge was doxxed*"
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1705182999 {#4255
date: 2024-01-13 22:56:39.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
"@LazaroFilm@lemmy.world"
"@Streusel@lemmy.world"
"@LazaroFilm@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4260 …}
+nested: Doctrine\ORM\PersistentCollection {#4262 …}
+votes: Doctrine\ORM\PersistentCollection {#4264 …}
+reports: Doctrine\ORM\PersistentCollection {#4266 …}
+favourites: Doctrine\ORM\PersistentCollection {#4268 …}
+notifications: Doctrine\ORM\PersistentCollection {#4270 …}
-id: 306303
-bodyTs: "'doxx':3 'marg':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://sh.itjust.works/comment/7503802"
+editedAt: DateTimeImmutable @1722857249 {#4256
date: 2024-08-05 13:27:29.0 +02:00
}
+createdAt: DateTimeImmutable @1705182999 {#4257
date: 2024-01-13 22:56:39.0 +01:00
}
} |
|
Show voter details
|
15 |
DENIED
|
edit
|
App\Entity\EntryComment {#4258
+user: Proxies\__CG__\App\Entity\User {#4259 …}
+entry: App\Entity\Entry {#2479
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+magazine: App\Entity\Magazine {#260
+icon: Proxies\__CG__\App\Entity\Image {#240 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#271
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#231 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#227 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …}
+entries: Doctrine\ORM\PersistentCollection {#174 …}
+posts: Doctrine\ORM\PersistentCollection {#132 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#194 …}
+bans: Doctrine\ORM\PersistentCollection {#111 …}
+reports: Doctrine\ORM\PersistentCollection {#97 …}
+badges: Doctrine\ORM\PersistentCollection {#75 …}
+logs: Doctrine\ORM\PersistentCollection {#65 …}
+awards: Doctrine\ORM\PersistentCollection {#1822 …}
+categories: Doctrine\ORM\PersistentCollection {#1850 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#270
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#276
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1932 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1901 …}
+slug: "Try-to-create-an-absence-event-log-Card"
+title: "Try to create an absence event log Card"
+url: "https://lemmy.world/pictrs/image/8580aa34-9960-4955-af97-8171a6c9906a.png"
+body: """
Im trying to create an event log Card that will show important events during absence, like shown in the attached screenshot.\n
\n
The decision, what is relevant and how its displayed, can be done by node red (i already started to create the flows)\n
\n
Node Red puts the events in a .txt file. To show this Log on my Dashboard, i tried the following: A command sensor is putting the content of the .txt in a sensor.\n
\n
```\n
\n
<span style="color:#323232;">command_line:\n
</span><span style="color:#323232;"> - sensor:\n
</span><span style="color:#323232;"> command: 'cat /share/test.txt'\n
</span><span style="color:#323232;"> name: awaylog\n
</span><span style="color:#323232;">\n
</span>\n
```\n
\n
The .txt file already includs the formating for the text to be shown as alert-types (colored row with related icon). The sensor is then used in a Markdown Card.\n
\n
Problem is, the sensor only seems to be capable of storing 255 characters. This limit exeeds quickly. (one alert-type command is already >50 characters) . If it is exeeded the result is shown as “unknown” (screenshot at the top)\n
\n
Is anybody aware of a solution to avoid this chracter limit. Any other ideas to achiev such an event log ?\n
\n
#**Edit/Solution**: Thanks to @m_randall@sh.itjust.works I just put the log entries in the json_attributes of the sensor and used the actual sensor value (because only this is limited to 255 char.) to just count up the number of log entries. Also i skipped the step creating a command sensor in Home assistant config.yaml, instead i used the sensor node to change it directly with node red.\n
\n
**Node-red sensor node config:**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">state = msg.logcount\n
</span><span style="color:#323232;">json_attributes = msg.payload (formated log entry list)\n
</span>\n
```\n
\n
**Markdown card**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">type: markdown\n
</span><span style="color:#323232;">entity_id:\n
</span><span style="color:#323232;"> - sensor.absencelog_2\n
</span><span style="color:#323232;">content: |\n
</span><span style="color:#323232;"> ## Absence Events\n
</span><span style="color:#323232;"> {{state_attr('sensor.absencelog_2', 'json_attributes')}}\n
</span><span style="color:#323232;"> \n
</span><span style="color:#323232;"> *This list will be deleted when Marge is home again*\n
</span>\n
```\n
\n
*ps. Marge got a new phonenumber :P*
"""
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 5
+favouriteCount: 40
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1723163604 {#1828
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@m_randall@sh.itjust.works"
]
+comments: Doctrine\ORM\PersistentCollection {#1864 …}
+votes: Doctrine\ORM\PersistentCollection {#1390 …}
+reports: Doctrine\ORM\PersistentCollection {#1373 …}
+favourites: Doctrine\ORM\PersistentCollection {#1378 …}
+notifications: Doctrine\ORM\PersistentCollection {#2355 …}
+badges: Doctrine\ORM\PersistentCollection {#2476 …}
+children: []
-id: 29672
-titleTs: "'absenc':5 'card':8 'creat':3 'event':6 'log':7 'tri':1"
-bodyTs: "'/share/test.txt':82 '2':264,271 '255':127,205 '50':140 'absenc':15,266 'achiev':171 'actual':196 'alert':100,135 'alert-typ':99,134 'alreadi':38,88,139 'also':216 'anybodi':157 'assist':227 'attach':20 'attr':269 'attribut':189,251,273 'avoid':163 'awar':158 'awaylog':84 'capabl':124 'card':8,115,258 'cat':81 'chang':236 'char':206 'charact':128,141 'chracter':165 'color':102 'command':65,77,80,137,223 'config':247 'config.yaml':228 'content':70,265 'count':209 'creat':4,41,221 'dashboard':59 'decis':23 'delet':278 'direct':238 'display':30 'done':33 'edit/solution':176 'entiti':261 'entri':185,215,255 'event':6,13,48,174,267 'exe':131 'exeed':145 'file':52,87 'flow':43 'follow':63 'format':91,253 'got':286 'home':226,282 'icon':106 'id':262 'idea':169 'im':1 'import':12 'includ':89 'instead':229 'json':188,250,272 'like':16 'limit':130,166,203 'line':78 'list':256,275 'log':7,56,175,184,214,254 'm_randall@sh.itjust.works':179 'marg':280,285 'markdown':114,257,260 'msg.logcount':249 'msg.payload':252 'name':83 'new':288 'node':35,44,234,240,243,246 'node-r':242 'number':212 'one':133 'p':290 'phonenumb':289 'problem':116 'ps':284 'put':46,68,182 'quick':132 'red':36,45,241,244 'relat':105 'relev':26 'result':147 'row':103 'screenshot':21,152 'seem':121 'sensor':66,76,79,108,119,192,197,224,233,245 'sensor.absencelog':263,270 'show':11,54 'shown':17,97,149 'skip':218 'solut':161 'start':39 'state':248,268 'step':220 'store':126 'text':94 'thank':177 'top':155 'tri':2,61 'txt':51,73,86 'type':101,136,259 'unknown':151 'use':111,194,231 'valu':198"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705236764
+visibility: "visible "
+apId: "https://lemmy.world/post/10659194"
+editedAt: DateTimeImmutable @1723165817 {#2388
date: 2024-08-09 03:10:17.0 +02:00
}
+createdAt: DateTimeImmutable @1705150364 {#1684
date: 2024-01-13 13:52:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: App\Entity\EntryComment {#4097
+user: App\Entity\User {#4045 …}
+entry: App\Entity\Entry {#2479}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: null
+root: null
+body: "Door was opened*"
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1722857049 {#4106
date: 2024-08-05 13:24:09.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4095 …}
+nested: Doctrine\ORM\PersistentCollection {#4093 …}
+votes: Doctrine\ORM\PersistentCollection {#4091 …}
+reports: Doctrine\ORM\PersistentCollection {#4089 …}
+favourites: Doctrine\ORM\PersistentCollection {#4057 …}
+notifications: Doctrine\ORM\PersistentCollection {#4061 …}
-id: 305330
-bodyTs: "'door':1 'open':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6645544"
+editedAt: null
+createdAt: DateTimeImmutable @1705156936 {#4042
date: 2024-01-13 15:42:16.0 +01:00
}
}
+root: App\Entity\EntryComment {#4097}
+body: "Marge was doxxed*"
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1705182999 {#4255
date: 2024-01-13 22:56:39.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
"@LazaroFilm@lemmy.world"
"@Streusel@lemmy.world"
"@LazaroFilm@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4260 …}
+nested: Doctrine\ORM\PersistentCollection {#4262 …}
+votes: Doctrine\ORM\PersistentCollection {#4264 …}
+reports: Doctrine\ORM\PersistentCollection {#4266 …}
+favourites: Doctrine\ORM\PersistentCollection {#4268 …}
+notifications: Doctrine\ORM\PersistentCollection {#4270 …}
-id: 306303
-bodyTs: "'doxx':3 'marg':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://sh.itjust.works/comment/7503802"
+editedAt: DateTimeImmutable @1722857249 {#4256
date: 2024-08-05 13:27:29.0 +02:00
}
+createdAt: DateTimeImmutable @1705182999 {#4257
date: 2024-01-13 22:56:39.0 +01:00
}
} |
|
Show voter details
|
16 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4258
+user: Proxies\__CG__\App\Entity\User {#4259 …}
+entry: App\Entity\Entry {#2479
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+magazine: App\Entity\Magazine {#260
+icon: Proxies\__CG__\App\Entity\Image {#240 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#271
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#231 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#227 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …}
+entries: Doctrine\ORM\PersistentCollection {#174 …}
+posts: Doctrine\ORM\PersistentCollection {#132 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#194 …}
+bans: Doctrine\ORM\PersistentCollection {#111 …}
+reports: Doctrine\ORM\PersistentCollection {#97 …}
+badges: Doctrine\ORM\PersistentCollection {#75 …}
+logs: Doctrine\ORM\PersistentCollection {#65 …}
+awards: Doctrine\ORM\PersistentCollection {#1822 …}
+categories: Doctrine\ORM\PersistentCollection {#1850 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#270
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#276
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1932 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1901 …}
+slug: "Try-to-create-an-absence-event-log-Card"
+title: "Try to create an absence event log Card"
+url: "https://lemmy.world/pictrs/image/8580aa34-9960-4955-af97-8171a6c9906a.png"
+body: """
Im trying to create an event log Card that will show important events during absence, like shown in the attached screenshot.\n
\n
The decision, what is relevant and how its displayed, can be done by node red (i already started to create the flows)\n
\n
Node Red puts the events in a .txt file. To show this Log on my Dashboard, i tried the following: A command sensor is putting the content of the .txt in a sensor.\n
\n
```\n
\n
<span style="color:#323232;">command_line:\n
</span><span style="color:#323232;"> - sensor:\n
</span><span style="color:#323232;"> command: 'cat /share/test.txt'\n
</span><span style="color:#323232;"> name: awaylog\n
</span><span style="color:#323232;">\n
</span>\n
```\n
\n
The .txt file already includs the formating for the text to be shown as alert-types (colored row with related icon). The sensor is then used in a Markdown Card.\n
\n
Problem is, the sensor only seems to be capable of storing 255 characters. This limit exeeds quickly. (one alert-type command is already >50 characters) . If it is exeeded the result is shown as “unknown” (screenshot at the top)\n
\n
Is anybody aware of a solution to avoid this chracter limit. Any other ideas to achiev such an event log ?\n
\n
#**Edit/Solution**: Thanks to @m_randall@sh.itjust.works I just put the log entries in the json_attributes of the sensor and used the actual sensor value (because only this is limited to 255 char.) to just count up the number of log entries. Also i skipped the step creating a command sensor in Home assistant config.yaml, instead i used the sensor node to change it directly with node red.\n
\n
**Node-red sensor node config:**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">state = msg.logcount\n
</span><span style="color:#323232;">json_attributes = msg.payload (formated log entry list)\n
</span>\n
```\n
\n
**Markdown card**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">type: markdown\n
</span><span style="color:#323232;">entity_id:\n
</span><span style="color:#323232;"> - sensor.absencelog_2\n
</span><span style="color:#323232;">content: |\n
</span><span style="color:#323232;"> ## Absence Events\n
</span><span style="color:#323232;"> {{state_attr('sensor.absencelog_2', 'json_attributes')}}\n
</span><span style="color:#323232;"> \n
</span><span style="color:#323232;"> *This list will be deleted when Marge is home again*\n
</span>\n
```\n
\n
*ps. Marge got a new phonenumber :P*
"""
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 5
+favouriteCount: 40
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1723163604 {#1828
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@m_randall@sh.itjust.works"
]
+comments: Doctrine\ORM\PersistentCollection {#1864 …}
+votes: Doctrine\ORM\PersistentCollection {#1390 …}
+reports: Doctrine\ORM\PersistentCollection {#1373 …}
+favourites: Doctrine\ORM\PersistentCollection {#1378 …}
+notifications: Doctrine\ORM\PersistentCollection {#2355 …}
+badges: Doctrine\ORM\PersistentCollection {#2476 …}
+children: []
-id: 29672
-titleTs: "'absenc':5 'card':8 'creat':3 'event':6 'log':7 'tri':1"
-bodyTs: "'/share/test.txt':82 '2':264,271 '255':127,205 '50':140 'absenc':15,266 'achiev':171 'actual':196 'alert':100,135 'alert-typ':99,134 'alreadi':38,88,139 'also':216 'anybodi':157 'assist':227 'attach':20 'attr':269 'attribut':189,251,273 'avoid':163 'awar':158 'awaylog':84 'capabl':124 'card':8,115,258 'cat':81 'chang':236 'char':206 'charact':128,141 'chracter':165 'color':102 'command':65,77,80,137,223 'config':247 'config.yaml':228 'content':70,265 'count':209 'creat':4,41,221 'dashboard':59 'decis':23 'delet':278 'direct':238 'display':30 'done':33 'edit/solution':176 'entiti':261 'entri':185,215,255 'event':6,13,48,174,267 'exe':131 'exeed':145 'file':52,87 'flow':43 'follow':63 'format':91,253 'got':286 'home':226,282 'icon':106 'id':262 'idea':169 'im':1 'import':12 'includ':89 'instead':229 'json':188,250,272 'like':16 'limit':130,166,203 'line':78 'list':256,275 'log':7,56,175,184,214,254 'm_randall@sh.itjust.works':179 'marg':280,285 'markdown':114,257,260 'msg.logcount':249 'msg.payload':252 'name':83 'new':288 'node':35,44,234,240,243,246 'node-r':242 'number':212 'one':133 'p':290 'phonenumb':289 'problem':116 'ps':284 'put':46,68,182 'quick':132 'red':36,45,241,244 'relat':105 'relev':26 'result':147 'row':103 'screenshot':21,152 'seem':121 'sensor':66,76,79,108,119,192,197,224,233,245 'sensor.absencelog':263,270 'show':11,54 'shown':17,97,149 'skip':218 'solut':161 'start':39 'state':248,268 'step':220 'store':126 'text':94 'thank':177 'top':155 'tri':2,61 'txt':51,73,86 'type':101,136,259 'unknown':151 'use':111,194,231 'valu':198"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705236764
+visibility: "visible "
+apId: "https://lemmy.world/post/10659194"
+editedAt: DateTimeImmutable @1723165817 {#2388
date: 2024-08-09 03:10:17.0 +02:00
}
+createdAt: DateTimeImmutable @1705150364 {#1684
date: 2024-01-13 13:52:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: App\Entity\EntryComment {#4097
+user: App\Entity\User {#4045 …}
+entry: App\Entity\Entry {#2479}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: null
+root: null
+body: "Door was opened*"
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1722857049 {#4106
date: 2024-08-05 13:24:09.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4095 …}
+nested: Doctrine\ORM\PersistentCollection {#4093 …}
+votes: Doctrine\ORM\PersistentCollection {#4091 …}
+reports: Doctrine\ORM\PersistentCollection {#4089 …}
+favourites: Doctrine\ORM\PersistentCollection {#4057 …}
+notifications: Doctrine\ORM\PersistentCollection {#4061 …}
-id: 305330
-bodyTs: "'door':1 'open':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6645544"
+editedAt: null
+createdAt: DateTimeImmutable @1705156936 {#4042
date: 2024-01-13 15:42:16.0 +01:00
}
}
+root: App\Entity\EntryComment {#4097}
+body: "Marge was doxxed*"
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1705182999 {#4255
date: 2024-01-13 22:56:39.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
"@LazaroFilm@lemmy.world"
"@Streusel@lemmy.world"
"@LazaroFilm@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4260 …}
+nested: Doctrine\ORM\PersistentCollection {#4262 …}
+votes: Doctrine\ORM\PersistentCollection {#4264 …}
+reports: Doctrine\ORM\PersistentCollection {#4266 …}
+favourites: Doctrine\ORM\PersistentCollection {#4268 …}
+notifications: Doctrine\ORM\PersistentCollection {#4270 …}
-id: 306303
-bodyTs: "'doxx':3 'marg':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://sh.itjust.works/comment/7503802"
+editedAt: DateTimeImmutable @1722857249 {#4256
date: 2024-08-05 13:27:29.0 +02:00
}
+createdAt: DateTimeImmutable @1705182999 {#4257
date: 2024-01-13 22:56:39.0 +01:00
}
} |
|
Show voter details
|
17 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
18 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4132
+user: App\Entity\User {#4116 …}
+entry: App\Entity\Entry {#2479
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+magazine: App\Entity\Magazine {#260
+icon: Proxies\__CG__\App\Entity\Image {#240 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#271
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#231 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#227 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …}
+entries: Doctrine\ORM\PersistentCollection {#174 …}
+posts: Doctrine\ORM\PersistentCollection {#132 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#194 …}
+bans: Doctrine\ORM\PersistentCollection {#111 …}
+reports: Doctrine\ORM\PersistentCollection {#97 …}
+badges: Doctrine\ORM\PersistentCollection {#75 …}
+logs: Doctrine\ORM\PersistentCollection {#65 …}
+awards: Doctrine\ORM\PersistentCollection {#1822 …}
+categories: Doctrine\ORM\PersistentCollection {#1850 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#270
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#276
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1932 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1901 …}
+slug: "Try-to-create-an-absence-event-log-Card"
+title: "Try to create an absence event log Card"
+url: "https://lemmy.world/pictrs/image/8580aa34-9960-4955-af97-8171a6c9906a.png"
+body: """
Im trying to create an event log Card that will show important events during absence, like shown in the attached screenshot.\n
\n
The decision, what is relevant and how its displayed, can be done by node red (i already started to create the flows)\n
\n
Node Red puts the events in a .txt file. To show this Log on my Dashboard, i tried the following: A command sensor is putting the content of the .txt in a sensor.\n
\n
```\n
\n
<span style="color:#323232;">command_line:\n
</span><span style="color:#323232;"> - sensor:\n
</span><span style="color:#323232;"> command: 'cat /share/test.txt'\n
</span><span style="color:#323232;"> name: awaylog\n
</span><span style="color:#323232;">\n
</span>\n
```\n
\n
The .txt file already includs the formating for the text to be shown as alert-types (colored row with related icon). The sensor is then used in a Markdown Card.\n
\n
Problem is, the sensor only seems to be capable of storing 255 characters. This limit exeeds quickly. (one alert-type command is already >50 characters) . If it is exeeded the result is shown as “unknown” (screenshot at the top)\n
\n
Is anybody aware of a solution to avoid this chracter limit. Any other ideas to achiev such an event log ?\n
\n
#**Edit/Solution**: Thanks to @m_randall@sh.itjust.works I just put the log entries in the json_attributes of the sensor and used the actual sensor value (because only this is limited to 255 char.) to just count up the number of log entries. Also i skipped the step creating a command sensor in Home assistant config.yaml, instead i used the sensor node to change it directly with node red.\n
\n
**Node-red sensor node config:**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">state = msg.logcount\n
</span><span style="color:#323232;">json_attributes = msg.payload (formated log entry list)\n
</span>\n
```\n
\n
**Markdown card**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">type: markdown\n
</span><span style="color:#323232;">entity_id:\n
</span><span style="color:#323232;"> - sensor.absencelog_2\n
</span><span style="color:#323232;">content: |\n
</span><span style="color:#323232;"> ## Absence Events\n
</span><span style="color:#323232;"> {{state_attr('sensor.absencelog_2', 'json_attributes')}}\n
</span><span style="color:#323232;"> \n
</span><span style="color:#323232;"> *This list will be deleted when Marge is home again*\n
</span>\n
```\n
\n
*ps. Marge got a new phonenumber :P*
"""
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 5
+favouriteCount: 40
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1723163604 {#1828
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@m_randall@sh.itjust.works"
]
+comments: Doctrine\ORM\PersistentCollection {#1864 …}
+votes: Doctrine\ORM\PersistentCollection {#1390 …}
+reports: Doctrine\ORM\PersistentCollection {#1373 …}
+favourites: Doctrine\ORM\PersistentCollection {#1378 …}
+notifications: Doctrine\ORM\PersistentCollection {#2355 …}
+badges: Doctrine\ORM\PersistentCollection {#2476 …}
+children: []
-id: 29672
-titleTs: "'absenc':5 'card':8 'creat':3 'event':6 'log':7 'tri':1"
-bodyTs: "'/share/test.txt':82 '2':264,271 '255':127,205 '50':140 'absenc':15,266 'achiev':171 'actual':196 'alert':100,135 'alert-typ':99,134 'alreadi':38,88,139 'also':216 'anybodi':157 'assist':227 'attach':20 'attr':269 'attribut':189,251,273 'avoid':163 'awar':158 'awaylog':84 'capabl':124 'card':8,115,258 'cat':81 'chang':236 'char':206 'charact':128,141 'chracter':165 'color':102 'command':65,77,80,137,223 'config':247 'config.yaml':228 'content':70,265 'count':209 'creat':4,41,221 'dashboard':59 'decis':23 'delet':278 'direct':238 'display':30 'done':33 'edit/solution':176 'entiti':261 'entri':185,215,255 'event':6,13,48,174,267 'exe':131 'exeed':145 'file':52,87 'flow':43 'follow':63 'format':91,253 'got':286 'home':226,282 'icon':106 'id':262 'idea':169 'im':1 'import':12 'includ':89 'instead':229 'json':188,250,272 'like':16 'limit':130,166,203 'line':78 'list':256,275 'log':7,56,175,184,214,254 'm_randall@sh.itjust.works':179 'marg':280,285 'markdown':114,257,260 'msg.logcount':249 'msg.payload':252 'name':83 'new':288 'node':35,44,234,240,243,246 'node-r':242 'number':212 'one':133 'p':290 'phonenumb':289 'problem':116 'ps':284 'put':46,68,182 'quick':132 'red':36,45,241,244 'relat':105 'relev':26 'result':147 'row':103 'screenshot':21,152 'seem':121 'sensor':66,76,79,108,119,192,197,224,233,245 'sensor.absencelog':263,270 'show':11,54 'shown':17,97,149 'skip':218 'solut':161 'start':39 'state':248,268 'step':220 'store':126 'text':94 'thank':177 'top':155 'tri':2,61 'txt':51,73,86 'type':101,136,259 'unknown':151 'use':111,194,231 'valu':198"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705236764
+visibility: "visible "
+apId: "https://lemmy.world/post/10659194"
+editedAt: DateTimeImmutable @1723165817 {#2388
date: 2024-08-09 03:10:17.0 +02:00
}
+createdAt: DateTimeImmutable @1705150364 {#1684
date: 2024-01-13 13:52:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: null
+root: null
+body: """
Can you use json_attributes instead of the state for the value?\n
\n
Give this a read for some ideas:\n
\n
[community.home-assistant.io/t/…/20](https://community.home-assistant.io/t/rest-sensor-state-max-length-is-255-characters/31807/20)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1723163604 {#4138
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4133 …}
+nested: Doctrine\ORM\PersistentCollection {#4124 …}
+votes: Doctrine\ORM\PersistentCollection {#4127 …}
+reports: Doctrine\ORM\PersistentCollection {#4122 …}
+favourites: Doctrine\ORM\PersistentCollection {#4120 …}
+notifications: Doctrine\ORM\PersistentCollection {#4118 …}
-id: 305072
-bodyTs: "'/20':23 '/t/':22 '/t/rest-sensor-state-max-length-is-255-characters/31807/20)':26 'attribut':5 'community.home-assistant.io':21,25 'community.home-assistant.io/t/':20 'community.home-assistant.io/t/rest-sensor-state-max-length-is-255-characters/31807/20)':24 'give':13 'idea':19 'instead':6 'json':4 'read':16 'state':9 'use':3 'valu':12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://sh.itjust.works/comment/7488393"
+editedAt: null
+createdAt: DateTimeImmutable @1705152104 {#4139
date: 2024-01-13 14:21:44.0 +01:00
}
} |
|
Show voter details
|
19 |
DENIED
|
edit
|
App\Entity\EntryComment {#4132
+user: App\Entity\User {#4116 …}
+entry: App\Entity\Entry {#2479
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+magazine: App\Entity\Magazine {#260
+icon: Proxies\__CG__\App\Entity\Image {#240 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#271
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#231 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#227 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …}
+entries: Doctrine\ORM\PersistentCollection {#174 …}
+posts: Doctrine\ORM\PersistentCollection {#132 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#194 …}
+bans: Doctrine\ORM\PersistentCollection {#111 …}
+reports: Doctrine\ORM\PersistentCollection {#97 …}
+badges: Doctrine\ORM\PersistentCollection {#75 …}
+logs: Doctrine\ORM\PersistentCollection {#65 …}
+awards: Doctrine\ORM\PersistentCollection {#1822 …}
+categories: Doctrine\ORM\PersistentCollection {#1850 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#270
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#276
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1932 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1901 …}
+slug: "Try-to-create-an-absence-event-log-Card"
+title: "Try to create an absence event log Card"
+url: "https://lemmy.world/pictrs/image/8580aa34-9960-4955-af97-8171a6c9906a.png"
+body: """
Im trying to create an event log Card that will show important events during absence, like shown in the attached screenshot.\n
\n
The decision, what is relevant and how its displayed, can be done by node red (i already started to create the flows)\n
\n
Node Red puts the events in a .txt file. To show this Log on my Dashboard, i tried the following: A command sensor is putting the content of the .txt in a sensor.\n
\n
```\n
\n
<span style="color:#323232;">command_line:\n
</span><span style="color:#323232;"> - sensor:\n
</span><span style="color:#323232;"> command: 'cat /share/test.txt'\n
</span><span style="color:#323232;"> name: awaylog\n
</span><span style="color:#323232;">\n
</span>\n
```\n
\n
The .txt file already includs the formating for the text to be shown as alert-types (colored row with related icon). The sensor is then used in a Markdown Card.\n
\n
Problem is, the sensor only seems to be capable of storing 255 characters. This limit exeeds quickly. (one alert-type command is already >50 characters) . If it is exeeded the result is shown as “unknown” (screenshot at the top)\n
\n
Is anybody aware of a solution to avoid this chracter limit. Any other ideas to achiev such an event log ?\n
\n
#**Edit/Solution**: Thanks to @m_randall@sh.itjust.works I just put the log entries in the json_attributes of the sensor and used the actual sensor value (because only this is limited to 255 char.) to just count up the number of log entries. Also i skipped the step creating a command sensor in Home assistant config.yaml, instead i used the sensor node to change it directly with node red.\n
\n
**Node-red sensor node config:**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">state = msg.logcount\n
</span><span style="color:#323232;">json_attributes = msg.payload (formated log entry list)\n
</span>\n
```\n
\n
**Markdown card**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">type: markdown\n
</span><span style="color:#323232;">entity_id:\n
</span><span style="color:#323232;"> - sensor.absencelog_2\n
</span><span style="color:#323232;">content: |\n
</span><span style="color:#323232;"> ## Absence Events\n
</span><span style="color:#323232;"> {{state_attr('sensor.absencelog_2', 'json_attributes')}}\n
</span><span style="color:#323232;"> \n
</span><span style="color:#323232;"> *This list will be deleted when Marge is home again*\n
</span>\n
```\n
\n
*ps. Marge got a new phonenumber :P*
"""
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 5
+favouriteCount: 40
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1723163604 {#1828
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@m_randall@sh.itjust.works"
]
+comments: Doctrine\ORM\PersistentCollection {#1864 …}
+votes: Doctrine\ORM\PersistentCollection {#1390 …}
+reports: Doctrine\ORM\PersistentCollection {#1373 …}
+favourites: Doctrine\ORM\PersistentCollection {#1378 …}
+notifications: Doctrine\ORM\PersistentCollection {#2355 …}
+badges: Doctrine\ORM\PersistentCollection {#2476 …}
+children: []
-id: 29672
-titleTs: "'absenc':5 'card':8 'creat':3 'event':6 'log':7 'tri':1"
-bodyTs: "'/share/test.txt':82 '2':264,271 '255':127,205 '50':140 'absenc':15,266 'achiev':171 'actual':196 'alert':100,135 'alert-typ':99,134 'alreadi':38,88,139 'also':216 'anybodi':157 'assist':227 'attach':20 'attr':269 'attribut':189,251,273 'avoid':163 'awar':158 'awaylog':84 'capabl':124 'card':8,115,258 'cat':81 'chang':236 'char':206 'charact':128,141 'chracter':165 'color':102 'command':65,77,80,137,223 'config':247 'config.yaml':228 'content':70,265 'count':209 'creat':4,41,221 'dashboard':59 'decis':23 'delet':278 'direct':238 'display':30 'done':33 'edit/solution':176 'entiti':261 'entri':185,215,255 'event':6,13,48,174,267 'exe':131 'exeed':145 'file':52,87 'flow':43 'follow':63 'format':91,253 'got':286 'home':226,282 'icon':106 'id':262 'idea':169 'im':1 'import':12 'includ':89 'instead':229 'json':188,250,272 'like':16 'limit':130,166,203 'line':78 'list':256,275 'log':7,56,175,184,214,254 'm_randall@sh.itjust.works':179 'marg':280,285 'markdown':114,257,260 'msg.logcount':249 'msg.payload':252 'name':83 'new':288 'node':35,44,234,240,243,246 'node-r':242 'number':212 'one':133 'p':290 'phonenumb':289 'problem':116 'ps':284 'put':46,68,182 'quick':132 'red':36,45,241,244 'relat':105 'relev':26 'result':147 'row':103 'screenshot':21,152 'seem':121 'sensor':66,76,79,108,119,192,197,224,233,245 'sensor.absencelog':263,270 'show':11,54 'shown':17,97,149 'skip':218 'solut':161 'start':39 'state':248,268 'step':220 'store':126 'text':94 'thank':177 'top':155 'tri':2,61 'txt':51,73,86 'type':101,136,259 'unknown':151 'use':111,194,231 'valu':198"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705236764
+visibility: "visible "
+apId: "https://lemmy.world/post/10659194"
+editedAt: DateTimeImmutable @1723165817 {#2388
date: 2024-08-09 03:10:17.0 +02:00
}
+createdAt: DateTimeImmutable @1705150364 {#1684
date: 2024-01-13 13:52:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: null
+root: null
+body: """
Can you use json_attributes instead of the state for the value?\n
\n
Give this a read for some ideas:\n
\n
[community.home-assistant.io/t/…/20](https://community.home-assistant.io/t/rest-sensor-state-max-length-is-255-characters/31807/20)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1723163604 {#4138
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4133 …}
+nested: Doctrine\ORM\PersistentCollection {#4124 …}
+votes: Doctrine\ORM\PersistentCollection {#4127 …}
+reports: Doctrine\ORM\PersistentCollection {#4122 …}
+favourites: Doctrine\ORM\PersistentCollection {#4120 …}
+notifications: Doctrine\ORM\PersistentCollection {#4118 …}
-id: 305072
-bodyTs: "'/20':23 '/t/':22 '/t/rest-sensor-state-max-length-is-255-characters/31807/20)':26 'attribut':5 'community.home-assistant.io':21,25 'community.home-assistant.io/t/':20 'community.home-assistant.io/t/rest-sensor-state-max-length-is-255-characters/31807/20)':24 'give':13 'idea':19 'instead':6 'json':4 'read':16 'state':9 'use':3 'valu':12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://sh.itjust.works/comment/7488393"
+editedAt: null
+createdAt: DateTimeImmutable @1705152104 {#4139
date: 2024-01-13 14:21:44.0 +01:00
}
} |
|
Show voter details
|
20 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4132
+user: App\Entity\User {#4116 …}
+entry: App\Entity\Entry {#2479
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+magazine: App\Entity\Magazine {#260
+icon: Proxies\__CG__\App\Entity\Image {#240 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#271
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#231 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#227 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …}
+entries: Doctrine\ORM\PersistentCollection {#174 …}
+posts: Doctrine\ORM\PersistentCollection {#132 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#194 …}
+bans: Doctrine\ORM\PersistentCollection {#111 …}
+reports: Doctrine\ORM\PersistentCollection {#97 …}
+badges: Doctrine\ORM\PersistentCollection {#75 …}
+logs: Doctrine\ORM\PersistentCollection {#65 …}
+awards: Doctrine\ORM\PersistentCollection {#1822 …}
+categories: Doctrine\ORM\PersistentCollection {#1850 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#270
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#276
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1932 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1901 …}
+slug: "Try-to-create-an-absence-event-log-Card"
+title: "Try to create an absence event log Card"
+url: "https://lemmy.world/pictrs/image/8580aa34-9960-4955-af97-8171a6c9906a.png"
+body: """
Im trying to create an event log Card that will show important events during absence, like shown in the attached screenshot.\n
\n
The decision, what is relevant and how its displayed, can be done by node red (i already started to create the flows)\n
\n
Node Red puts the events in a .txt file. To show this Log on my Dashboard, i tried the following: A command sensor is putting the content of the .txt in a sensor.\n
\n
```\n
\n
<span style="color:#323232;">command_line:\n
</span><span style="color:#323232;"> - sensor:\n
</span><span style="color:#323232;"> command: 'cat /share/test.txt'\n
</span><span style="color:#323232;"> name: awaylog\n
</span><span style="color:#323232;">\n
</span>\n
```\n
\n
The .txt file already includs the formating for the text to be shown as alert-types (colored row with related icon). The sensor is then used in a Markdown Card.\n
\n
Problem is, the sensor only seems to be capable of storing 255 characters. This limit exeeds quickly. (one alert-type command is already >50 characters) . If it is exeeded the result is shown as “unknown” (screenshot at the top)\n
\n
Is anybody aware of a solution to avoid this chracter limit. Any other ideas to achiev such an event log ?\n
\n
#**Edit/Solution**: Thanks to @m_randall@sh.itjust.works I just put the log entries in the json_attributes of the sensor and used the actual sensor value (because only this is limited to 255 char.) to just count up the number of log entries. Also i skipped the step creating a command sensor in Home assistant config.yaml, instead i used the sensor node to change it directly with node red.\n
\n
**Node-red sensor node config:**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">state = msg.logcount\n
</span><span style="color:#323232;">json_attributes = msg.payload (formated log entry list)\n
</span>\n
```\n
\n
**Markdown card**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">type: markdown\n
</span><span style="color:#323232;">entity_id:\n
</span><span style="color:#323232;"> - sensor.absencelog_2\n
</span><span style="color:#323232;">content: |\n
</span><span style="color:#323232;"> ## Absence Events\n
</span><span style="color:#323232;"> {{state_attr('sensor.absencelog_2', 'json_attributes')}}\n
</span><span style="color:#323232;"> \n
</span><span style="color:#323232;"> *This list will be deleted when Marge is home again*\n
</span>\n
```\n
\n
*ps. Marge got a new phonenumber :P*
"""
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 5
+favouriteCount: 40
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1723163604 {#1828
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@m_randall@sh.itjust.works"
]
+comments: Doctrine\ORM\PersistentCollection {#1864 …}
+votes: Doctrine\ORM\PersistentCollection {#1390 …}
+reports: Doctrine\ORM\PersistentCollection {#1373 …}
+favourites: Doctrine\ORM\PersistentCollection {#1378 …}
+notifications: Doctrine\ORM\PersistentCollection {#2355 …}
+badges: Doctrine\ORM\PersistentCollection {#2476 …}
+children: []
-id: 29672
-titleTs: "'absenc':5 'card':8 'creat':3 'event':6 'log':7 'tri':1"
-bodyTs: "'/share/test.txt':82 '2':264,271 '255':127,205 '50':140 'absenc':15,266 'achiev':171 'actual':196 'alert':100,135 'alert-typ':99,134 'alreadi':38,88,139 'also':216 'anybodi':157 'assist':227 'attach':20 'attr':269 'attribut':189,251,273 'avoid':163 'awar':158 'awaylog':84 'capabl':124 'card':8,115,258 'cat':81 'chang':236 'char':206 'charact':128,141 'chracter':165 'color':102 'command':65,77,80,137,223 'config':247 'config.yaml':228 'content':70,265 'count':209 'creat':4,41,221 'dashboard':59 'decis':23 'delet':278 'direct':238 'display':30 'done':33 'edit/solution':176 'entiti':261 'entri':185,215,255 'event':6,13,48,174,267 'exe':131 'exeed':145 'file':52,87 'flow':43 'follow':63 'format':91,253 'got':286 'home':226,282 'icon':106 'id':262 'idea':169 'im':1 'import':12 'includ':89 'instead':229 'json':188,250,272 'like':16 'limit':130,166,203 'line':78 'list':256,275 'log':7,56,175,184,214,254 'm_randall@sh.itjust.works':179 'marg':280,285 'markdown':114,257,260 'msg.logcount':249 'msg.payload':252 'name':83 'new':288 'node':35,44,234,240,243,246 'node-r':242 'number':212 'one':133 'p':290 'phonenumb':289 'problem':116 'ps':284 'put':46,68,182 'quick':132 'red':36,45,241,244 'relat':105 'relev':26 'result':147 'row':103 'screenshot':21,152 'seem':121 'sensor':66,76,79,108,119,192,197,224,233,245 'sensor.absencelog':263,270 'show':11,54 'shown':17,97,149 'skip':218 'solut':161 'start':39 'state':248,268 'step':220 'store':126 'text':94 'thank':177 'top':155 'tri':2,61 'txt':51,73,86 'type':101,136,259 'unknown':151 'use':111,194,231 'valu':198"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705236764
+visibility: "visible "
+apId: "https://lemmy.world/post/10659194"
+editedAt: DateTimeImmutable @1723165817 {#2388
date: 2024-08-09 03:10:17.0 +02:00
}
+createdAt: DateTimeImmutable @1705150364 {#1684
date: 2024-01-13 13:52:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: null
+root: null
+body: """
Can you use json_attributes instead of the state for the value?\n
\n
Give this a read for some ideas:\n
\n
[community.home-assistant.io/t/…/20](https://community.home-assistant.io/t/rest-sensor-state-max-length-is-255-characters/31807/20)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1723163604 {#4138
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4133 …}
+nested: Doctrine\ORM\PersistentCollection {#4124 …}
+votes: Doctrine\ORM\PersistentCollection {#4127 …}
+reports: Doctrine\ORM\PersistentCollection {#4122 …}
+favourites: Doctrine\ORM\PersistentCollection {#4120 …}
+notifications: Doctrine\ORM\PersistentCollection {#4118 …}
-id: 305072
-bodyTs: "'/20':23 '/t/':22 '/t/rest-sensor-state-max-length-is-255-characters/31807/20)':26 'attribut':5 'community.home-assistant.io':21,25 'community.home-assistant.io/t/':20 'community.home-assistant.io/t/rest-sensor-state-max-length-is-255-characters/31807/20)':24 'give':13 'idea':19 'instead':6 'json':4 'read':16 'state':9 'use':3 'valu':12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://sh.itjust.works/comment/7488393"
+editedAt: null
+createdAt: DateTimeImmutable @1705152104 {#4139
date: 2024-01-13 14:21:44.0 +01:00
}
} |
|
Show voter details
|
21 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
22 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4218
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+entry: App\Entity\Entry {#2479
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+magazine: App\Entity\Magazine {#260
+icon: Proxies\__CG__\App\Entity\Image {#240 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#271
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#231 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#227 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …}
+entries: Doctrine\ORM\PersistentCollection {#174 …}
+posts: Doctrine\ORM\PersistentCollection {#132 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#194 …}
+bans: Doctrine\ORM\PersistentCollection {#111 …}
+reports: Doctrine\ORM\PersistentCollection {#97 …}
+badges: Doctrine\ORM\PersistentCollection {#75 …}
+logs: Doctrine\ORM\PersistentCollection {#65 …}
+awards: Doctrine\ORM\PersistentCollection {#1822 …}
+categories: Doctrine\ORM\PersistentCollection {#1850 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#270
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#276
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1932 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1901 …}
+slug: "Try-to-create-an-absence-event-log-Card"
+title: "Try to create an absence event log Card"
+url: "https://lemmy.world/pictrs/image/8580aa34-9960-4955-af97-8171a6c9906a.png"
+body: """
Im trying to create an event log Card that will show important events during absence, like shown in the attached screenshot.\n
\n
The decision, what is relevant and how its displayed, can be done by node red (i already started to create the flows)\n
\n
Node Red puts the events in a .txt file. To show this Log on my Dashboard, i tried the following: A command sensor is putting the content of the .txt in a sensor.\n
\n
```\n
\n
<span style="color:#323232;">command_line:\n
</span><span style="color:#323232;"> - sensor:\n
</span><span style="color:#323232;"> command: 'cat /share/test.txt'\n
</span><span style="color:#323232;"> name: awaylog\n
</span><span style="color:#323232;">\n
</span>\n
```\n
\n
The .txt file already includs the formating for the text to be shown as alert-types (colored row with related icon). The sensor is then used in a Markdown Card.\n
\n
Problem is, the sensor only seems to be capable of storing 255 characters. This limit exeeds quickly. (one alert-type command is already >50 characters) . If it is exeeded the result is shown as “unknown” (screenshot at the top)\n
\n
Is anybody aware of a solution to avoid this chracter limit. Any other ideas to achiev such an event log ?\n
\n
#**Edit/Solution**: Thanks to @m_randall@sh.itjust.works I just put the log entries in the json_attributes of the sensor and used the actual sensor value (because only this is limited to 255 char.) to just count up the number of log entries. Also i skipped the step creating a command sensor in Home assistant config.yaml, instead i used the sensor node to change it directly with node red.\n
\n
**Node-red sensor node config:**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">state = msg.logcount\n
</span><span style="color:#323232;">json_attributes = msg.payload (formated log entry list)\n
</span>\n
```\n
\n
**Markdown card**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">type: markdown\n
</span><span style="color:#323232;">entity_id:\n
</span><span style="color:#323232;"> - sensor.absencelog_2\n
</span><span style="color:#323232;">content: |\n
</span><span style="color:#323232;"> ## Absence Events\n
</span><span style="color:#323232;"> {{state_attr('sensor.absencelog_2', 'json_attributes')}}\n
</span><span style="color:#323232;"> \n
</span><span style="color:#323232;"> *This list will be deleted when Marge is home again*\n
</span>\n
```\n
\n
*ps. Marge got a new phonenumber :P*
"""
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 5
+favouriteCount: 40
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1723163604 {#1828
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@m_randall@sh.itjust.works"
]
+comments: Doctrine\ORM\PersistentCollection {#1864 …}
+votes: Doctrine\ORM\PersistentCollection {#1390 …}
+reports: Doctrine\ORM\PersistentCollection {#1373 …}
+favourites: Doctrine\ORM\PersistentCollection {#1378 …}
+notifications: Doctrine\ORM\PersistentCollection {#2355 …}
+badges: Doctrine\ORM\PersistentCollection {#2476 …}
+children: []
-id: 29672
-titleTs: "'absenc':5 'card':8 'creat':3 'event':6 'log':7 'tri':1"
-bodyTs: "'/share/test.txt':82 '2':264,271 '255':127,205 '50':140 'absenc':15,266 'achiev':171 'actual':196 'alert':100,135 'alert-typ':99,134 'alreadi':38,88,139 'also':216 'anybodi':157 'assist':227 'attach':20 'attr':269 'attribut':189,251,273 'avoid':163 'awar':158 'awaylog':84 'capabl':124 'card':8,115,258 'cat':81 'chang':236 'char':206 'charact':128,141 'chracter':165 'color':102 'command':65,77,80,137,223 'config':247 'config.yaml':228 'content':70,265 'count':209 'creat':4,41,221 'dashboard':59 'decis':23 'delet':278 'direct':238 'display':30 'done':33 'edit/solution':176 'entiti':261 'entri':185,215,255 'event':6,13,48,174,267 'exe':131 'exeed':145 'file':52,87 'flow':43 'follow':63 'format':91,253 'got':286 'home':226,282 'icon':106 'id':262 'idea':169 'im':1 'import':12 'includ':89 'instead':229 'json':188,250,272 'like':16 'limit':130,166,203 'line':78 'list':256,275 'log':7,56,175,184,214,254 'm_randall@sh.itjust.works':179 'marg':280,285 'markdown':114,257,260 'msg.logcount':249 'msg.payload':252 'name':83 'new':288 'node':35,44,234,240,243,246 'node-r':242 'number':212 'one':133 'p':290 'phonenumb':289 'problem':116 'ps':284 'put':46,68,182 'quick':132 'red':36,45,241,244 'relat':105 'relev':26 'result':147 'row':103 'screenshot':21,152 'seem':121 'sensor':66,76,79,108,119,192,197,224,233,245 'sensor.absencelog':263,270 'show':11,54 'shown':17,97,149 'skip':218 'solut':161 'start':39 'state':248,268 'step':220 'store':126 'text':94 'thank':177 'top':155 'tri':2,61 'txt':51,73,86 'type':101,136,259 'unknown':151 'use':111,194,231 'valu':198"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705236764
+visibility: "visible "
+apId: "https://lemmy.world/post/10659194"
+editedAt: DateTimeImmutable @1723165817 {#2388
date: 2024-08-09 03:10:17.0 +02:00
}
+createdAt: DateTimeImmutable @1705150364 {#1684
date: 2024-01-13 13:52:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: App\Entity\EntryComment {#4132
+user: App\Entity\User {#4116 …}
+entry: App\Entity\Entry {#2479}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: null
+root: null
+body: """
Can you use json_attributes instead of the state for the value?\n
\n
Give this a read for some ideas:\n
\n
[community.home-assistant.io/t/…/20](https://community.home-assistant.io/t/rest-sensor-state-max-length-is-255-characters/31807/20)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1723163604 {#4138
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4133 …}
+nested: Doctrine\ORM\PersistentCollection {#4124 …}
+votes: Doctrine\ORM\PersistentCollection {#4127 …}
+reports: Doctrine\ORM\PersistentCollection {#4122 …}
+favourites: Doctrine\ORM\PersistentCollection {#4120 …}
+notifications: Doctrine\ORM\PersistentCollection {#4118 …}
-id: 305072
-bodyTs: "'/20':23 '/t/':22 '/t/rest-sensor-state-max-length-is-255-characters/31807/20)':26 'attribut':5 'community.home-assistant.io':21,25 'community.home-assistant.io/t/':20 'community.home-assistant.io/t/rest-sensor-state-max-length-is-255-characters/31807/20)':24 'give':13 'idea':19 'instead':6 'json':4 'read':16 'state':9 'use':3 'valu':12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://sh.itjust.works/comment/7488393"
+editedAt: null
+createdAt: DateTimeImmutable @1705152104 {#4139
date: 2024-01-13 14:21:44.0 +01:00
}
}
+root: App\Entity\EntryComment {#4132}
+body: "Thank you, thats it :)"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1705229838 {#4223
date: 2024-01-14 11:57:18.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
"@m_randall@sh.itjust.works"
]
+children: Doctrine\ORM\PersistentCollection {#4226 …}
+nested: Doctrine\ORM\PersistentCollection {#4230 …}
+votes: Doctrine\ORM\PersistentCollection {#4232 …}
+reports: Doctrine\ORM\PersistentCollection {#4233 …}
+favourites: Doctrine\ORM\PersistentCollection {#4235 …}
+notifications: Doctrine\ORM\PersistentCollection {#4237 …}
-id: 307554
-bodyTs: "'thank':1 'that':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6681647"
+editedAt: null
+createdAt: DateTimeImmutable @1705229838 {#4220
date: 2024-01-14 11:57:18.0 +01:00
}
} |
|
Show voter details
|
23 |
DENIED
|
edit
|
App\Entity\EntryComment {#4218
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+entry: App\Entity\Entry {#2479
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+magazine: App\Entity\Magazine {#260
+icon: Proxies\__CG__\App\Entity\Image {#240 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#271
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#231 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#227 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …}
+entries: Doctrine\ORM\PersistentCollection {#174 …}
+posts: Doctrine\ORM\PersistentCollection {#132 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#194 …}
+bans: Doctrine\ORM\PersistentCollection {#111 …}
+reports: Doctrine\ORM\PersistentCollection {#97 …}
+badges: Doctrine\ORM\PersistentCollection {#75 …}
+logs: Doctrine\ORM\PersistentCollection {#65 …}
+awards: Doctrine\ORM\PersistentCollection {#1822 …}
+categories: Doctrine\ORM\PersistentCollection {#1850 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#270
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#276
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1932 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1901 …}
+slug: "Try-to-create-an-absence-event-log-Card"
+title: "Try to create an absence event log Card"
+url: "https://lemmy.world/pictrs/image/8580aa34-9960-4955-af97-8171a6c9906a.png"
+body: """
Im trying to create an event log Card that will show important events during absence, like shown in the attached screenshot.\n
\n
The decision, what is relevant and how its displayed, can be done by node red (i already started to create the flows)\n
\n
Node Red puts the events in a .txt file. To show this Log on my Dashboard, i tried the following: A command sensor is putting the content of the .txt in a sensor.\n
\n
```\n
\n
<span style="color:#323232;">command_line:\n
</span><span style="color:#323232;"> - sensor:\n
</span><span style="color:#323232;"> command: 'cat /share/test.txt'\n
</span><span style="color:#323232;"> name: awaylog\n
</span><span style="color:#323232;">\n
</span>\n
```\n
\n
The .txt file already includs the formating for the text to be shown as alert-types (colored row with related icon). The sensor is then used in a Markdown Card.\n
\n
Problem is, the sensor only seems to be capable of storing 255 characters. This limit exeeds quickly. (one alert-type command is already >50 characters) . If it is exeeded the result is shown as “unknown” (screenshot at the top)\n
\n
Is anybody aware of a solution to avoid this chracter limit. Any other ideas to achiev such an event log ?\n
\n
#**Edit/Solution**: Thanks to @m_randall@sh.itjust.works I just put the log entries in the json_attributes of the sensor and used the actual sensor value (because only this is limited to 255 char.) to just count up the number of log entries. Also i skipped the step creating a command sensor in Home assistant config.yaml, instead i used the sensor node to change it directly with node red.\n
\n
**Node-red sensor node config:**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">state = msg.logcount\n
</span><span style="color:#323232;">json_attributes = msg.payload (formated log entry list)\n
</span>\n
```\n
\n
**Markdown card**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">type: markdown\n
</span><span style="color:#323232;">entity_id:\n
</span><span style="color:#323232;"> - sensor.absencelog_2\n
</span><span style="color:#323232;">content: |\n
</span><span style="color:#323232;"> ## Absence Events\n
</span><span style="color:#323232;"> {{state_attr('sensor.absencelog_2', 'json_attributes')}}\n
</span><span style="color:#323232;"> \n
</span><span style="color:#323232;"> *This list will be deleted when Marge is home again*\n
</span>\n
```\n
\n
*ps. Marge got a new phonenumber :P*
"""
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 5
+favouriteCount: 40
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1723163604 {#1828
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@m_randall@sh.itjust.works"
]
+comments: Doctrine\ORM\PersistentCollection {#1864 …}
+votes: Doctrine\ORM\PersistentCollection {#1390 …}
+reports: Doctrine\ORM\PersistentCollection {#1373 …}
+favourites: Doctrine\ORM\PersistentCollection {#1378 …}
+notifications: Doctrine\ORM\PersistentCollection {#2355 …}
+badges: Doctrine\ORM\PersistentCollection {#2476 …}
+children: []
-id: 29672
-titleTs: "'absenc':5 'card':8 'creat':3 'event':6 'log':7 'tri':1"
-bodyTs: "'/share/test.txt':82 '2':264,271 '255':127,205 '50':140 'absenc':15,266 'achiev':171 'actual':196 'alert':100,135 'alert-typ':99,134 'alreadi':38,88,139 'also':216 'anybodi':157 'assist':227 'attach':20 'attr':269 'attribut':189,251,273 'avoid':163 'awar':158 'awaylog':84 'capabl':124 'card':8,115,258 'cat':81 'chang':236 'char':206 'charact':128,141 'chracter':165 'color':102 'command':65,77,80,137,223 'config':247 'config.yaml':228 'content':70,265 'count':209 'creat':4,41,221 'dashboard':59 'decis':23 'delet':278 'direct':238 'display':30 'done':33 'edit/solution':176 'entiti':261 'entri':185,215,255 'event':6,13,48,174,267 'exe':131 'exeed':145 'file':52,87 'flow':43 'follow':63 'format':91,253 'got':286 'home':226,282 'icon':106 'id':262 'idea':169 'im':1 'import':12 'includ':89 'instead':229 'json':188,250,272 'like':16 'limit':130,166,203 'line':78 'list':256,275 'log':7,56,175,184,214,254 'm_randall@sh.itjust.works':179 'marg':280,285 'markdown':114,257,260 'msg.logcount':249 'msg.payload':252 'name':83 'new':288 'node':35,44,234,240,243,246 'node-r':242 'number':212 'one':133 'p':290 'phonenumb':289 'problem':116 'ps':284 'put':46,68,182 'quick':132 'red':36,45,241,244 'relat':105 'relev':26 'result':147 'row':103 'screenshot':21,152 'seem':121 'sensor':66,76,79,108,119,192,197,224,233,245 'sensor.absencelog':263,270 'show':11,54 'shown':17,97,149 'skip':218 'solut':161 'start':39 'state':248,268 'step':220 'store':126 'text':94 'thank':177 'top':155 'tri':2,61 'txt':51,73,86 'type':101,136,259 'unknown':151 'use':111,194,231 'valu':198"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705236764
+visibility: "visible "
+apId: "https://lemmy.world/post/10659194"
+editedAt: DateTimeImmutable @1723165817 {#2388
date: 2024-08-09 03:10:17.0 +02:00
}
+createdAt: DateTimeImmutable @1705150364 {#1684
date: 2024-01-13 13:52:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: App\Entity\EntryComment {#4132
+user: App\Entity\User {#4116 …}
+entry: App\Entity\Entry {#2479}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: null
+root: null
+body: """
Can you use json_attributes instead of the state for the value?\n
\n
Give this a read for some ideas:\n
\n
[community.home-assistant.io/t/…/20](https://community.home-assistant.io/t/rest-sensor-state-max-length-is-255-characters/31807/20)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1723163604 {#4138
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4133 …}
+nested: Doctrine\ORM\PersistentCollection {#4124 …}
+votes: Doctrine\ORM\PersistentCollection {#4127 …}
+reports: Doctrine\ORM\PersistentCollection {#4122 …}
+favourites: Doctrine\ORM\PersistentCollection {#4120 …}
+notifications: Doctrine\ORM\PersistentCollection {#4118 …}
-id: 305072
-bodyTs: "'/20':23 '/t/':22 '/t/rest-sensor-state-max-length-is-255-characters/31807/20)':26 'attribut':5 'community.home-assistant.io':21,25 'community.home-assistant.io/t/':20 'community.home-assistant.io/t/rest-sensor-state-max-length-is-255-characters/31807/20)':24 'give':13 'idea':19 'instead':6 'json':4 'read':16 'state':9 'use':3 'valu':12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://sh.itjust.works/comment/7488393"
+editedAt: null
+createdAt: DateTimeImmutable @1705152104 {#4139
date: 2024-01-13 14:21:44.0 +01:00
}
}
+root: App\Entity\EntryComment {#4132}
+body: "Thank you, thats it :)"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1705229838 {#4223
date: 2024-01-14 11:57:18.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
"@m_randall@sh.itjust.works"
]
+children: Doctrine\ORM\PersistentCollection {#4226 …}
+nested: Doctrine\ORM\PersistentCollection {#4230 …}
+votes: Doctrine\ORM\PersistentCollection {#4232 …}
+reports: Doctrine\ORM\PersistentCollection {#4233 …}
+favourites: Doctrine\ORM\PersistentCollection {#4235 …}
+notifications: Doctrine\ORM\PersistentCollection {#4237 …}
-id: 307554
-bodyTs: "'thank':1 'that':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6681647"
+editedAt: null
+createdAt: DateTimeImmutable @1705229838 {#4220
date: 2024-01-14 11:57:18.0 +01:00
}
} |
|
Show voter details
|
24 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4218
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+entry: App\Entity\Entry {#2479
+user: Proxies\__CG__\App\Entity\User {#1930 …}
+magazine: App\Entity\Magazine {#260
+icon: Proxies\__CG__\App\Entity\Image {#240 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#271
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#231 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#227 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …}
+entries: Doctrine\ORM\PersistentCollection {#174 …}
+posts: Doctrine\ORM\PersistentCollection {#132 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#194 …}
+bans: Doctrine\ORM\PersistentCollection {#111 …}
+reports: Doctrine\ORM\PersistentCollection {#97 …}
+badges: Doctrine\ORM\PersistentCollection {#75 …}
+logs: Doctrine\ORM\PersistentCollection {#65 …}
+awards: Doctrine\ORM\PersistentCollection {#1822 …}
+categories: Doctrine\ORM\PersistentCollection {#1850 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#270
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#276
date: 2024-01-01 17:51:45.0 +01:00
}
}
+image: Proxies\__CG__\App\Entity\Image {#1932 …}
+domain: Proxies\__CG__\App\Entity\Domain {#1901 …}
+slug: "Try-to-create-an-absence-event-log-Card"
+title: "Try to create an absence event log Card"
+url: "https://lemmy.world/pictrs/image/8580aa34-9960-4955-af97-8171a6c9906a.png"
+body: """
Im trying to create an event log Card that will show important events during absence, like shown in the attached screenshot.\n
\n
The decision, what is relevant and how its displayed, can be done by node red (i already started to create the flows)\n
\n
Node Red puts the events in a .txt file. To show this Log on my Dashboard, i tried the following: A command sensor is putting the content of the .txt in a sensor.\n
\n
```\n
\n
<span style="color:#323232;">command_line:\n
</span><span style="color:#323232;"> - sensor:\n
</span><span style="color:#323232;"> command: 'cat /share/test.txt'\n
</span><span style="color:#323232;"> name: awaylog\n
</span><span style="color:#323232;">\n
</span>\n
```\n
\n
The .txt file already includs the formating for the text to be shown as alert-types (colored row with related icon). The sensor is then used in a Markdown Card.\n
\n
Problem is, the sensor only seems to be capable of storing 255 characters. This limit exeeds quickly. (one alert-type command is already >50 characters) . If it is exeeded the result is shown as “unknown” (screenshot at the top)\n
\n
Is anybody aware of a solution to avoid this chracter limit. Any other ideas to achiev such an event log ?\n
\n
#**Edit/Solution**: Thanks to @m_randall@sh.itjust.works I just put the log entries in the json_attributes of the sensor and used the actual sensor value (because only this is limited to 255 char.) to just count up the number of log entries. Also i skipped the step creating a command sensor in Home assistant config.yaml, instead i used the sensor node to change it directly with node red.\n
\n
**Node-red sensor node config:**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">state = msg.logcount\n
</span><span style="color:#323232;">json_attributes = msg.payload (formated log entry list)\n
</span>\n
```\n
\n
**Markdown card**\n
\n
```\n
\n
<span style="color:#323232;">\n
</span><span style="color:#323232;">type: markdown\n
</span><span style="color:#323232;">entity_id:\n
</span><span style="color:#323232;"> - sensor.absencelog_2\n
</span><span style="color:#323232;">content: |\n
</span><span style="color:#323232;"> ## Absence Events\n
</span><span style="color:#323232;"> {{state_attr('sensor.absencelog_2', 'json_attributes')}}\n
</span><span style="color:#323232;"> \n
</span><span style="color:#323232;"> *This list will be deleted when Marge is home again*\n
</span>\n
```\n
\n
*ps. Marge got a new phonenumber :P*
"""
+type: "image"
+lang: "en"
+isOc: false
+hasEmbed: true
+commentCount: 5
+favouriteCount: 40
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1723163604 {#1828
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@m_randall@sh.itjust.works"
]
+comments: Doctrine\ORM\PersistentCollection {#1864 …}
+votes: Doctrine\ORM\PersistentCollection {#1390 …}
+reports: Doctrine\ORM\PersistentCollection {#1373 …}
+favourites: Doctrine\ORM\PersistentCollection {#1378 …}
+notifications: Doctrine\ORM\PersistentCollection {#2355 …}
+badges: Doctrine\ORM\PersistentCollection {#2476 …}
+children: []
-id: 29672
-titleTs: "'absenc':5 'card':8 'creat':3 'event':6 'log':7 'tri':1"
-bodyTs: "'/share/test.txt':82 '2':264,271 '255':127,205 '50':140 'absenc':15,266 'achiev':171 'actual':196 'alert':100,135 'alert-typ':99,134 'alreadi':38,88,139 'also':216 'anybodi':157 'assist':227 'attach':20 'attr':269 'attribut':189,251,273 'avoid':163 'awar':158 'awaylog':84 'capabl':124 'card':8,115,258 'cat':81 'chang':236 'char':206 'charact':128,141 'chracter':165 'color':102 'command':65,77,80,137,223 'config':247 'config.yaml':228 'content':70,265 'count':209 'creat':4,41,221 'dashboard':59 'decis':23 'delet':278 'direct':238 'display':30 'done':33 'edit/solution':176 'entiti':261 'entri':185,215,255 'event':6,13,48,174,267 'exe':131 'exeed':145 'file':52,87 'flow':43 'follow':63 'format':91,253 'got':286 'home':226,282 'icon':106 'id':262 'idea':169 'im':1 'import':12 'includ':89 'instead':229 'json':188,250,272 'like':16 'limit':130,166,203 'line':78 'list':256,275 'log':7,56,175,184,214,254 'm_randall@sh.itjust.works':179 'marg':280,285 'markdown':114,257,260 'msg.logcount':249 'msg.payload':252 'name':83 'new':288 'node':35,44,234,240,243,246 'node-r':242 'number':212 'one':133 'p':290 'phonenumb':289 'problem':116 'ps':284 'put':46,68,182 'quick':132 'red':36,45,241,244 'relat':105 'relev':26 'result':147 'row':103 'screenshot':21,152 'seem':121 'sensor':66,76,79,108,119,192,197,224,233,245 'sensor.absencelog':263,270 'show':11,54 'shown':17,97,149 'skip':218 'solut':161 'start':39 'state':248,268 'step':220 'store':126 'text':94 'thank':177 'top':155 'tri':2,61 'txt':51,73,86 'type':101,136,259 'unknown':151 'use':111,194,231 'valu':198"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1705236764
+visibility: "visible "
+apId: "https://lemmy.world/post/10659194"
+editedAt: DateTimeImmutable @1723165817 {#2388
date: 2024-08-09 03:10:17.0 +02:00
}
+createdAt: DateTimeImmutable @1705150364 {#1684
date: 2024-01-13 13:52:44.0 +01:00
}
}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: App\Entity\EntryComment {#4132
+user: App\Entity\User {#4116 …}
+entry: App\Entity\Entry {#2479}
+magazine: App\Entity\Magazine {#260}
+image: null
+parent: null
+root: null
+body: """
Can you use json_attributes instead of the state for the value?\n
\n
Give this a read for some ideas:\n
\n
[community.home-assistant.io/t/…/20](https://community.home-assistant.io/t/rest-sensor-state-max-length-is-255-characters/31807/20)
"""
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1723163604 {#4138
date: 2024-08-09 02:33:24.0 +02:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4133 …}
+nested: Doctrine\ORM\PersistentCollection {#4124 …}
+votes: Doctrine\ORM\PersistentCollection {#4127 …}
+reports: Doctrine\ORM\PersistentCollection {#4122 …}
+favourites: Doctrine\ORM\PersistentCollection {#4120 …}
+notifications: Doctrine\ORM\PersistentCollection {#4118 …}
-id: 305072
-bodyTs: "'/20':23 '/t/':22 '/t/rest-sensor-state-max-length-is-255-characters/31807/20)':26 'attribut':5 'community.home-assistant.io':21,25 'community.home-assistant.io/t/':20 'community.home-assistant.io/t/rest-sensor-state-max-length-is-255-characters/31807/20)':24 'give':13 'idea':19 'instead':6 'json':4 'read':16 'state':9 'use':3 'valu':12"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://sh.itjust.works/comment/7488393"
+editedAt: null
+createdAt: DateTimeImmutable @1705152104 {#4139
date: 2024-01-13 14:21:44.0 +01:00
}
}
+root: App\Entity\EntryComment {#4132}
+body: "Thank you, thats it :)"
+lang: "en"
+isAdult: false
+favouriteCount: 0
+score: 0
+lastActive: DateTime @1705229838 {#4223
date: 2024-01-14 11:57:18.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@Streusel@lemmy.world"
"@m_randall@sh.itjust.works"
]
+children: Doctrine\ORM\PersistentCollection {#4226 …}
+nested: Doctrine\ORM\PersistentCollection {#4230 …}
+votes: Doctrine\ORM\PersistentCollection {#4232 …}
+reports: Doctrine\ORM\PersistentCollection {#4233 …}
+favourites: Doctrine\ORM\PersistentCollection {#4235 …}
+notifications: Doctrine\ORM\PersistentCollection {#4237 …}
-id: 307554
-bodyTs: "'thank':1 'that':3"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/6681647"
+editedAt: null
+createdAt: DateTimeImmutable @1705229838 {#4220
date: 2024-01-14 11:57:18.0 +01:00
}
} |
|
Show voter details
|
25 |
DENIED
|
edit
|
App\Entity\Magazine {#260
+icon: Proxies\__CG__\App\Entity\Image {#240 …}
+name: "homeassistant@lemmy.world"
+title: "homeassistant"
+description: "Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io"
+rules: null
+subscriptionsCount: 1
+entryCount: 46
+entryCommentCount: 460
+postCount: 0
+postCommentCount: 0
+isAdult: false
+customCss: null
+lastActive: DateTime @1729539860 {#271
date: 2024-10-21 21:44:20.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#231 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#227 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#216 …}
+entries: Doctrine\ORM\PersistentCollection {#174 …}
+posts: Doctrine\ORM\PersistentCollection {#132 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#194 …}
+bans: Doctrine\ORM\PersistentCollection {#111 …}
+reports: Doctrine\ORM\PersistentCollection {#97 …}
+badges: Doctrine\ORM\PersistentCollection {#75 …}
+logs: Doctrine\ORM\PersistentCollection {#65 …}
+awards: Doctrine\ORM\PersistentCollection {#1822 …}
+categories: Doctrine\ORM\PersistentCollection {#1850 …}
-id: 145
+apId: "homeassistant@lemmy.world"
+apProfileId: "https://lemmy.world/c/homeassistant"
+apPublicUrl: "https://lemmy.world/c/homeassistant"
+apFollowersUrl: "https://lemmy.world/c/homeassistant/followers"
+apInboxUrl: "https://lemmy.world/inbox"
+apDomain: "lemmy.world"
+apPreferredUsername: "homeassistant"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1710368376 {#270
date: 2024-03-13 23:19:36.0 +01:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1704127905 {#276
date: 2024-01-01 17:51:45.0 +01:00
}
} |
|
Show voter details
|